Sha256: 756b21aa789c409904e1dbfbed8f421eeb8e2ba8c533f6c264c8305a62f1bcba

Contents?: true

Size: 1.94 KB

Versions: 10

Compression:

Stored size: 1.94 KB

Contents

<div id="edit-user" class="common-form">
  <h1><%= t('muck.users.update_user') %></h1>

  <% custom_form_for @user, :url => user_path(@user), :html => {:id => "edit-user-form", :name => 'edit-user-form', :method => :put, :multipart => true } do |f| -%>

   <%= output_errors(t('muck.users.problem_editing_account'), {:class => 'help-box'}, @user) %>

   <%= f.text_field :email, { :label => t('muck.users.email_address'),
                               :tip => t('muck.users.email_help') } -%>
    <%= f.text_field :first_name, { :label => t('muck.users.first_name') } %>
    <%= f.text_field :last_name, { :label => t('muck.users.last_name') } %>
		<div class="button form-row">
	  	<%= f.submit t('muck.general.save') %>
	  </div>
	<% end %>
	
</div>

<div id="change-password" class="common-form">
  <h2><%= t('muck.users.change_password') %></h2>
  <% custom_form_for @user, :url => user_path(@user), :html => { :id => "change-password-form", :name => 'change-password-form', :method => :put } do |f| %>
    <%= f.password_field :password, { :label => t('muck.users.password'),
                                      :tip => t('muck.users.password_help')} -%>
    <%= f.password_field :password_confirmation, { :label => t('muck.users.confirm_password'),
                                  		             :tip => t('muck.users.password_confirmation_help') } -%>
  	<div class="button form-row">
  	  <%= submit_tag t('muck.users.change_password'), :class => 'button' %>
  	</div>
  <% end -%>
</div>

<% if GlobalConfig.let_users_delete_their_account -%>
  <div id="delete-account" class="common-form">
    <% custom_form_for :user, :url => users_path, :html => {:id => "delete-user-form", :name => 'delete-user-form', :method => :delete, :confirm => t("users.confirm_delete_account")} do |f| -%>
  		<h2><%= t('muck.users.remove_my_account') %></h2>
  		<div class="button form-row">
  	  	<%= f.submit t('muck.general.delete_my_account') %>
  	  </div>
    <% end -%>
  </div>
<% end -%>

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
muck-users-0.3.20 app/views/users/edit.html.erb
muck-users-0.3.19 app/views/users/edit.html.erb
muck-users-0.3.18 app/views/users/edit.html.erb
muck-users-0.3.17 app/views/users/edit.html.erb
muck-users-0.3.16 app/views/users/edit.html.erb
muck-users-0.3.15 app/views/users/edit.html.erb
muck-users-0.3.14 app/views/users/edit.html.erb
muck-users-0.3.13 app/views/users/edit.html.erb
muck-users-0.3.12 app/views/users/edit.html.erb
muck-users-0.3.11 app/views/users/edit.html.erb