Latest updates

This commit is contained in:
2022-04-07 12:45:09 +01:00
parent 557b43c911
commit 21b42c69a5
25 changed files with 412 additions and 14 deletions

View File

@@ -0,0 +1,30 @@
<%= form_for( [company, caf] ) do |form| %>
<% if caf.errors.any? %>
<div style="color: red">
<h2><%= pluralize(caf.errors.count, "error") %> prohibited this caf from being saved:</h2>
<ul>
<% caf.errors.each do |error| %>
<li><%= error.full_message %></li>
<% end %>
</ul>
</div>
<% end %>
<%= form.hidden_field :company_id, value: company.id %>
<div>
<%= form.label :name, style: "display: block" %>
<%= form.text_field :name %>
</div>
<div>
<%= form.label :description, style: "display: block" %>
<%= form.text_area :description %>
</div>
<div>
<%= form.submit %>
</div>
<% end %>