<%= f.field_container :name do %> <%= f.label :name, class: 'required' %>
<%= 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' %>
<% if @taxon.parent %>
<%= @taxon.permalink.split('/')[...-1].join('/') + '/' %>
<% end %> <%= text_field_tag :permalink_part, @permalink_part, class: 'fullwidth form-control' %>
<% end %> <%= f.field_container :icon do %> <%= f.label :icon %>
<%= f.file_field :icon %> <% if f.object.icon_present? %> <%= image_tag f.object.icon(:mini) %> <%= link_to t('spree.actions.remove'), admin_taxonomy_taxon_attachment_path(@taxonomy, @taxon.id, attachment_definition: :icon, authenticity_token: form_authenticity_token), method: :delete, class: 'btn btn-sm btn-danger' %> <% end %> <% end %>
<%= f.field_container :description do %> <%= f.label :description %>
<%= f.text_area :description, class: 'fullwidth', rows: 6 %> <% end %>
<%= f.field_container :meta_title do %> <%= f.label :meta_title %>
<%= f.text_field :meta_title, class: 'fullwidth' %> <% end %> <%= f.field_container :meta_description do %> <%= f.label :meta_description %>
<%= f.text_field :meta_description, class: 'fullwidth' %> <% end %> <%= f.field_container :meta_keywords do %> <%= f.label :meta_keywords %>
<%= f.text_field :meta_keywords, class: 'fullwidth' %> <% end %>