<%= form_for @form, url:{action: @form.new_record? ? :create : :update} , role: 'form', html: { id: "contact_form_editor", class: "validate" } do |f| %>
<%= f.hidden_field :site_id %>
<%= f.hidden_field :id %>
<%= form_shortcode(@form.slug) %>
<%= render partial: 'layouts/admin/form_error', locals: {data: @form} %>
<% end %>