<% if @client.editable? %> <%= form_with(model: client) do |form| %> <% if client.errors.any? %>

<%= pluralize(client.errors.count, "error") %> prohibited this client from being saved:

<% end %> <% client_form_fields.each do |attrib| %>
<%= form.label attrib, style: "display: block" %> <%= form.text_field attrib, value: client.send(attrib) %>
<% end %>
<%= form.submit %>
<% end %> <% else %>

This client is used in multiple subprojects and cannot be edited.

<% end %>