Merge pull request #3581 from HDinger/fix/19528-button-not-on-line-admin-groups

[19528] Button not on line for admin/groups/edit
pull/3589/head
Magdalena Kafka 9 years ago
commit dbc9e7e0c4
  1. 4
      app/assets/stylesheets/content/_table.sass
  2. 6
      app/views/groups/_memberships.html.erb

@ -171,6 +171,7 @@ table.generic-table
&.buttons &.buttons
text-align: right text-align: right
white-space: nowrap
p p
padding: 0 8px padding: 0 8px
@ -222,6 +223,9 @@ table.generic-table
text-align: right text-align: right
min-width: 1em min-width: 1em
.generic-table--cell-controls
white-space: nowrap
.generic-table--header-background .generic-table--header-background
position: absolute position: absolute
top: 0 top: 0

@ -78,9 +78,11 @@ See doc/COPYRIGHT.rdoc for more details.
<p><% roles.each do |role| %> <p><% roles.each do |role| %>
<label><%= check_box_tag 'membership[role_ids][]', role.id, membership.roles.include?(role) %> <%=h role %></label> <label><%= check_box_tag 'membership[role_ids][]', role.id, membership.roles.include?(role) %> <%=h role %></label>
<% end %></p> <% end %></p>
<p><%= submit_tag l(:button_change), class: 'button -highlight -small' %> <p class="generic-table--cell-controls">
<%= submit_tag l(:button_change), class: 'button -highlight -small' %>
<%= link_to_function l(:button_cancel), "$('member-#{membership.id}-roles').show(); $('member-#{membership.id}-roles-form').hide(); return false;", <%= link_to_function l(:button_cancel), "$('member-#{membership.id}-roles').show(); $('member-#{membership.id}-roles-form').hide(); return false;",
class: 'button -small' %></p> class: 'button -small' %>
</p>
<% end %> <% end %>
</td> </td>
<td class="buttons"> <td class="buttons">

Loading…
Cancel
Save