Sha256: d717500a94dad65016bd71c023e2ca7d18c5bc0e62550768329ee29c43056cf3

Contents?: true

Size: 1.63 KB

Versions: 6

Compression:

Stored size: 1.63 KB

Contents

<% content_for :page_title do %>
  <%= Spree.t(:editing_option_type) %> <span class="green">"<%= @option_type.name %>"</span>
<% end %>

<% content_for :page_actions do %>
  <li>
    <span id="new_add_option_value" data-hook>
      <%= link_to_add_fields Spree.t(:add_option_value), "tbody#option_values", :class => 'button fa fa-plus' %>
    </span>
  </li>
  <li>
    <%= button_link_to Spree.t(:back_to_option_types_list), spree.admin_option_types_path, :icon => 'arrow-left' %>
  </li>
<% end %>

<%= render :partial => 'spree/shared/error_messages', :locals => { :target => @option_type } %>

<%= form_for [:admin, @option_type] do |f| %>

  <fieldset class="no-border-bottom">
    <legend><%= Spree::OptionType.model_name.human %></legend>
    <%= render :partial => 'form', :locals => { :f => f } %>
  </fieldset>

  <fieldset>
    <legend><%= Spree::OptionValue.model_name.human(count: :other) %></legend>
    <table class="index sortable" data-hook data-sortable-link="<%= update_values_positions_admin_option_types_url %>">
      <thead data-hook="option_header">
        <tr>
          <th colspan="2"><%= Spree::OptionValue.human_attribute_name(:name) %></th>
          <th><%= Spree::OptionValue.human_attribute_name(:presentation) %></th>
          <th class="actions"></th>
        </tr>
      </thead>
      <tbody id="option_values">
        <%= f.fields_for :option_values, @option_values do |option_value_form| %>
          <%= render :partial => 'option_value_fields', :locals => { :f => option_value_form } %>
        <% end %>
      </tbody>
    </table>
    <%= render :partial => 'spree/admin/shared/edit_resource_links' %>
  </fieldset>
<% end %>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
solidus_backend-1.3.2 app/views/spree/admin/option_types/edit.html.erb
solidus_backend-1.3.1 app/views/spree/admin/option_types/edit.html.erb
solidus_backend-1.3.0 app/views/spree/admin/option_types/edit.html.erb
solidus_backend-1.3.0.rc2 app/views/spree/admin/option_types/edit.html.erb
solidus_backend-1.3.0.rc1 app/views/spree/admin/option_types/edit.html.erb
solidus_backend-1.3.0.beta1 app/views/spree/admin/option_types/edit.html.erb