2022-07-04 17:41:40 -07:00
|
|
|
- content_for :page_title do
|
|
|
|
= t('admin.roles.edit', name: @role.everyone? ? t('admin.roles.everyone') : @role.name)
|
|
|
|
|
|
|
|
- content_for :heading_actions do
|
|
|
|
= link_to t('admin.roles.delete'), admin_role_path(@role), method: :delete, data: { confirm: t('admin.accounts.are_you_sure') }, class: 'button button--destructive' if can?(:destroy, @role)
|
|
|
|
|
2023-09-28 07:36:24 -07:00
|
|
|
= simple_form_for @role, url: admin_role_path(@role) do |form|
|
|
|
|
= render partial: 'form', object: form
|
|
|
|
.actions
|
|
|
|
= form.button :button, t('generic.save_changes'), type: :submit
|