<%= Spree.t('admin.cms.side_by_side.left_image') %>
<%= f.field_container :image_one, class: ['form-group'] do %>
<% if @cms_section.image_one.attached? && @cms_section.image_one.variable? %>
<% elsif @cms_section.image_one.attached? && @cms_section.image_one.image? %>
<% end %>
<%= f.field_container :image_one, class: ['form-group mb-0'] do %>
<%= f.file_field :image_one %>
<%= f.error_message_on :image_one %>
<% end %>
<%= Spree.t('admin.cms.side_by_side.image_info') %>
<% end %>
<%= f.field_container :title_one, class: ['form-group'] do %>
<%= f.label :title_one, Spree.t('admin.cms.title') %>
<%= f.text_field :title_one, class: 'form-control' %>
<%= f.error_message_on :title_one %>
<% end %>
<%= f.field_container :subtitle_one, class: ['form-group'] do %>
<%= f.label :subtitle_one, Spree.t('admin.cms.subtitle') %>
<%= f.text_field :subtitle_one, class: 'form-control' %>
<%= f.error_message_on :subtitle_one %>
<% end %>
<% unless rails_5? %>
<%= f.field_container :link_type_one, class: ['form-group'] do %>
<%= f.label :link_type_one, Spree.t('admin.navigation.link_to') %>
<%= f.select(:link_type_one,
spree_humanize_dropdown_values('Spree::Cms::Sections::SideBySideImages',
{ const: 'LINKED_RESOURCE_TYPE' }),
{ include_blank: false },
class: 'link_switcher',
data: { target_field: :link_one}) %>
<%= f.error_message_on :link_type_one %>
<% end %>
<% end %>
<%= render "spree/admin/shared/link_fields", resource: @cms_section, linked_type: @cms_section.link_type_one, save_to: :link_one, f: f %>