2014-03-14 01:04:31 +01:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-8 col-xs-7">
|
|
|
|
|
|
|
|
<ol class="breadcrumb">
|
|
|
|
<li><%= link_to t(:myaccount), account_path %></li>
|
|
|
|
<li class="active"><%= t(:account_edit) %></li>
|
|
|
|
</ol>
|
|
|
|
|
2014-10-16 03:47:51 +02:00
|
|
|
<div class="col-pad">
|
|
|
|
<%= form_for @user, :url => account_path, :html => {:class => 'form-horizontal'} do |f| %>
|
|
|
|
<%= error_messages_for 'user', :header_message => t(:try_again), :message => t(:account_error_edit) %>
|
|
|
|
<input name='userlogin' class='userlogin' />
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<label class="col-sm-4 col-xs-4 control-label"><%= t(:userid) %></label>
|
|
|
|
<div class="col-sm-8 col-xs-8"><%= f.text_field :login, :class => 'form-control' %></div>
|
2014-03-14 01:04:31 +01:00
|
|
|
</div>
|
2014-02-17 18:05:39 +01:00
|
|
|
|
2014-10-16 03:47:51 +02:00
|
|
|
<div class="form-group">
|
|
|
|
<label class="col-sm-4 col-xs-4 control-label"><%= t(:email) %></label>
|
|
|
|
<div class="col-sm-8 col-xs-8"><%= f.text_field :email, :class => 'form-control' %></div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<label class="col-sm-4 col-xs-4 control-label"><%= t(:time_zone) %></label>
|
|
|
|
<div class="col-sm-8 col-xs-8">
|
|
|
|
<p class="form-control-static">
|
|
|
|
<%= time_zone_select 'user', 'time_zone', nil, {:default => 'Eastern Time (US & Canada)'}, {:class => 'form-control'} %>
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
2014-02-17 18:05:39 +01:00
|
|
|
|
2014-10-16 03:47:51 +02:00
|
|
|
<div class="form-group">
|
|
|
|
<label class="col-sm-4 col-xs-4 control-label"><%= t(:password_change) %></label>
|
|
|
|
<div class="col-sm-8 col-xs-8"><%= f.password_field :password, :class => 'form-control' %></div>
|
|
|
|
</div>
|
2014-02-17 18:05:39 +01:00
|
|
|
|
2014-10-16 03:47:51 +02:00
|
|
|
<div class="form-group">
|
|
|
|
<label class="col-sm-4 col-xs-4 control-label"><%= t(:password_current) %></label>
|
|
|
|
<div class="col-sm-8 col-xs-8"><%= f.password_field :password_current, :class => 'form-control' %></div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<div class="col-sm-offset-4 col-sm-8 col-xs-offset-4 col-xs-8"><p class="form-control-static"><%= f.submit t(:account_update), :class => 'btn btn-primary' %></p></div>
|
|
|
|
</div>
|
2014-02-17 18:05:39 +01:00
|
|
|
|
2014-10-16 03:47:51 +02:00
|
|
|
<% end %>
|
2014-02-17 18:05:39 +01:00
|
|
|
|
2014-10-16 03:47:51 +02:00
|
|
|
</div>
|
2014-03-14 01:04:31 +01:00
|
|
|
</div>
|
2014-02-17 18:05:39 +01:00
|
|
|
</div>
|
|
|
|
|
2014-03-14 01:04:31 +01:00
|
|
|
<br><br>
|
|
|
|
|
|
|
|
<h3><%= t(:account_delete_message) %></h3>
|
|
|
|
<%= button_to t(:account_delete), user_path(@user.id), :method => 'delete', :data => { :confirm => t(:confirm_account_delete) }, :class => 'btn btn-danger' %>
|
|
|
|
|