caboose-cms 0.9.212 → 0.9.213

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ebf95156a9451146070c1fd0c9270f8a9a678fbe489177eff05eea787500aa96
4
- data.tar.gz: '081ee5186a8f791d6f11d8a11791d7810ecfad5f907d633fac541422e9023ee5'
3
+ metadata.gz: 18d517c4802e66cdc98e817d7addb3c8813f95a459de1d516be2c121d006f0ba
4
+ data.tar.gz: 9065ccfd1e7f6abe36401930a50046f699062d13c7f81657fffa3a6e850e1351
5
5
  SHA512:
6
- metadata.gz: f0c64905c5afe01079ef6ff6711cf556f57a681622b56efd5b23d2da9958eb4be3e7e2fca6579b20b963f2deacbc758b226f856f7cc1710b5209cc05f4046458
7
- data.tar.gz: 3f70ab15d866127fa9caa2a738c6c9b62924c7edb33c95215c4b468761ac2857e5806f0078df546a6aa4adc6013c6001d3fba8a244a0acdfad2a90f4572d5197
6
+ metadata.gz: 67f8b5c5f80f9f50a1d0b814e190984a9106c6c0e449d26bc97200c247685106ea1b95f536ae535168c586ed8f6e5b2415a94c396ae2ae6459795253b4ae1e4d
7
+ data.tar.gz: add7893d1c503a86de172037751b9918281ba94e2c5b95aa2ba2259f5235d577f71bcd6b9a30ef661ade2c9fec870e61b4b1bc90ff91878add88c67858db74f4
@@ -11,11 +11,14 @@ module Caboose
11
11
  invoice_ids = Colonnade::SuiteMenu.where(:menu_id => menu_ids).pluq(:invoice_id) if !menu_ids.blank?
12
12
  invoice_ids = invoice_ids.to_s.gsub('[','').gsub(']','')
13
13
  end
14
+
15
+ status = request.fullpath == '/admin/invoices' ? Caboose::Invoice::STATUS_PENDING : ''
14
16
 
15
17
  @pager = Caboose::PageBarGenerator.new(params, {
16
18
  'site_id' => @site.id,
17
19
  'customer_id' => params[:user_id] ? params[:user_id] : '',
18
- 'status' => Invoice::STATUS_PENDING,
20
+ 'status' => status,
21
+ 'financial_status' => '',
19
22
  'shipping_method_code' => '',
20
23
  'id' => '',
21
24
  'invoice_number' => '',
@@ -3,11 +3,6 @@
3
3
  <% if @edituser %>
4
4
  <%= render :partial => 'caboose/users/admin_header' %>
5
5
  <% else %>
6
- <div id='crumbtrail'>
7
- <a href='/admin'>Admin</a> >
8
- <a href='/admin/invoices'>Invoices</a> >
9
- Invoice #<%= @invoice.invoice_number %>
10
- </div>
11
6
  <h1>Edit Invoice #<%= @invoice.invoice_number %></h1>
12
7
  <% end %>
13
8
 
@@ -23,26 +18,6 @@
23
18
 
24
19
  </div>
25
20
 
26
-
27
- <!--
28
- <p>
29
- <input type='button' value='< Back' onclick="window.location='/admin/invoices';" />
30
- <% if @invoice.financial_status == Caboose::Invoice::FINANCIAL_STATUS_AUTHORIZED && @invoice.total > 0.00 %>
31
- <input type='button' value='Capture Funds' onclick="controller.capture_funds();" />
32
- <input type='button' value='Void' onclick="controller.void_invoice();" />
33
- <% end %>
34
- <% if @invoice.financial_status == Caboose::Invoice::FINANCIAL_STATUS_CAPTURED && @invoice.total > 0.00 %>
35
- <input type='button' value='Refund' onclick="refund_invoice(<%= @invoice.id %>);" />
36
- <% end %>
37
- <input type='button' value='Resend Confirmation' onclick="resend_confirmation(<%= @invoice.id %>)" />
38
- <input type='button' value='Add Item' onclick="controller.add_variant();" />
39
- <input type='button' value='Print Invoice' onclick="controller.print_invoice(<%= @invoice.id %>);" />
40
-
41
- <% str = Caboose.plugin_hook('admin_edit_invoice_buttons', "", @invoice) %>
42
- <% if str %><%= raw str %><% end %>
43
- </p>
44
- -->
45
-
46
21
  <% content_for :caboose_js do %>
47
22
  <%= javascript_include_tag 'caboose/model/all' %>
48
23
  <%= javascript_include_tag 'caboose/admin_edit_invoice' %>
@@ -39,7 +39,7 @@
39
39
  <p><input type='text' name='total_lte' placeholder='Total Max' value="<%= @pager.params['total_lte'] %>" style='width: 100px;' /></p>
40
40
  <p>
41
41
  <!--
42
- <select name='status'>
42
+ <select name='status'>
43
43
  <optgroup label='Status'>
44
44
  <option value=''>-- All statuses --</option>
45
45
  <% statuses = ['cart','pending','canceled','ready to ship','shipped','paid'] %>
@@ -61,7 +61,6 @@
61
61
  statuses.each do |status|
62
62
  all_checked = false if !@pager.params['status'].include?(status)
63
63
  end
64
- Caboose.log(@pager.params['status'])
65
64
  %>
66
65
  Status:
67
66
  <% statuses.each do |status| %>
@@ -118,6 +117,14 @@
118
117
  <%= render :partial => 'caboose/users/admin_footer' %>
119
118
  <% end %>
120
119
 
120
+ <% content_for :caboose_css do %>
121
+ <style>
122
+ #search_form > p {
123
+ margin: 0;
124
+ padding: 0 0 10px 0;
125
+ }
126
+ </style>
127
+ <% end %>
121
128
  <% content_for :caboose_js do %>
122
129
  <script type='text/javascript'>
123
130
  var modal = false;
@@ -1,3 +1,3 @@
1
1
  module Caboose
2
- VERSION = '0.9.212'
2
+ VERSION = '0.9.213'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: caboose-cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.212
4
+ version: 0.9.213
5
5
  platform: ruby
6
6
  authors:
7
7
  - William Barry