OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
openproject/app/views/users/_general.html.erb

37 lines
1.3 KiB

<%#-- copyright
OpenProject is a project management system.
Copyright (C) 2012-2013 the OpenProject Team
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License version 3.
See doc/COPYRIGHT.rdoc for more details.
++#%>
<%= form_for @user, :url => {:action => :change_status},
:method => :post do %>
<div class="box tabular">
<p>
<label><%= I18n.t(:status, :scope => [:attributes]) %></label>
<%= full_user_status(@user, true) %>
<%= change_user_status_buttons(@user) unless @user.id == current_user.id %>
</p>
</div>
<% end %>
<%= labelled_tabular_form_for @user,
:url => { :controller => '/users',
:action => "update",
:tab => nil },
:html => { :method => :put,
:class => nil,
:autocomplete => 'off' },
:as => :user do |f| %>
<%= render :partial => 'form', :locals => { :f => f } %>
<% if @user.active? -%>
<p><label><%= check_box_tag 'send_information', 1, true %> <%= l(:label_send_information) %></label></p>
<% end -%>
<p><%= submit_tag l(:button_save) %></p>
<% end %>