Sha256: bf37427434f076eecfdc303ef01eb24b82bb72df3089215fb6310d898d549abb

Contents?: true

Size: 608 Bytes

Versions: 3

Compression:

Stored size: 608 Bytes

Contents

- groups = Group.find(:all)
- if groups.any?
  .set
    %p
      = t('reader_extension.permitted_groups')
      - groups.each do |group|
        = check_box_tag "page[group_ids][]", group.id, @page.has_inherited_group?(group), :id => "page_group_#{group.id}", :disabled => @page.group_is_inherited?(group)
        - if @page.group_is_inherited?(group)
          %label.checkbox{:for => "page_group_#{group.id}", :class => 'disabled', :title => t('reader_extension.inherited_group')}
            = group.name
        - else
          %label.checkbox{:for => "page_group_#{group.id}"}
            = group.name

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
radiant-reader-extension-3.0.0.rc4 app/views/admin/pages/_page_groups.html.haml
radiant-reader-extension-3.0.0.rc3 app/views/admin/pages/_page_groups.html.haml
radiant-reader-extension-2.0.0.rc4 app/views/admin/pages/_page_groups.html.haml