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-0.3.5 lib/orange-more/administration/views/users/edit.haml
orange-0.3.4 lib/orange-more/administration/views/users/edit.haml
orange-0.3.3 lib/orange-more/administration/views/users/edit.haml
orange-0.3.2 lib/orange-more/administration/views/users/edit.haml
orange-0.3.1 lib/orange-more/administration/views/users/edit.haml
orange-0.3.0 lib/orange-more/administration/views/users/edit.haml
orange-0.2.11 lib/orange-more/administration/views/users/edit.haml
orange-0.2.9 lib/orange-more/administration/views/users/edit.haml
orange-0.2.8 lib/orange-more/administration/views/users/edit.haml
orange-0.2.7 lib/orange-more/administration/views/users/edit.haml
orange-0.2.6 lib/orange-more/administration/views/users/edit.haml
orange-0.2.5 lib/orange-more/administration/views/users/edit.haml
orange-0.2.4 lib/orange-more/administration/views/users/edit.haml
orange-0.2.3 lib/orange-more/administration/views/users/edit.haml
orange-0.1.10 lib/orange-more/administration/views/users/edit.haml
orange-0.1.8 lib/orange-more/administration/views/users/edit.haml
orange-0.1.7 lib/orange-more/administration/views/users/edit.haml
orange-0.1.4 lib/orange-more/administration/views/users/edit.haml