caboose-cms 0.9.33 → 0.9.34
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/views/caboose/my_account_invoices/edit.html.erb +18 -12
- data/lib/caboose/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2d9ac08cdca0e00187c69413fdeee6d9d00e2c0b
|
4
|
+
data.tar.gz: b20ab6d1168515bb64882f0e598764e498b6ba96
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 30cd9b1fd883e91ce40102ca07cf9142aa00a6ff35b52d2c3afe6db85f194fcd3c69bb3ef7d02b358423ed35ec29405f3d92b3f3f709ddad5ad8459f7c15ea39
|
7
|
+
data.tar.gz: 5efa962ce01c0bc08f90b0ead4cada55b36a493ea3243682c11ec5cf1900d039343016d11def827ce693bf81749729d59544b5b08033c2d14b8eccef32ddd01e
|
@@ -3,19 +3,23 @@ store_config = @invoice.site.store_config
|
|
3
3
|
%>
|
4
4
|
<h1>Invoice #<%= @invoice.invoice_number %></h1>
|
5
5
|
|
6
|
-
|
7
|
-
|
8
|
-
<
|
9
|
-
|
10
|
-
<
|
6
|
+
<% if @invoice.status == Caboose::Invoice::STATUS_CART %>
|
7
|
+
<p class='note error'>This invoice is still in cart status. Please <a href='/checkout'>checkout</a> to view this invoice.</p>
|
8
|
+
<p><input type='button' value='< Back' class='btn' onclick="window.location='/my-account/invoices';" /></p>
|
9
|
+
<% else %>
|
10
|
+
<div id='overview_table'></div>
|
11
|
+
<% if @invoice.financial_status == Caboose::Invoice::FINANCIAL_STATUS_PENDING %>
|
12
|
+
<div id='payment_form'></div>
|
13
|
+
<div id='payment_message'></div>
|
14
|
+
<iframe id="relay" name="relay" style='<% if @show_relay %>display: block; width: 800px; height: 400px; border: #000 1px solid;<% else %>display: none;<% end %>'></iframe>
|
15
|
+
<% end %>
|
16
|
+
<div id='invoice_table'></div>
|
17
|
+
<div id='message'></div>
|
18
|
+
<p>
|
19
|
+
<p><input type='button' value='< Back' class='btn' onclick="window.location='/my-account/invoices';" /></p>
|
20
|
+
<input type='button' value='Print Invoice' class='btn' onclick='window.location="/my-account/invoices/<%= @invoice.id %>/print";' />
|
21
|
+
</p>
|
11
22
|
<% end %>
|
12
|
-
<div id='invoice_table'></div>
|
13
|
-
<div id='message'></div>
|
14
|
-
|
15
|
-
<p>
|
16
|
-
<input type='button' value='< Back' class='btn' onclick="window.location='/my-account/invoices';" />
|
17
|
-
<input type='button' value='Print Invoice' class='btn' onclick='window.location="/my-account/invoices/<%= @invoice.id %>/print";' />
|
18
|
-
</p>
|
19
23
|
|
20
24
|
<% content_for :caboose_js do %>
|
21
25
|
<%= javascript_include_tag 'https://js.stripe.com/v2/' %>
|
@@ -25,6 +29,7 @@ store_config = @invoice.site.store_config
|
|
25
29
|
<%= javascript_include_tag 'caboose/my_account_payment_method_controller' %>
|
26
30
|
<script type='text/javascript'>
|
27
31
|
|
32
|
+
<% if @invoice.status != Caboose::Invoice::STATUS_CART %>
|
28
33
|
var controller = false;
|
29
34
|
$(document).ready(function() {
|
30
35
|
controller = new MyAccountInvoiceController({
|
@@ -32,6 +37,7 @@ $(document).ready(function() {
|
|
32
37
|
authenticity_token: <%= raw Caboose.json(form_authenticity_token) %>
|
33
38
|
});
|
34
39
|
});
|
40
|
+
<% end %>
|
35
41
|
|
36
42
|
</script>
|
37
43
|
<% end %>
|
data/lib/caboose/version.rb
CHANGED