edit.html.haml 530 B

12345678910
  1. - content_for :page_title do
  2. = t('admin.roles.edit', name: @role.everyone? ? t('admin.roles.everyone') : @role.name)
  3. - content_for :heading_actions do
  4. = 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)
  5. = simple_form_for @role, url: admin_role_path(@role) do |form|
  6. = render partial: 'form', object: form
  7. .actions
  8. = form.button :button, t('generic.save_changes'), type: :submit