Sha256: e37fd859f2e5ef584b68c526d87abedd65e1c22605776e35bb1a2e4ddf6a0934

Contents?: true

Size: 1.34 KB

Versions: 27

Compression:

Stored size: 1.34 KB

Contents

<fieldset id="action_fields" class="eight columns omega no-border-top">

  <%= form_tag spree.admin_promotion_promotion_actions_path(@promotion), :remote => true, :id => 'new_promotion_action_form' do %>
    <% options = options_for_select(  Rails.application.config.spree.promotions.actions.map(&:name).map {|name| [ Spree.t("promotion_action_types.#{name.demodulize.underscore}.name"), name] } ) %>
    <fieldset>
      <legend align="center"><%= Spree.t(:promotion_actions) %></legend>
      <div class="field">
        <%= label_tag :action_type, Spree.t(:add_action_of_type)%>
        <%= select_tag 'action_type', options, :class => 'select2 fullwidth' %>  
      </div>
      <div class="filter-actions actions">
        <%= button Spree.t(:add), 'plus' %>
      </div>
    </fieldset>
  <% end %>

  <%= form_for @promotion, :url => spree.admin_promotion_path(@promotion), :method => :put do |f| %>
    <div id="actions" class="filter_list">
      <% if @promotion.actions.any? %>
        <%= render :partial => 'promotion_action',  :collection => @promotion.actions %>
      <% else %>
        <div class="no-objects-found">
          <%= Spree.t(:no_actions_added) %>
        </div>
      <% end %>
    </div>
    <div class="filter-actions actions promotion-update">
      <%= button Spree.t('actions.update'), 'refresh' %>
    </div>
  <% end %>

</fieldset>

Version data entries

27 entries across 27 versions & 2 rubygems

Version Path
solidus_backend-1.0.7 app/views/spree/admin/promotions/_actions.html.erb
solidus_backend-1.0.6 app/views/spree/admin/promotions/_actions.html.erb
solidus_backend-1.0.5 app/views/spree/admin/promotions/_actions.html.erb
solidus_backend-1.0.4 app/views/spree/admin/promotions/_actions.html.erb
solidus_backend-1.0.3 app/views/spree/admin/promotions/_actions.html.erb
solidus_backend-1.0.2 app/views/spree/admin/promotions/_actions.html.erb
spree_backend-2.4.10 app/views/spree/admin/promotions/_actions.html.erb
solidus_backend-1.0.1 app/views/spree/admin/promotions/_actions.html.erb
solidus_backend-1.0.0 app/views/spree/admin/promotions/_actions.html.erb
solidus_backend-1.0.0.rc2 app/views/spree/admin/promotions/_actions.html.erb
solidus_backend-1.0.0.rc1 app/views/spree/admin/promotions/_actions.html.erb
spree_backend-2.4.9 app/views/spree/admin/promotions/_actions.html.erb
solidus_backend-1.0.0.pre3 app/views/spree/admin/promotions/_actions.html.erb
solidus_backend-1.0.0.pre2 app/views/spree/admin/promotions/_actions.html.erb
spree_backend-2.4.8 app/views/spree/admin/promotions/_actions.html.erb
solidus_backend-1.0.0.pre app/views/spree/admin/promotions/_actions.html.erb
spree_backend-2.4.7 app/views/spree/admin/promotions/_actions.html.erb
spree_backend-2.4.6 app/views/spree/admin/promotions/_actions.html.erb
spree_backend-2.4.5 app/views/spree/admin/promotions/_actions.html.erb
spree_backend-2.4.4 app/views/spree/admin/promotions/_actions.html.erb