code layout clean up app/views/users/_memberships.html.erb
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8611 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
04df8dcb39
commit
f9b0cfb63e
|
@ -27,13 +27,22 @@
|
|||
<% end %></p>
|
||||
<%= hidden_field_tag 'membership[role_ids][]', '' %>
|
||||
<p><%= submit_tag l(:button_change) %>
|
||||
<%= link_to_function l(:button_cancel), "$('member-#{membership.id}-roles').show(); $('member-#{membership.id}-roles-form').hide(); return false;" %></p>
|
||||
<%= link_to_function l(:button_cancel),
|
||||
"$('member-#{membership.id}-roles').show(); $('member-#{membership.id}-roles-form').hide(); return false;"
|
||||
%></p>
|
||||
<% end %>
|
||||
</td>
|
||||
<td class="buttons">
|
||||
<%= link_to_function l(:button_edit), "$('member-#{membership.id}-roles').hide(); $('member-#{membership.id}-roles-form').show(); return false;", :class => 'icon icon-edit' %>
|
||||
<%= link_to_remote(l(:button_delete), { :url => user_membership_path(@user, membership), :method => :delete },
|
||||
:class => 'icon icon-del') if membership.deletable? %>
|
||||
<%= link_to_function l(:button_edit),
|
||||
"$('member-#{membership.id}-roles').hide(); $('member-#{membership.id}-roles-form').show(); return false;",
|
||||
:class => 'icon icon-edit'
|
||||
%>
|
||||
<%= link_to_remote(
|
||||
l(:button_delete),
|
||||
{ :url => user_membership_path(@user, membership),
|
||||
:method => :delete },
|
||||
:class => 'icon icon-del'
|
||||
) if membership.deletable? %>
|
||||
</td>
|
||||
<%= call_hook(:view_users_memberships_table_row, :user => @user, :membership => membership, :roles => roles, :projects => projects )%>
|
||||
</tr>
|
||||
|
|
Loading…
Reference in New Issue