44 lines
845 B
Plaintext
44 lines
845 B
Plaintext
<%= form_for @customer do |f| %>
|
|
<% if @customer.errors.any? %>
|
|
<div id="error_explanation">
|
|
<h2>
|
|
<%= pluralize(@customer.errors.count, "error") %> prohibited
|
|
this article from being saved:
|
|
</h2>
|
|
<ul>
|
|
<% @customer.errors.full_messages.each do |msg| %>
|
|
<li><%= msg %></li>
|
|
<% end %>
|
|
</ul>
|
|
</div>
|
|
<% end %>
|
|
<p>
|
|
<%= f.label :name %><br>
|
|
<%= f.text_field :name %>
|
|
</p>
|
|
<p>
|
|
<%= f.label :street %><br>
|
|
<%= f.text_field :street %>
|
|
</p>
|
|
<p>
|
|
<%= f.label :postcode %><br>
|
|
<%= f.text_field :postcode %>
|
|
</p>
|
|
<p>
|
|
<%= f.label :city %><br>
|
|
<%= f.text_field :city %>
|
|
</p>
|
|
<p>
|
|
<%= f.label :nip %><br>
|
|
<%= f.text_field :nip %>
|
|
</p>
|
|
<p>
|
|
<%= f.label :regon %><br>
|
|
<%= f.text_field :regon %>
|
|
</p>
|
|
|
|
<p>
|
|
<%= f.submit %>
|
|
</p>
|
|
<% end %>
|