OSDN Git Service

add admission_date to user model, add UserEditForm and their specs
[mint/mint-server.git] / app / views / users / edit.html.erb
1 <%= @title = 'ユーザ情報編集' %>
2
3 <%- form_for :user, @edit_form, :url => user_url, :html => { :method => :put } do |f| -%>
4   <div><%=h f.error_messages %></div>
5   <dl>
6     <dt><%= f.label(:name) %></dt>
7     <dd><%= f.text_field(:name) %></dd>
8     <dt><%= f.label(:email) %></dt>
9     <dd><%= f.text_field(:email) %></dd>
10     <dt><%= f.label(:admission_date) %></dt>
11     <dd><%= f.date_select(:admission_date, UserEditForm.date_select_options) %></dd>
12   </dl>
13   <%= submit_tag("Update") %>
14 <%- end -%>