Sha256: 6f958144fafe804a86446f58fd3f812116cc752440adf12d07a598dd5ccbc5fd

Contents?: true

Size: 738 Bytes

Versions: 6

Compression:

Stored size: 738 Bytes

Contents

<article class="permissions">
  <h4>
    <%= raw t('permission.of_relation.choose', :name => h(@relation.name)) %>
  </h4>

  <%= form_for @relation, url: polymorphic_path(@relation, section: 'permissions'), remote: true do |f| %>
    <%= hidden_field_tag 'relation_custom[permission_ids][]', "" %>

    <ul>
      <% default_permissions.each do |p| %>
        <li>
        <%= check_box_tag 'relation_custom[permission_ids][]', p.id, @relation.permission_ids.include?(p.id), id: "checkbox_relation_#{ @relation.id }_permission_#{ p.id }" %>
        <%= label_tag "checkbox_relation_#{ @relation.id }_permission_#{ p.id }", p.description(:brief, subject: current_subject) %>
        </li>
      <% end %>
    </ul>
  <% end %>
</article>

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
social_stream-2.0.0.beta3 base/app/views/permissions/_index.html.erb
social_stream-base-2.0.0.beta3 app/views/permissions/_index.html.erb
social_stream-2.0.0.beta2 base/app/views/permissions/_index.html.erb
social_stream-base-2.0.0.beta2 app/views/permissions/_index.html.erb
social_stream-2.0.0.beta1 base/app/views/permissions/_index.html.erb
social_stream-base-2.0.0.beta1 app/views/permissions/_index.html.erb