Sha256: 463e0f7151b8f315a8e76db7b11da31476c5e122da5b7397e31d5921d07b8174

Contents?: true

Size: 1.37 KB

Versions: 28

Compression:

Stored size: 1.37 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, :subject => current_subject) %></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, :state => "positive"), p.id] } %>
      <%= f.submit t('button.save'), :class => 'button' %>
    <% end %>
  </div>
</div>

Version data entries

28 entries across 28 versions & 2 rubygems

Version Path
social_stream-0.25.1 base/app/views/permissions/_index.html.erb
social_stream-base-0.19.1 app/views/permissions/_index.html.erb
social_stream-0.25.0 base/app/views/permissions/_index.html.erb
social_stream-base-0.19.0 app/views/permissions/_index.html.erb
social_stream-0.24.1 base/app/views/permissions/_index.html.erb
social_stream-base-0.18.1 app/views/permissions/_index.html.erb
social_stream-0.24.0 base/app/views/permissions/_index.html.erb
social_stream-base-0.18.0 app/views/permissions/_index.html.erb
social_stream-0.23.4 base/app/views/permissions/_index.html.erb
social_stream-base-0.17.3 app/views/permissions/_index.html.erb
social_stream-0.23.3 base/app/views/permissions/_index.html.erb
social_stream-base-0.17.2 app/views/permissions/_index.html.erb
social_stream-0.23.2 base/app/views/permissions/_index.html.erb
social_stream-base-0.17.1 app/views/permissions/_index.html.erb
social_stream-0.23.1 base/app/views/permissions/_index.html.erb
social_stream-base-0.17.0 app/views/permissions/_index.html.erb
social_stream-0.22.1 base/app/views/permissions/_index.html.erb
social_stream-base-0.16.4 app/views/permissions/_index.html.erb
social_stream-0.22.0 base/app/views/permissions/_index.html.erb
social_stream-base-0.16.3 app/views/permissions/_index.html.erb