Sha256: ba5dd2e8e99c1523da8427d2c91344ab5b3d3a3aa993de9cc57527ac200abfe0

Contents?: true

Size: 1.23 KB

Versions: 16

Compression:

Stored size: 1.23 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_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>

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
social_stream-base-0.7.8 app/views/permissions/_index.html.erb
social_stream-base-0.7.7 app/views/permissions/_index.html.erb
social_stream-base-0.7.6 app/views/permissions/_index.html.erb
social_stream-base-0.7.5 app/views/permissions/_index.html.erb
social_stream-base-0.7.4 app/views/permissions/_index.html.erb
social_stream-base-0.7.3 app/views/permissions/_index.html.erb
social_stream-base-0.7.2 app/views/permissions/_index.html.erb
social_stream-base-0.7.1 app/views/permissions/_index.html.erb
social_stream-base-0.7.0 app/views/permissions/_index.html.erb
social_stream-base-0.6.8 app/views/permissions/_index.html.erb
social_stream-base-0.6.6 app/views/permissions/_index.html.erb
social_stream-base-0.6.5 app/views/permissions/_index.html.erb
social_stream-base-0.6.3 app/views/permissions/_index.html.erb
social_stream-base-0.6.2 app/views/permissions/_index.html.erb
social_stream-base-0.6.1 app/views/permissions/_index.html.erb
social_stream-base-0.6.0 app/views/permissions/_index.html.erb