<% if @form.nil? @form = current_site.contact_forms.new end %>

<%= t('plugin.contact_form.contact_form') %>

<%= 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} %>
<%= t('plugin.contact_form.button.back') %>

<%= t('plugin.contact_form.title_panel.form_details') %>

<%= f.label nil, "#{t('admin.table.name')} *".html_safe, :class => "" %>
<%= f.text_field :name, :class => "form-control required", style: "" %>
<%= f.label nil, "#{t('admin.table.slug')} *".html_safe, :class => "" %> <%= f.text_field :slug, :class => "form-control slug required", "data-parent" => "plugins_contact_form_models_contact_form_name", style: "" %>

<%= t('plugin.contact_form.form_settings_email') %>




<%= t('plugin.contact_form.form_settings_messages') %>

<% end %>