Sha256: b293e761a4a7916b39bc19e585d50c62756a40d6226819ab059197278c1c354a

Contents?: true

Size: 755 Bytes

Versions: 19

Compression:

Stored size: 755 Bytes

Contents

- obj = f.object.class.name.downcase.gsub("::", '_')

%fieldset.inputs
  %legend
    %span Role Restricted
  %ol
    %li{:id => "#{obj}_roles_input", :class => 'check_boxes input optional'}
      %fieldset.choices
        %legend.label
          %label Roles
        %input{:type => :hidden, :id => "#{obj}_roles_none", :name => "#{obj}[roles][]"}
        %ol.choices-group
          - roles.each do |role|
            %li.choice
              %label{:for => "#{obj}_roles_#{role}"}
                %input{:type => :checkbox, :id => "#{obj}_roles_#{role}", :name => "#{obj}[roles][]", :value => role.to_s, :checked => ("checked" if f.object.roles.include?(role))}= role
              %p.inline-hints{:style => "margin: 2px 0 16px 0;"}= descriptions[role]

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
effective_roles-1.4.4 app/views/effective/roles/_fields.html.haml
effective_roles-1.4.3 app/views/effective/roles/_fields.html.haml
effective_roles-1.4.2 app/views/effective/roles/_fields.html.haml
effective_roles-1.4.1 app/views/effective/roles/_fields.html.haml
effective_roles-1.4.0 app/views/effective/roles/_roles_fields.html.haml
effective_roles-1.3.7 app/views/effective/roles/_roles_fields.html.haml
effective_roles-1.3.6 app/views/effective/roles/_roles_fields.html.haml
effective_roles-1.3.5 app/views/effective/roles/_roles_fields.html.haml
effective_roles-1.3.4 app/views/effective/roles/_roles_fields.html.haml
effective_roles-1.3.3 app/views/effective/roles/_roles_fields.html.haml
effective_roles-1.3.2 app/views/effective/roles/_roles_fields.html.haml
effective_roles-1.3.1 app/views/effective/roles/_roles_fields.html.haml
effective_roles-1.3.0 app/views/effective/roles/_roles_fields.html.haml
effective_roles-1.2.1 app/views/effective/roles/_roles_fields.html.haml
effective_roles-1.2.0 app/views/effective/roles/_roles_fields.html.haml
effective_roles-1.1.0 app/views/effective/roles/_roles_fields.html.haml
effective_roles-1.0.2 app/views/effective/roles/_roles_fields.html.haml
effective_roles-1.0.1 app/views/effective/roles/_roles_fields.html.haml
effective_roles-1.0.0 app/views/effective/roles/_roles_fields.html.haml