Remove unnecessary value from reason field

This commit is contained in:
Karina Kwiatek 2022-07-02 11:50:12 +02:00 committed by Karina Kwiatek
parent 5239f69081
commit 1f3681ef50
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@
.form-check.form-check-inline.mt-3
- for unit in %i[hours days weeks months]
= f.radio_button :duration_unit, unit, label: unit, checked: true
= f.text_field :reason, placeholder: t('.reason'), value: user.bans.current.first&.reason
= f.text_field :reason, placeholder: t('.reason')
.modal-footer
%button.btn.btn-default{ name: 'stop-time', type: :button, data: { dismiss: :modal } }= t 'views.actions.close'
= f.submit t('.hammertime'), class: 'btn btn-primary', name: 'hammer-time'