Sha256: 31a25ca3518b29afdc0de7fe3a0607e17d4797374e08816f86745f03c9480df7

Contents?: true

Size: 989 Bytes

Versions: 12

Compression:

Stored size: 989 Bytes

Contents

- if @user.respond_to?(:designer)
  %p
    %label.multi_option Roles
    = check_box "user", "admin", :class => "checkbox"
    %label{:for=> :user_admin, :class => "checkbox"} Administrator
    = check_box "user", "designer", :class => "checkbox"
    %label{:for=> :user_designer, :class => "checkbox"} Designer
    = check_box "user", "publisher", :class => "checkbox"
    %label{:for=> :user_publisher, :class => "checkbox"} Publisher    
- elsif @user.respond_to?(:developer)
  %tr
    %th.label
      %label{:for=>"user_admin"} Roles
    %td.field
      %span.checkbox
        = check_box "user", "admin"
        %label{:for=> "user_admin"} Administrator
      %span.checkbox
        = check_box "user", "developer"
        %label{:for=> "user_developer"} Developer
      %span.checkbox
        = check_box "user", "publisher"
        %label{:for=>"user_publisher"} Publisher
    %td.help
      Roles restrict user privileges and turn parts of the administrative interface on or off.

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
radiant-concurrent_draft-extension-1.0.11 app/views/admin/users/_edit_roles.html.haml
radiant-concurrent_draft-extension-1.0.10 app/views/admin/users/_edit_roles.html.haml
radiant-concurrent_draft-extension-1.0.9 app/views/admin/users/_edit_roles.html.haml
radiant-concurrent_draft-extension-1.0.8 app/views/admin/users/_edit_roles.html.haml
radiant-concurrent_draft-extension-1.0.7 app/views/admin/users/_edit_roles.html.haml
radiant-concurrent_draft-extension-1.0.6 app/views/admin/users/_edit_roles.html.haml
radiant-concurrent_draft-extension-1.0.5 app/views/admin/users/_edit_roles.html.haml
radiant-concurrent_draft-extension-1.0.4 app/views/admin/users/_edit_roles.html.haml
radiant-concurrent_draft-extension-1.0.3 app/views/admin/users/_edit_roles.html.haml
radiant-concurrent_draft-extension-1.0.2 app/views/admin/users/_edit_roles.html.haml
radiant-concurrent_draft-extension-1.0.1 app/views/admin/users/_edit_roles.html.haml
radiant-concurrent_draft-extension-1.0.0 app/views/admin/users/_edit_roles.html.haml