2017-10-20 20:12:45 +00:00
|
|
|
.fields-group
|
|
|
|
= f.input :keyword
|
|
|
|
= f.check_box :whole_word
|
|
|
|
= f.label :whole_word, t('keyword_mutes.match_whole_word')
|
2018-06-04 04:10:59 +00:00
|
|
|
%br
|
|
|
|
= f.check_box :apply_to_mentions
|
|
|
|
= f.label :apply_to_mentions, t('keyword_mutes.apply_to_mentions')
|
2017-10-20 20:12:45 +00:00
|
|
|
|
|
|
|
.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
|