% if @client.editable? %>
  <%= form_with(model: client) do |form| %>
    <% if client.errors.any? %>
      
        <%= pluralize(client.errors.count, "error") %> prohibited this client from being saved:
        
          <% client.errors.each do |error| %>
            - <%= error.full_message %><% end %>
 
    <% end %>
    <% [:company_name, :firstname, :lastname, :streetname, :zipcode, :city, :country, :email, :phone].each do |attrib|%>
      
        <%= form.label attrib, style: "display: block" %>
        <%= form.text_field attrib %>
      
    <% end %>
    
      <%= form.submit %>
    
  <% end %>
<% else %>
  This client is used in multiple subprojects and cannot be edited.
<% end %>