Sha256: 9c450584d570b7804ec3873a7cf7ba995eb956ac05e16e11038938b8128b0f3b

Contents?: true

Size: 1.64 KB

Versions: 56

Compression:

Stored size: 1.64 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">
	    <% if disable_permission_edit? p %>
              <input id=<%= dom_id p %> class="permission" type="checkbox" disabled="disabled"/>
              <label for=<%= dom_id p %>><%= p.description(:brief, :subject => current_subject) %></label>
	    <% else %>
              <input id=<%= dom_id p %> class="permission" type="checkbox"/>
              <label for=<%= dom_id p %>><%= p.description(:brief, :subject => current_subject) %></label>
	    <% end %>
            <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

56 entries across 56 versions & 2 rubygems

Version Path
social_stream-1.1.12 base/app/views/permissions/_index.html.erb
social_stream-base-1.1.11 app/views/permissions/_index.html.erb
social_stream-1.1.11 base/app/views/permissions/_index.html.erb
social_stream-base-1.1.10 app/views/permissions/_index.html.erb
social_stream-1.1.10 base/app/views/permissions/_index.html.erb
social_stream-base-1.1.9 app/views/permissions/_index.html.erb
social_stream-1.1.9 base/app/views/permissions/_index.html.erb
social_stream-base-1.1.8 app/views/permissions/_index.html.erb
social_stream-1.1.8 base/app/views/permissions/_index.html.erb
social_stream-base-1.1.7 app/views/permissions/_index.html.erb
social_stream-1.1.7 base/app/views/permissions/_index.html.erb
social_stream-base-1.1.6 app/views/permissions/_index.html.erb
social_stream-1.1.6 base/app/views/permissions/_index.html.erb
social_stream-base-1.1.5 app/views/permissions/_index.html.erb
social_stream-1.1.5 base/app/views/permissions/_index.html.erb
social_stream-base-1.1.4 app/views/permissions/_index.html.erb
social_stream-1.1.4 base/app/views/permissions/_index.html.erb
social_stream-1.1.3 base/app/views/permissions/_index.html.erb
social_stream-base-1.1.3 app/views/permissions/_index.html.erb
social_stream-1.1.2 base/app/views/permissions/_index.html.erb