spree_zone_pricing 0.1.61 → 0.1.62

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,7 @@
1
1
  <h1>Listing Currency Prices</h1>
2
2
 
3
-
3
+ <!--
4
4
  <% content_for :sidebar do %>
5
5
  <%= render :partial => 'spree/admin/shared/sidebar_zone_currencies', :locals => { :selected => "currency_prices" } %>
6
- <% end %>
6
+ <% end %>
7
+ -->
@@ -0,0 +1,46 @@
1
+ <%= nested_form_for @zone_currency, :url => @form_target, :method => @form_method do |f| %>
2
+
3
+ <% if @zone_currency.errors.any? %>
4
+ <div class="alert-message block-message error">
5
+ <p><strong><%= pluralize(@zone_currency.errors.count, "error") %></strong> prohibited this form from being saved:</p>
6
+ <ul>
7
+ <% @zone_currency.errors.full_messages.each do |msg| %>
8
+ <li><%= msg %></li>
9
+ <% end %>
10
+ </ul>
11
+ </div>
12
+ <% end %>
13
+
14
+ <fieldset data-hook="new_zone_currency">
15
+
16
+ <div class="clearfix" data-hook="new_zone_currency_attrs">
17
+
18
+ <div class="left">
19
+
20
+ <%
21
+ zone = Spree::Zone.find(zone_currency.zone_id)
22
+ %>
23
+ <%= zone.name %>
24
+ <%= f.hidden_field :zone_id %>
25
+
26
+ </div>
27
+
28
+ <div class="right">
29
+
30
+ <%= f.field_container :currency do %>
31
+ <%= f.label :currency %> <span class="required">*</span><br />
32
+ <%= f.text_field :currency %>
33
+ <%= f.error_message_on :currency %>
34
+ <% end %>
35
+
36
+ </div>
37
+
38
+ </div>
39
+
40
+ <div class="actions">
41
+ <%= f.submit :class => "btn primary" %>
42
+ </div>
43
+
44
+ </fieldset>
45
+
46
+ <% end %>
@@ -0,0 +1,15 @@
1
+ <div data-hook="admin_zone_currency_edit_header">
2
+ <%
3
+ =begin
4
+ %>
5
+ <%= render :partial => 'spree/shared/error_messages', :locals => { :target => @order } %>
6
+ <%
7
+ =end
8
+ %>
9
+ </div>
10
+
11
+ <div data-hook="admin_zone_currency_edit_form">
12
+ <div id="event_sticky-form-wrapper">
13
+ <%= render :partial => 'form', :locals => { :zone_currency => @zone_currency } %>
14
+ </div>
15
+ </div>
@@ -26,6 +26,8 @@
26
26
 
27
27
  <%= paginate @zone_currencies %>
28
28
 
29
+ <!--
29
30
  <% content_for :sidebar do %>
30
31
  <%= render :partial => 'spree/admin/shared/sidebar_zone_currencies', :locals => { :selected => "zone_currencies" } %>
31
- <% end %>
32
+ <% end %>
33
+ -->
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spree_zone_pricing
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.61
4
+ version: 0.1.62
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: