<%= simple_form_for @entity_configuration, url: entity_configurations_path, method: :patch, html: { class: "smart-form" } do |f| %> <%= f.error_notification %>
<%= f.input :entity_name %>
<%= f.input :cnpj, input_html: { class: 'cnpj'} %>
<%= f.input :organ_name %>
<%= f.input :phone, as: :tel %>
<%= f.input :website %>
<%= f.input :email, as: :email %>
<%= f.input :logo, input_html: { onchange: 'readURL(this);' } %>
<% if @entity_configuration.logo && @entity_configuration.logo.url %> <%= image_tag @entity_configuration.logo_url, id: 'img-prev'%> <% else %> Logo da instituição <% end %>
<%= f.association :address do |a| %> <%= render 'address/shared_form', f: a, show_map: !Rails.env.test? %> <% end %> <% end %>