Sha256: 46154f3765a39a411d4ef9c1ecca0cdfcd84c98d24c5fd23e0dc0c1afcef0009

Contents?: true

Size: 1.97 KB

Versions: 16

Compression:

Stored size: 1.97 KB

Contents

<div class="row">
  <div class="col-12 col-md-4">
    <%= f.field_container :title do %>
      <%= f.label :title, Spree.t('admin.cms.title') %>
      <%= f.text_field :title, class: 'form-control' %>
      <%= f.error_message_on :title %>
    <% end %>

    <%= f.field_container :subtitle do %>
      <%= f.label :subtitle, Spree.t('admin.cms.subtitle') %>
      <%= f.text_field :subtitle, class: 'form-control' %>
      <%= f.error_message_on :subtitle %>
    <% end %>

    <%= f.field_container :button_text do %>
      <%= f.label :button_text, Spree.t('admin.cms.button_text') %>
      <%= f.text_field :button_text, class: 'form-control' %>
      <%= f.error_message_on :button_text %>
    <% end %>

    <%= f.field_container :gutters do %>
      <%= f.label :gutters, Spree.t('admin.cms.gutters') %>
      <%= f.select(:gutters, @cms_section.gutters_sizes, {include_blank: false}, class: 'select2') %>
      <%= f.error_message_on :gutters %>
    <% end %>

  </div>
  <div class="col-12 col-md-8">
    <%= f.field_container :rte_content do %>
      <%= f.label :rte_content, Spree.t('admin.cms.content') %>
      <%= f.text_area :rte_content, { rows: "20", class: 'form-control spree-rte' } %>
      <%= f.error_message_on :rte_content %>
    <% end %>
  </div>
  <div class="col-12"><hr></div>
  <div class="col-12 col-md-6">
    <%= f.field_container :linked_resource_type do %>
      <%= f.label :linked_resource_type, Spree.t('admin.navigation.link_to') %>
      <%= f.select(:linked_resource_type,
          spree_humanize_dropdown_values('Spree::Cms::Sections::FeaturedArticle',
                                          { const: 'LINKED_RESOURCE_TYPE' }),
                                          {include_blank: false},
                                          class: 'link_switcher') %>
      <%= f.error_message_on :linked_resource_type %>
    <% end %>
  </div>
  <div class="col-12 col-md-6">
      <%= render "spree/admin/shared/link_fields", resource: @cms_section, f: f %>
  </div>
</div>

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
spree_backend-4.8.4 app/views/spree/admin/cms_sections/types/_featured_article.html.erb
spree_backend-4.8.3 app/views/spree/admin/cms_sections/types/_featured_article.html.erb
spree_backend-4.8.2 app/views/spree/admin/cms_sections/types/_featured_article.html.erb
spree_backend-4.8.1 app/views/spree/admin/cms_sections/types/_featured_article.html.erb
spree_backend-4.7.2 app/views/spree/admin/cms_sections/types/_featured_article.html.erb
spree_backend-4.6.2 app/views/spree/admin/cms_sections/types/_featured_article.html.erb
spree_backend-4.7.1 app/views/spree/admin/cms_sections/types/_featured_article.html.erb
spree_backend-4.7.0 app/views/spree/admin/cms_sections/types/_featured_article.html.erb
spree_backend-4.6.1 app/views/spree/admin/cms_sections/types/_featured_article.html.erb
spree_backend-4.6.0 app/views/spree/admin/cms_sections/types/_featured_article.html.erb
spree_backend-4.5.1 app/views/spree/admin/cms_sections/types/_featured_article.html.erb
spree_backend-4.5.0 app/views/spree/admin/cms_sections/types/_featured_article.html.erb
spree_backend-4.4.1 app/views/spree/admin/cms_sections/types/_featured_article.html.erb
spree_backend-4.4.0 app/views/spree/admin/cms_sections/types/_featured_article.html.erb
spree_backend-4.4.0.rc2 app/views/spree/admin/cms_sections/types/_featured_article.html.erb
spree_backend-4.4.0.rc1 app/views/spree/admin/cms_sections/types/_featured_article.html.erb