end.compact.uniq
if content.present?
- content_tag('span', content.join(", "), :class => "info")
+ content_tag('em', content.join(", "), :class => "info")
end
end
end
:method => :put) do |f| %>
<p>
<% @roles.each do |role| %>
- <label>
+ <label class="block">
<%= check_box_tag('membership[role_ids][]',
role.id, @member.roles.to_a.include?(role),
:id => nil,
:disabled => !@member.role_editable?(role)) %> <%= role %>
<%= render_role_inheritance(@member, role) %>
- </label><br />
+ </label>
<% end %>
</p>
<%= hidden_field_tag 'membership[role_ids][]', '', :id => nil %>
:method => :put) do %>
<p>
<% @roles.each do |role| %>
- <label>
+ <label class="block">
<%= check_box_tag 'membership[role_ids][]',
role.id, @membership.roles.to_a.include?(role),
:id => nil,
:disabled => !@membership.role_editable?(role) %> <%= role.name %>
<%= render_role_inheritance(@membership, role) %>
- </label><br />
+ </label>
<% end %>
</p>
<%= hidden_field_tag 'membership[role_ids][]', '', :id => nil %>
a.atom { background: url(../images/feed.png) no-repeat 1px 50%; padding: 2px 0px 3px 16px; }
-.info {font-size:90%;color:#888;}
-em.info {font-style:normal;display:block;}
+em.info {font-style:normal;display:block;font-size:90%;color:#888;}
em.info.error {padding-left:20px; background:url(../images/exclamation.png) no-repeat 0 50%;}
-form.edit_membership p {margin:0.9em 0;}
-
textarea.text_cf {width:95%; resize:vertical;}
input.string_cf, input.link_cf {width:95%;}
select.bool_cf {width:auto !important;}