mirror of
https://github.com/ENSL/ensl.org.git
synced 2024-12-29 14:01:48 +00:00
36 lines
829 B
Text
36 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>
|