about summary refs log tree commit diff
path: root/app/views/settings/keyword_mutes/_fields.html.haml
blob: 892676f180ecb988db18a6bd2d065c8edb11912d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
.fields-group
  = f.input :keyword
  = f.check_box :whole_word
  = f.label :whole_word, t('keyword_mutes.match_whole_word')

.actions
  - if f.object.persisted?
    = f.button :button, t('generic.save_changes'), type: :submit
    = link_to t('keyword_mutes.remove'), settings_keyword_mute_path(f.object), class: 'negative button', method: :delete, data: { confirm: t('admin.accounts.are_you_sure') }
  - else
    = f.button :button, t('keyword_mutes.add_keyword'), type: :submit