%= simple_form_for @unity, html: { class: "smart-form" } do |f| %> <%= f.error_notification %>
<%= f.association :address do |a| %> <%= render 'address/shared_form', f: a, show_map: !Rails.env.test? %> <% end %> <% if @unity.persisted? && policy(@unity).view_school_calendars? %> <%= render 'opened_year' %> <% end %> <% end %>