Sha256: 6809f42c4c32f44aec175c168bb7d9c9619a7cd90bad3e2046575dfd352195da
Contents?: true
Size: 1.33 KB
Versions: 92
Compression:
Stored size: 1.33 KB
Contents
<div id="columns_container"> <div id="permissions_list"> <p class="sectionTitle"><%= raw t('permission.of_relation.choose', :name => h(@relation.name)) %></p> <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 %> class="permission" type="checkbox"/> <label for=<%= dom_id p %>><%= p.description(:brief) %></label> <div class="clearfloat"></div> </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, :url => polymorphic_path(@relation, :section => 'rules'), :remote => true do |f| %> <%= f.input :permissions, :as => :check_boxes, :collection => default_permissions.map{ |p| [p.description(:detailed, :relation => @relation.name, :subject => current_subject.name), p.id] } %> <%= f.submit t('button.save'), :class => 'button' %> <% end %> </div> </div>
Version data entries
92 entries across 92 versions & 4 rubygems