Mirror von
https://github.com/redmine/redmine.git
synchronisiert 2024-08-18 14:10:15 +02:00
![Jean-Philippe Lang](/assets/img/avatar_default.png)
git-svn-id: http://svn.redmine.org/redmine/trunk@16149 e93f8b46-1217-0410-a6f0-8f06a7374b81
22 Zeilen
854 B
Plaintext
22 Zeilen
854 B
Plaintext
<%= form_for(@member, :url => membership_path(@member),
|
|
:as => :membership,
|
|
:remote => request.xhr?,
|
|
:method => :put) do |f| %>
|
|
<p>
|
|
<% @roles.each do |role| %>
|
|
<label>
|
|
<%= check_box_tag('membership[role_ids][]',
|
|
role.id, @member.roles.to_a.include?(role),
|
|
:id => nil,
|
|
:disabled => !@member.role_editable?(role)) %> <%= role %>
|
|
</label><br />
|
|
<% end %>
|
|
</p>
|
|
<%= hidden_field_tag 'membership[role_ids][]', '', :id => nil %>
|
|
<p>
|
|
<%= submit_tag l(:button_save), :class => "small" %>
|
|
<%= link_to_function l(:button_cancel),
|
|
"$('#member-#{@member.id}-roles').show(); $('#member-#{@member.id}-form').empty(); return false;" if request.xhr? %>
|
|
</p>
|
|
<% end %>
|