Skip to content
Permalink
6bb982f099
Go to file
 
 
Cannot retrieve contributors at this time
56 lines (46 sloc) 1.2 KB
<%= form_for(user) do |f| %>
<% if user.errors.any? %>
<div id="error_explanation">
<h2><%= pluralize(user.errors.count, "error") %> prohibited this user from being saved:</h2>
<ul>
<% user.errors.full_messages.each do |message| %>
<li><%= message %></li>
<% end %>
</ul>
</div>
<% end %>
<div class="field">
<%= f.label :uid %>
<%= f.text_field :uid %>
</div>
<div class="field">
<%= f.label :givenname %>
<%= f.text_field :givenname %>
</div>
<div class="field">
<%= f.label :surname %>
<%= f.text_field :surname %>
</div>
<div class="field">
<%= f.label :fullName %>
<%= f.text_field :fullName %>
</div>
<div class="field">
<%= f.label :description %>
<%= f.text_field :description %>
</div>
<div class="field">
<%= f.label :email %>
<%= f.text_field :email %>
</div>
<div class="field">
<%= f.label :password %>
<%= f.text_field :password %>
</div>
<div class="field">
<%= collection_check_boxes(:user, :course_ids, @courses, :id, :course_name, :item_wrapper_class => 'checkbox_container') %>
</div>
<div class="actions">
<%= f.submit %>
</div>
<% end %>
You can’t perform that action at this time.