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