spree_zone_pricing 0.1.61 → 0.1.62
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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>
|