Sha256: 35ab8524ede248079bc72537ba5495a4eca28be498953c74263869796a477926

Contents?: true

Size: 931 Bytes

Versions: 5

Compression:

Stored size: 931 Bytes

Contents

<% content_for(:head, attach_include_files) %>

<div class="edit-cont">
  <div class="inputs-bl">
    <%= form.label :name %>
    <%= form.text_field :name, :class=>"text name" %>

    <%= form.label :email %>
    <%= form.text_field :email, :class=>'text' %>

    <%= form.label :password %>
    <%= form.password_field :password, :class=>'text' %>

    <%= form.label :password_confirmation %>
    <%= form.password_field :password_confirmation, :class=>'text' %>
        
    <div class="radio-bl">
      <div class="block-title"><%= t('manage.user.roles') %></div>
      <%= form.fields_for :roles_attributes do |r| %>
        <% RoleType.all.each do |item| %>
          <div class="radio-line"><%= r.check_box item.id, :checked => @user.has_role?(item.code) %> <%= r.label item.id, item.title %></div>
        <% end %>
      <% end %>      
    </div>
  </div>

  <%= form.attach_file(:avatar, :file_max_size => 1) %>
</div>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
freeberry-0.3.0 lib/generators/freeberry/base/templates/views/manage/users/_form.html.erb
freeberry-0.2.9 lib/generators/freeberry/base/templates/views/manage/users/_form.html.erb
freeberry-0.2.7 lib/generators/freeberry/base/templates/views/manage/users/_form.html.erb
freeberry-0.2.6 lib/generators/freeberry/base/templates/views/manage/users/_form.html.erb
freeberry-0.2.5 lib/generators/freeberry/base/templates/views/manage/users/_form.html.erb