Sha256: 489af880e1c94a42bd07fa071a95baa8fd8df014ccd16d66ab419cded7094315

Contents?: true

Size: 924 Bytes

Versions: 1

Compression:

Stored size: 924 Bytes

Contents

<%%= semantic_form_for [:admin, @<%= options[:auth_class].downcase %>] do |f| %>
    <%%= f.inputs do %>
        <%%#= f.input :group %>
        <%%= f.input :email, :input_html => { :maxlength => 100 } %>
        <%%= f.input :password %>
        <%%= f.input :password_confirmation %>
        <li>
          <%%= f.label :roles %>
          <%% for role in <%= options[:auth_class].downcase.classify %>::ROLES %>
            <%%= check_box_tag "<%= options[:auth_class].downcase %>[roles][]", role, @<%= options[:auth_class].downcase %>.roles.include?(role) %>
            <%%= h role.humanize %>
          <%% end %>
          <%%= hidden_field_tag "<%= options[:auth_class].downcase %>[roles][]"%>
        </li>
    <%% end %>
    <%%#= f.inputs "Optional informations" do %>
        <%%#= f.input :name %>
        <%%#= f.input :login_ldap %>
    <%%# end %>
    <%%= f.buttons :commit %>
<%% end %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
active_leonardo-0.0.2 lib/generators/leolay/templates/app/views/admin/users/_form.html.erb