Sha256: b06a791b977b858db06678468a5e8fdc68f882c8efff66df1862e87e2764e283
Contents?: true
Size: 1.15 KB
Versions: 4
Compression:
Stored size: 1.15 KB
Contents
<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 do |p| %> <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> </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> <%= javascript_tag do %> $(function() { initPrivacyRules(); }) <% end %>
Version data entries
4 entries across 4 versions & 2 rubygems