spree_zone_pricing 0.1.62 → 0.1.63
Sign up to get free protection for your applications and to get access to all the features.
data/app/models/zone_currency.rb
CHANGED
@@ -2,6 +2,7 @@ class ZoneCurrency < ActiveRecord::Base
|
|
2
2
|
|
3
3
|
validates_presence_of :zone_id
|
4
4
|
validates_presence_of :currency
|
5
|
-
validates_uniqueness_of :zone_id, :scope => [:currency]
|
5
|
+
#validates_uniqueness_of :zone_id, :scope => [:currency]
|
6
|
+
validates_uniqueness_of :zone_id
|
6
7
|
|
7
8
|
end
|
@@ -20,12 +20,8 @@
|
|
20
20
|
<%
|
21
21
|
zone = Spree::Zone.find(zone_currency.zone_id)
|
22
22
|
%>
|
23
|
-
<%= zone.name %>
|
24
23
|
<%= f.hidden_field :zone_id %>
|
25
|
-
|
26
|
-
</div>
|
27
|
-
|
28
|
-
<div class="right">
|
24
|
+
<h1>Edit Currency for <%= zone.name %></h1><br /><br />
|
29
25
|
|
30
26
|
<%= f.field_container :currency do %>
|
31
27
|
<%= f.label :currency %> <span class="required">*</span><br />
|
@@ -35,6 +31,10 @@
|
|
35
31
|
|
36
32
|
</div>
|
37
33
|
|
34
|
+
<div class="right">
|
35
|
+
|
36
|
+
</div>
|
37
|
+
|
38
38
|
</div>
|
39
39
|
|
40
40
|
<div class="actions">
|