Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
37 lines (29 sloc) 1.23 KB
<div id="columns_container">
<div id="permissions_list_block">
<p class="sectionTitle"><%= raw t('permission.of_relation.choose', :name => h(@relation.name)) %></p>
<div class="privacy_add_element"></div>
<table class="tableCheckBoxOptions">
<% default_permissions.each_with_index do |p, i| %>
<tr>
<td>
<div contain=<%= dom_id p %> class="checkboxPermissionOptionLeft">
<input id=<%= dom_id p %> optionOf="permissions" type="checkbox"/>
<label for=<%= dom_id p %>><%= p.description(:brief) %></label>
</div>
</td>
<% if i == 0 %>
<td rowspan="<%= default_permissions.size %>" id="privacy-rule-arrow"><%= t 'privacy.rule.add' %></td>
<% end %>
</tr>
<% end %>
</table>
</div>
<div id="privacy_rules">
<p class="sectionTitle"><%= t 'privacy.rule.title' %></p>
<%= raw t('privacy.intro', :relation => h(@relation.name)) %>
<%= semantic_form_for @relation, :remote => true do |f| %>
<%= f.input :permissions, :as => :check_boxes, :collection => default_permissions.map{ |p| [p.description(:detailed, @relation), p.id] } %>
<%= f.submit t('button.save'), :class => 'button' %>
<% end %>
</div>
</div>
Something went wrong with that request. Please try again.