Sha256: ba8e60ad248aff7764f284024a9312a1fe2b113ebe3147122ba3b6427a94d1db

Contents?: true

Size: 1.59 KB

Versions: 5

Compression:

Stored size: 1.59 KB

Contents

<div data-hook="admin_inside_taxon_form" class="row">
  <div class="col-5">
    <%= f.field_container :name do %>
      <%= f.label :name, class: 'required' %><br />
      <%= text_field :taxon, :name, class: 'fullwidth' %>
      <%= error_message_on :taxon, :name, class: 'fullwidth title' %>
    <% end %>

    <%= f.field_container :permalink_part do %>
      <%= label_tag :permalink_part, Spree::Taxon.human_attribute_name(:permalink), class: 'required' %><br />
      <%= text_field_tag :permalink_part, @permalink_part, class: 'fullwidth' %><br />
      <span class="info" id="permalink_part_display">
        <%= @taxon.permalink.split('/')[0...-1].join('/') + '/' %>
      </span>
    <% end %>

    <%= f.field_container :icon do %>
      <%= f.label :icon %><br />
      <%= f.file_field :icon %>
      <%= image_tag f.object.icon(:mini) if f.object.icon.present? %>
    <% end %>
  </div>

  <div class="col-5">
    <%= f.field_container :description do %>
      <%= f.label :description %><br />
      <%= f.text_area :description, class: 'fullwidth', rows: 6 %>
    <% end %>
  </div>

  <div class="col-10">
    <%= f.field_container :meta_title do %>
      <%= f.label :meta_title %><br />
      <%= f.text_field :meta_title, class: 'fullwidth' %>
    <% end %>

    <%= f.field_container :meta_description do %>
      <%= f.label :meta_description %><br />
      <%= f.text_field :meta_description, class: 'fullwidth' %>
    <% end %>

    <%= f.field_container :meta_keywords do %>
      <%= f.label :meta_keywords %><br />
      <%= f.text_field :meta_keywords, class: 'fullwidth' %>
    <% end %>
  </div>
</div>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
solidus_backend-2.2.2 app/views/spree/admin/taxons/_form.html.erb
solidus_backend-2.2.1 app/views/spree/admin/taxons/_form.html.erb
solidus_backend-2.2.0 app/views/spree/admin/taxons/_form.html.erb
solidus_backend-2.2.0.rc1 app/views/spree/admin/taxons/_form.html.erb
solidus_backend-2.2.0.beta1 app/views/spree/admin/taxons/_form.html.erb