32 lines
1012 B
Plaintext
32 lines
1012 B
Plaintext
<%= form_for @user, :url => '/user', :html => { :class => 'form-horizontal' } do |f| %>
|
|
<fieldset>
|
|
<legend>Your new account</legend>
|
|
|
|
<div class="control-group <%= 'error' if @user.errors[:nickname].present? %>">
|
|
<%= f.label :nickname, :class => 'control-label' %>
|
|
<div class="controls">
|
|
<%= f.text_field :nickname, :class => 'text_field' %>
|
|
<span class="help-inline"><%= @user.errors[:nickname].first %></span>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="control-group">
|
|
<%= f.label :name, 'Real name', :class => 'control-label' %>
|
|
<div class="controls">
|
|
<%= f.text_field :name, :class => 'text_field' %>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="control-group">
|
|
<%= f.label :email, :class => 'control-label' %>
|
|
<div class="controls">
|
|
<%= f.text_field :email, :class => 'text_field' %>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-actions">
|
|
<%= f.submit 'Create', :class => 'btn btn-primary' %>
|
|
</div>
|
|
</fieldset>
|
|
<% end %>
|