Remove timepicker from ban modal

This commit is contained in:
Andreas Nedbal 2020-05-09 03:21:25 +02:00
parent 936969d72a
commit 4ae8b7ed81
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@
#ban-controls{style: "#{"display: none" unless @user.banned?}"}
= f.check_box :permaban, label: t('views.modal.bancontrol.permanent'), checked: @user.permanently_banned?
#ban-controls-time{style: "#{"display: none" unless not @user.permanently_banned?}"}
= f.text_field :until, label: "", required: true, value: (@user.banned_until || DateTime.current).strftime("%m/%d/%Y %I:%M %p"), class: "datetimepicker-input", data: { toggle: "datetimepicker", target: "#until" }
= f.text_field :until, label: "", required: true, value: (@user.banned_until || DateTime.current).strftime("%m/%d/%Y %I:%M %p")
= f.text_field :reason, placeholder: t('views.modal.bancontrol.reason'), value: @user.ban_reason
.modal-footer
%button.btn.btn-default{name: 'stop-time', type: :button, data: { dismiss: :modal }}= t 'views.actions.close'