<% if @form.nil? @form = current_site.contact_forms.new end %> <%= form_for @form, url:{action: @form.new_record? ? :create : :update}, html:{class: 'validate-forms cama_ajax_request'} do |f| %> <%= f.hidden_field :id %>
<%#= render partial: 'layouts/camaleon_cms/admin/form_error', locals: {data: @form} %>
<%= f.label t('camaleon_cms.admin.table.name') %>
<%= f.text_field :name, :class => "form-control required" %>
<%= f.label t('camaleon_cms.admin.table.slug') %>
<%= f.text_field :slug, :class => "form-control slug", "data-parent" => "plugins_contact_form_models_contact_form_name" %>
<%= f.label t('camaleon_cms.admin.table.description') %>
<%= f.text_area :description, :class => "form-control", :rows => 4 %>
<% end %>