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

Version Path
social_stream-0.20.2 base/app/views/permissions/_index.html.erb
social_stream-base-0.15.2 app/views/permissions/_index.html.erb
social_stream-0.20.1 base/app/views/permissions/_index.html.erb
social_stream-base-0.15.1 app/views/permissions/_index.html.erb
social_stream-0.20.0 base/app/views/permissions/_index.html.erb
social_stream-base-0.15.0 app/views/permissions/_index.html.erb
social_stream-0.19.3 base/app/views/permissions/_index.html.erb
social_stream-base-0.14.3 app/views/permissions/_index.html.erb
social_stream-0.19.2 base/app/views/permissions/_index.html.erb
social_stream-base-0.14.2 app/views/permissions/_index.html.erb
social_stream-0.19.1 base/app/views/permissions/_index.html.erb
social_stream-base-0.14.1 app/views/permissions/_index.html.erb
vkhater-social_stream-0.16.3.3 base/app/views/permissions/_index.html.erb
vkhater-social_stream-base-0.11.2 app/views/permissions/_index.html.erb
social_stream-0.19.0 base/app/views/permissions/_index.html.erb
social_stream-base-0.14.0 app/views/permissions/_index.html.erb
social_stream-0.18.2 base/app/views/permissions/_index.html.erb
social_stream-base-0.13.2 app/views/permissions/_index.html.erb
social_stream-0.18.1 base/app/views/permissions/_index.html.erb
social_stream-base-0.13.1 app/views/permissions/_index.html.erb