Sha256: 44594e9dce76f5dda0f0a14115b276cfd6abde988e4a9f62ec62a3626bd7cf55
Contents?: true
Size: 1.22 KB
Versions: 8
Compression:
Stored size: 1.22 KB
Contents
<fieldset id="action_fields"> <legend><%= t(:promotion_actions) %></legend> <%= form_for @promotion, :url => admin_promotion_path(@promotion), :html => { :method => :put } do |f| %> <div id="actions" class="filter_list"> <% if @promotion.actions.any? %> <%#= render :partial => 'promotion_action', :collection => @promotion.actions, :locals => {:f => f} %> <%= f.fields_for :promotion_actions do |action_form| %> <%= render 'admin/promotions/promotion_action', :action_form => action_form %> <% end %> <% else %> <!-- <p><%= t(:no_actions_added) %></p> --> <% end %> </div> <p class="form-buttons"> <%= button t(:update) %> </p> <% end %> <%= form_tag 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| [ t("promotion_action_types.#{name.demodulize.underscore}.name"), name] } ) %> <p> <%= label_tag :promotion_action_type, t(:add_action_of_type) %> <%= select_tag 'promotion_action[type]', options %> <%= submit_tag t(:add) %> </p> <% end %> </fieldset>
Version data entries
8 entries across 8 versions & 1 rubygems