asciinema.org/app/views/users/edit.html.erb

38 lines
1.1 KiB
Plaintext
Raw Normal View History

2012-07-25 18:24:20 +00:00
<section class="supplimental">
<div class="wrapper">
<%= form_for @user, :html => { :class => 'form-horizontal' } do |f| %>
<fieldset>
<legend>Account settings</legend>
2012-04-09 12:42:22 +00:00
2012-07-25 18:24:20 +00:00
<div class="control-group">
<%= f.label :nickname, 'Username', :class => 'control-label' %>
<div class="controls">
<%= f.text_field :nickname, :class => 'text_field' %>
</div>
</div>
2012-04-09 12:42:22 +00:00
2012-07-25 18:24:20 +00:00
<div class="control-group">
<%= f.label :name, 'Real name', :class => 'control-label' %>
<div class="controls">
<%= f.text_field :name, :class => 'text_field' %>
</div>
</div>
2012-04-09 12:42:22 +00:00
2012-07-25 18:24:20 +00:00
<div class="control-group">
<%= f.label :email, :class => 'control-label' %>
<div class="controls">
<%= f.text_field :email, :class => 'text_field' %>
</div>
</div>
2012-04-09 12:42:22 +00:00
2012-07-25 18:24:20 +00:00
<div class="form-actions">
<%= f.submit 'Save', :class => 'btn btn-primary' %>
<%= link_to 'Cancel', profile_path(@user), :class => 'btn' %>
</div>
</fieldset>
<% end %>
<div class="vertical-expander"></div>
</div>
</section>