Sha256: 56f5510c22f4cb3351183a1bf16efbb188a616cd5bc58e633e344ebb79a7719d

Contents?: true

Size: 768 Bytes

Versions: 38

Compression:

Stored size: 768 Bytes

Contents

- if model
  - if resource.options[:sitemappable, false] 
    = orange[:sitemap, true].sitemap_links(packet, {:slug_me => orange[:sitemap, true].slug_for(model, props)})
  %form{:action => packet.route_to(model_name, model[:id], 'save'), :method => 'post'}
    - for prop in props
      %p!= view_attribute(prop, model_name, :label => true, :value => model.attribute_get(prop[:name]))
    %fieldset
      %h4 Permission to Edit:
      - for site in sites
        %p
          #{site.name}
          %input{:type => 'checkbox', :name => "#{model_name}[sites][#{site.id}]", :value => site.id, :checked => (model.orange_sites.include?(site) ? 'checked' : nil)}
    %input{:type => 'submit', :value => 'Save Changes'}
- else
  %p Couldn't find the item you're looking for.

Version data entries

38 entries across 38 versions & 2 rubygems

Version Path
orange-more-0.7.3 lib/orange-more/administration/views/users/edit.haml
orange-more-0.7.2 lib/orange-more/administration/views/users/edit.haml
orange-more-0.7.1 lib/orange-more/administration/views/users/edit.haml
orange-more-0.6.5 lib/orange-more/administration/views/users/edit.haml
orange-more-0.6.4 lib/orange-more/administration/views/users/edit.haml
orange-more-0.6.3 lib/orange-more/administration/views/users/edit.haml
orange-more-0.6.2 lib/orange-more/administration/views/users/edit.haml
orange-more-0.6.0 lib/orange-more/administration/views/users/edit.haml
orange-more-0.5.8 lib/orange-more/administration/views/users/edit.haml
orange-more-0.5.7 lib/orange-more/administration/views/users/edit.haml
orange-0.5.5 lib/orange-more/administration/views/users/edit.haml
orange-0.5.4 lib/orange-more/administration/views/users/edit.haml
orange-0.5.3 lib/orange-more/administration/views/users/edit.haml
orange-0.5.2 lib/orange-more/administration/views/users/edit.haml
orange-0.5.1 lib/orange-more/administration/views/users/edit.haml
orange-0.4.0 lib/orange-more/administration/views/users/edit.haml
orange-0.3.9 lib/orange-more/administration/views/users/edit.haml
orange-0.3.8 lib/orange-more/administration/views/users/edit.haml
orange-0.3.7 lib/orange-more/administration/views/users/edit.haml
orange-0.3.6 lib/orange-more/administration/views/users/edit.haml