ensl.org/app/views/bans/_form.html.erb

35 lines
829 B
Text

<div class="wide box">
<%= form_for(@ban) do |f| %>
<div id="error_explanation">
<ul>
<% @ban.errors.full_messages.each do |msg| %>
<li><%= msg %></li>
<% end %>
</ul>
</div>
<p>
<%= link_to_function 'User', "findUser('ban[user_name]')" %><br />
<%= f.text_field :user_name, {:value => @ban.user.to_s} %>
</p>
<p>
<%= f.label :ban_type %><br />
<%= f.select :ban_type, @ban.types.invert %>
</p>
<p>
<%= f.label :steamid %><br />
<%= f.text_field :steamid %>
</p>
<p>
<%= f.label :expiry %><br />
<%= f.datetime_select :expiry %>
</p>
<p>
<%= f.label :reason %> <%= bbcode %><br />
<%= f.text_area :reason %>
</p>
<p>
<%= f.submit 'Create' %>
</p>
<% end %>
</div>