Sha256: 8e0202b9cad3c328fc270a1877cc2ad4df9b546582125f580aa785838a32c1f9

Contents?: true

Size: 1.76 KB

Versions: 39

Compression:

Stored size: 1.76 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 />
      <div class="input-group">
        <% if @taxon.parent %>
          <div class="input-group-prepend">
            <span class="input-group-text">
              <%= @taxon.permalink.split('/')[0...-1].join('/') + '/' %>
            </span>
          </div>
        <% end %>
        <%= text_field_tag :permalink_part, @permalink_part, class: 'fullwidth form-control' %><br />
      </div>
    <% 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

39 entries across 39 versions & 2 rubygems

Version Path
solidus_backend-2.8.6 app/views/spree/admin/taxons/_form.html.erb
solidus_backend-2.6.6 app/views/spree/admin/taxons/_form.html.erb
solidus_backend-2.7.4 app/views/spree/admin/taxons/_form.html.erb
solidus_backend-2.8.5 app/views/spree/admin/taxons/_form.html.erb
solidus_backend-2.7.3 app/views/spree/admin/taxons/_form.html.erb
solidus_backend-2.6.5 app/views/spree/admin/taxons/_form.html.erb
solidus_backend-2.5.2 app/views/spree/admin/taxons/_form.html.erb
solidus_backend-2.8.4 app/views/spree/admin/taxons/_form.html.erb
solidus_backend-2.8.3 app/views/spree/admin/taxons/_form.html.erb
solidus_backend-2.7.2 app/views/spree/admin/taxons/_form.html.erb
solidus_backend-2.6.4 app/views/spree/admin/taxons/_form.html.erb
solidus_backend-2.8.2 app/views/spree/admin/taxons/_form.html.erb
solidus_backend-2.8.1 app/views/spree/admin/taxons/_form.html.erb
solidus_backend-2.5.1 app/views/spree/admin/taxons/_form.html.erb
solidus_backend-2.6.3 app/views/spree/admin/taxons/_form.html.erb
solidus_backend-2.8.0 app/views/spree/admin/taxons/_form.html.erb
solidus_backend-2.7.1 app/views/spree/admin/taxons/_form.html.erb
solidus_backend-2.6.2 app/views/spree/admin/taxons/_form.html.erb
solidus_backend_devise_token_auth-2.8.0.alpha.14 app/views/spree/admin/taxons/_form.html.erb
solidus_backend_devise_token_auth-2.8.0.alpha.13 app/views/spree/admin/taxons/_form.html.erb