<%= f.field_container :name do %> <%= f.label :name, raw(Spree.t(:name) + required_span_tag) %> <%= f.text_field :name, class: 'form-control', required: true, autocomplete: false %> <%= f.error_message_on :name %> <% end %>
<%= f.field_container :type do %> <%= f.label :type, Spree.t('admin.cms.section_type') %> <%= f.select(:type, spree_humanize_dropdown_values('Spree::CmsSection', {const: 'TYPES'}), {include_blank: false}) %> <%= f.error_message_on :type %> <% end %>
<% if %w[new create].include? controller.action_name %> <%= raw Spree.t('admin.cms.click_create_to_load_new_link') %> <% else %> <%= raw Spree.t('admin.cms.click_update_to_load_new_link') %> <% end %>
<% if @cms_section.type.present? %>
<%= raw Spree.t('admin.cms.settings_for', section: spree_humanize_type(@cms_section.type)) %>
"> <%= svg_icon name: "info.svg", width: '25', height: '25' %>
<% if @cms_section.type.present? %>
<%= render "spree/admin/cms_sections/types/#{spree_resource_path(@cms_section)}", f: f %>
<% end %>
<% end %>