-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0058fed
commit c01af53
Showing
5 changed files
with
31 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<div data-hook="new_promotion_batch_template_promotion" class="col-12 col-md-4"> | ||
<%= f.field_container :template_promotion do %> | ||
<%= f.label :template_promotion_id, Spree.t(:template_promotion) %> | ||
<%= f.collection_select :template_promotion_id, Spree::Promotion.all, :id, :name, { include_blank: true }, { class: 'select2-clear w-100' } %> | ||
<% end %> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<% content_for :page_title do %> | ||
<%= link_to Spree.t(:promotion_batches), admin_promotion_batches_path %> / | ||
<%= @promotion_batch.id %> | ||
<% end %> | ||
|
||
<div class="card"> | ||
<div class="card-body"> | ||
<%= form_tag csv_import_admin_promotion_batch_path, method: :post, multipart: true do %> | ||
<%= file_field_tag :file, accept: ".csv" %> | ||
<%= submit_tag 'Import codes from CSV' %> | ||
<% end %> | ||
</div> | ||
</div> | ||
|
||
<%= form_for @promotion_batch, url: object_url, method: :put do |f| %> | ||
<div class="card mb-4"> | ||
<div class="card-body"> | ||
<%= render partial: 'spree/admin/shared/edit_resource_links' %> | ||
</div> | ||
</div> | ||
<% end %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters