Files
parse/app/views/clients/_form.html.erb
Stefan Tollkühn 3735122750 initial commit
2025-07-21 12:14:42 +02:00

63 lines
1.4 KiB
Plaintext

<%= form_with(model: client) do |form| %>
<% if client.errors.any? %>
<div style="color: red">
<h2><%= pluralize(client.errors.count, "error") %> prohibited this client from being saved:</h2>
<ul>
<% client.errors.each do |error| %>
<li><%= error.full_message %></li>
<% end %>
</ul>
</div>
<% end %>
<div>
<%= form.label :company_name, style: "display: block" %>
<%= form.text_field :company_name %>
</div>
<div>
<%= form.label :firstname, style: "display: block" %>
<%= form.text_field :firstname %>
</div>
<div>
<%= form.label :lastname, style: "display: block" %>
<%= form.text_field :lastname %>
</div>
<div>
<%= form.label :streetname, style: "display: block" %>
<%= form.text_field :streetname %>
</div>
<div>
<%= form.label :zipcode, style: "display: block" %>
<%= form.text_field :zipcode %>
</div>
<div>
<%= form.label :city, style: "display: block" %>
<%= form.text_field :city %>
</div>
<div>
<%= form.label :country, style: "display: block" %>
<%= form.text_field :country %>
</div>
<div>
<%= form.label :email, style: "display: block" %>
<%= form.text_field :email %>
</div>
<div>
<%= form.label :phone, style: "display: block" %>
<%= form.text_field :phone %>
</div>
<div>
<%= form.submit %>
</div>
<% end %>