Sha256: e4b5b12232361b712c77e52700934de6428ebae8d13faed3d69ee65f581f79d0

Contents?: true

Size: 1.86 KB

Versions: 8

Compression:

Stored size: 1.86 KB

Contents

<div data-hook="admin_inside_taxon_form">
  <div class="row">
    <div class="col-md-5">
      <%= f.field_container :name, class: ['form-group'] do %>
        <%= f.label :name, Spree.t(:name) %> <span class="required">*</span>
        <%= text_field :taxon, :name, :class => 'form-control' %>
        <%= error_message_on :taxon, :name, :class => 'error-message' %>
      <% end %>

      <%= f.field_container :permalink_part, class: ['form-group'] do %>
        <%= f.label :permalink_part, Spree.t(:permalink) %> <span class="required">*</span>
        <%= text_field_tag :permalink_part, @permalink_part, :class => 'form-control' %>
        <p class="help-block" id="permalink_part_display">
          <%= @taxon.permalink.split('/')[0...-1].join('/') + '/' %>
        </span>
      <% end %>

      <%= f.field_container :icon, class: ['form-group'] do %>
        <%= f.label :icon, Spree.t(:icon) %>
        <%= f.file_field :icon %>
      <% end %>
    </div>

    <div class="col-md-7">
      <%= f.field_container :description, class: ['form-group'] do %>
        <%= f.label :description, Spree.t(:description) %>
        <%= f.text_area :description, :class => 'form-control', :rows => 6 %>
      <% end %>
    </div>
  </div>

  <%= f.field_container :meta_title, class: ['form-group'] do %>
    <%= f.label :meta_title, Spree.t(:meta_title) %>
    <%= f.text_field :meta_title, :class => 'form-control', :rows => 6 %>
  <% end %>

  <%= f.field_container :meta_description, class: ['form-group'] do %>
    <%= f.label :meta_description, Spree.t(:meta_description) %>
    <%= f.text_field :meta_description, :class => 'form-control', :rows => 6 %>
  <% end %>

  <%= f.field_container :meta_description, class: ['form-group'] do %>
    <%= f.label :meta_keywords, Spree.t(:meta_keywords) %>
    <%= f.text_field :meta_keywords, :class => 'form-control', :rows => 6 %>
  <% end %>
</div>

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
spree_backend-3.0.4 app/views/spree/admin/taxons/_form.html.erb
spree_backend-3.0.3 app/views/spree/admin/taxons/_form.html.erb
spree_backend-3.0.2 app/views/spree/admin/taxons/_form.html.erb
spree_backend-3.0.1 app/views/spree/admin/taxons/_form.html.erb
spree_backend-3.0.0 app/views/spree/admin/taxons/_form.html.erb
spree_backend-3.0.0.rc4 app/views/spree/admin/taxons/_form.html.erb
spree_backend-3.0.0.rc3 app/views/spree/admin/taxons/_form.html.erb
spree_backend-3.0.0.rc1 app/views/spree/admin/taxons/_form.html.erb