You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
688 B

  1. - content_for :page_title do
  2. = t('admin.warning_presets.title')
  3. - if can? :create, :account_warning_preset
  4. = simple_form_for @warning_preset, url: admin_warning_presets_path do |f|
  5. = render 'shared/error_messages', object: @warning_preset
  6. .fields-group
  7. = f.input :title, wrapper: :with_block_label
  8. .fields-group
  9. = f.input :text, wrapper: :with_block_label
  10. .actions
  11. = f.button :button, t('admin.warning_presets.add_new'), type: :submit
  12. %hr.spacer/
  13. - if @warning_presets.empty?
  14. %div.muted-hint.center-text
  15. = t 'admin.warning_presets.empty'
  16. - else
  17. .announcements-list
  18. = render partial: 'warning_preset', collection: @warning_presets