forked from e621ng/e621ng
[Bans] Use dtext wrapper for reason when editing
This commit is contained in:
parent
d5b60a82f6
commit
5a7f06d677
@ -1,7 +1,8 @@
|
||||
<%= simple_form_for(ban) do |f| %>
|
||||
<%= error_messages_for("ban") %>
|
||||
|
||||
<%= f.input :user_name, :as => :string, :input_html => { data: { autocomplete: "user" } } %>
|
||||
<% if ban.new_record? %>
|
||||
<%= f.input :user_name, :as => :string, :input_html => { data: { autocomplete: "user" } } %>
|
||||
<% end %>
|
||||
<%= f.input :duration, :hint => "in days" %>
|
||||
<%= f.input :is_permaban, as: :boolean, hint: 'ignores days' %>
|
||||
<%= dtext_field "ban", "reason" %>
|
||||
|
@ -2,14 +2,7 @@
|
||||
<div id="a-edit">
|
||||
<h1>Edit Ban</h1>
|
||||
|
||||
<%= simple_form_for(@ban) do |f| %>
|
||||
<%= error_messages_for("ban") %>
|
||||
|
||||
<%= f.input :duration, :hint => "in days" %>
|
||||
<%= f.input :is_permaban, as: :boolean, hint: 'ignores days' %>
|
||||
<%= f.input :reason %>
|
||||
<%= f.button :submit, :value => "Ban" %>
|
||||
<% end %>
|
||||
<%= render "form", ban: @ban%>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user