Remove unnecessary value from reason field
This commit is contained in:
parent
5239f69081
commit
1f3681ef50
|
@ -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'
|
||||
|
|
Loading…
Reference in New Issue