Sha256: 5d881209bc82bef0ec448a01b72b9843763ea5127ebbeeac8ef53ead46b4dee6
Contents?: true
Size: 1.46 KB
Versions: 15
Compression:
Stored size: 1.46 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> <% if can?(:update, @promotion) %> <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> <% end %> </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> <% if can?(:update, @promotion) %> <div class="filter-actions actions promotion-update"> <%= button Spree.t('actions.update'), 'refresh' %> </div> <% end %> <% end %> </fieldset>
Version data entries
15 entries across 15 versions & 1 rubygems