Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 7a1e787679
Fetching contributors…

Cannot retrieve contributors at this time

file 46 lines (42 sloc) 1.111 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
<h1>New user</h1>

<%= form_for(@user, :url => admin_users_path) do |f| %>
    <% if @user.errors.any? %>
        <div id="error_explanation">
          <h2><%= pluralize(@user.errors.count, "error") %> prohibited this user from being saved:</h2>

          <ul>
            <% @user.errors.full_messages.each do |msg| %>
                <li><%= msg %></li>
            <% end %>
          </ul>
        </div>
    <% end %>

    <div class="field">
      <%= f.label :username %>
      <br/>
      <%= f.text_field :username %>
    </div>
    <div class="field">
      <%= f.label :modhash %>
      <br/>
      <%= f.text_field :modhash %>
    </div>
    <div class="field">
      <%= f.label :banned %>
      <br/>
      <%= f.check_box :banned %>
    </div>
    <div class="field">
      <%= f.label :link_karma %>
      <br/>
      <%= f.number_field :link_karma %>
    </div>
    <div class="field">
      <%= f.label :comment_karma %>
      <br/>
      <%= f.number_field :comment_karma %>
    </div>
    <div class="actions">
      <%= f.submit %>
    </div>
<% end %>

<%= link_to 'Back', users_path %>
Something went wrong with that request. Please try again.