<%= form_for @ban, html: { class: 'square' } do |f| %> <%= render 'shared/errors', messages: @ban.errors.full_messages %>
<%= f.label :user_name %> <%= f.text_field :user_name, { value: @ban.user.to_s } %>
<%= f.label :ban_type %> <%= f.select :ban_type, @ban.types.invert %>
<%= f.label :steamid %> <%= f.text_field :steamid %>
<%= f.label :expiry %> <%= f.datetime_select :expiry, datetime_separator: '', time_separator: '' %>
<%= f.label :reason do %> Reason (BB Code) <% end %> <%= f.text_area :reason %>
<%= f.submit 'Create' %>
<% end %>