44 lines
832 B
Plaintext
44 lines
832 B
Plaintext
<h1>Editing person</h1>
|
|
|
|
<% form_for(@person) do |f| %>
|
|
<%= f.error_messages %>
|
|
|
|
<p>
|
|
<%= f.label :newsletter %><br />
|
|
<%= f.check_box :newsletter %>
|
|
</p>
|
|
<p>
|
|
<%= f.label :surname %><br />
|
|
<%= f.text_field :surname %>
|
|
</p>
|
|
<p>
|
|
<%= f.label :firstname %><br />
|
|
<%= f.text_field :firstname %>
|
|
</p>
|
|
<p>
|
|
<%= f.label :email %><br />
|
|
<%= f.text_field :email %>
|
|
</p>
|
|
<p>
|
|
<%= f.label :phone %><br />
|
|
<%= f.text_field :phone %>
|
|
</p>
|
|
<p>
|
|
<%= f.label :job %><br />
|
|
<%= f.text_field :job %>
|
|
</p>
|
|
<p>
|
|
<%= f.label :sheet %><br />
|
|
<%= f.text_field :sheet %>
|
|
</p>
|
|
<p>
|
|
<%= f.label :positon %><br />
|
|
<%= f.text_field :positon %>
|
|
</p>
|
|
<p>
|
|
<%= f.submit 'Update' %>
|
|
</p>
|
|
<% end %>
|
|
|
|
<%= link_to 'Show', @person %> |
|
|
<%= link_to 'Back', people_path %> |