Sha256: 6a35dcdedee8e3ffded614419a21d98ab6643f3f603b91dcd425bd4ce95feb18

Contents?: true

Size: 1.04 KB

Versions: 4

Compression:

Stored size: 1.04 KB

Contents

<% content_for :page_title do %>
    <%= Spree.t("drop_ship_settings") %>
<% end %>

<%= form_tag(spree.admin_drop_ship_settings_path, :method => :put) do %>
    <fieldset class="general no-border-top">
      <% %w( default_commission_flat_rate default_commission_percentage automatically_deliver_orders_to_supplier send_supplier_email).each do |key|
        type = SpreeDropShip::Config.preference_type(key) %>
          <div class="field col-md-6">
            <%= label_tag(key, Spree.t(key) + ': ') + tag(:br) if type != :boolean %>
            <%= preference_field_tag(key, SpreeDropShip::Config[key], :type => type ,:class => 'form-control')%>
            <%= label_tag(key, Spree.t(key)) + tag(:br) if type == :boolean %>
          </div>
      <% end %>
      <div class="form-buttons" data-hook="buttons">
        <%= button Spree.t(:update), 'update' %>
        <span class="or"><%= Spree.t(:or) %></span>
        <%= button_link_to Spree.t(:cancel), spree.edit_admin_drop_ship_settings_url, :icon => 'cancel' %>
      </div>
    </fieldset>
<% end %>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
spree_drop_ship-3.1.3 app/views/spree/admin/drop_ship_settings/edit.html.erb
spree_drop_ship-3.1.2 app/views/spree/admin/drop_ship_settings/edit.html.erb
spree_drop_ship-3.1.1 app/views/spree/admin/drop_ship_settings/edit.html.erb
spree_drop_ship-3.1.0.1 app/views/spree/admin/drop_ship_settings/edit.html.erb