caboose-cms 0.9.225 → 0.9.226

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a23fa53ff0699b384c57dcdc80f0f736a9f6694ff45f7873a204561d7428a8bb
4
- data.tar.gz: 27fd72088dc361b586a85288bed0c171db33654948c08519351665c4abec44fc
3
+ metadata.gz: 4efa305692693dd028aae1734236af46f9340796403c20eaf095b1a166b6ecfd
4
+ data.tar.gz: e44d38f3c7d80ed523444cde712d130c182765e0ccce2d46dbab62ec4b8f0280
5
5
  SHA512:
6
- metadata.gz: c5dfdffa53ac05471ed38c4033b7addc140efda5ef614c1153deafa64847d75e89363e64aa02302f768496de44d0a87b0818637e269381d78066ca8ff8ef2163
7
- data.tar.gz: 9937276c47dd84e93e70f99c04d383c4c639f5bf84e646e91acf2f4139b8a8d73b702b541821f37c2f4629cba29fa9d4b07a2ed719120fbb3f079cdc2022087b
6
+ metadata.gz: bf561cbe8f47feb28180f3558aba7f440cf15fc85348c2ff995c2a7ddfb248bd861982b0cb3b368e26e051f7efd0fcff077536aca30b35a09628a4713153baa3
7
+ data.tar.gz: 584539e6da70d5e0d9496810fb65f710f0a4449211a1afd38e6644cc132d13fc0a9b6ca54c9746d8c70ae86d9a94720eb2742430fdb6538db50c06d2a12b34c8
@@ -31,12 +31,12 @@ module Caboose
31
31
  'base_url' => params[:user_id] ? "/admin/users/#{params[:user_id]}/invoices" : "/admin/invoices",
32
32
  'additional_where' => [ params[:game_id].blank? ? 'id is not null' : ( invoice_ids.blank? ? "id is null" : "id in (#{invoice_ids})" ) ],
33
33
  'use_url_params' => false,
34
- 'items_per_page' => 100
34
+ 'items_per_page' => 25
35
35
  })
36
36
 
37
37
  @edituser = params[:user_id] ? User.find(params[:user_id]) : nil
38
38
  @invoices = @pager.items
39
- @customers = Caboose::User.where(:site_id => @site.id).reorder('last_name, first_name').all
39
+ @customers = Caboose::User.where(:site_id => @site.id).order('last_name, first_name').all
40
40
 
41
41
  render :layout => 'caboose/admin'
42
42
  end
@@ -184,18 +184,7 @@ module Caboose
184
184
  img.save
185
185
  render :json => true
186
186
  end
187
-
188
- # @route DELETE /admin/products/:product_id/variants/:id
189
- def admin_delete
190
- return if !user_is_allowed('variants', 'delete')
191
- v = Variant.find(params[:id])
192
- v.status = 'Deleted'
193
- v.save
194
- render :json => Caboose::StdClass.new({
195
- :redirect => "/admin/products/#{v.product_id}/variants"
196
- })
197
- end
198
-
187
+
199
188
  # @route DELETE /admin/products/:product_id/variants/bulk
200
189
  def admin_bulk_delete
201
190
  return if !user_is_allowed('variants', 'delete')
@@ -208,7 +197,18 @@ module Caboose
208
197
  end
209
198
  resp.success = true
210
199
  render :json => resp
211
- end
200
+ end
201
+
202
+ # @route DELETE /admin/products/:product_id/variants/:id
203
+ def admin_delete
204
+ return if !user_is_allowed('variants', 'delete')
205
+ v = Variant.find(params[:id])
206
+ v.status = 'Deleted'
207
+ v.save
208
+ render :json => Caboose::StdClass.new({
209
+ :redirect => "/admin/products/#{v.product_id}/variants"
210
+ })
211
+ end
212
212
 
213
213
  # @route PUT /admin/products/:product_id/variants/option1-sort-order
214
214
  def admin_update_option1_sort_order
@@ -18,7 +18,7 @@
18
18
  <a class="caboose-btn" href='/admin/invoices/new'>New Manual Invoice</a>
19
19
  <a class="caboose-btn" href='/admin/invoices/print-pending' target='_blank'>Print Pending Invoices</a>
20
20
  <a class="caboose-btn" href='/admin/invoices/summary-report' target='_blank'>Summary Report</a>
21
- <a class="caboose-btn" href='/admin/invoices/city-report' target='_blank'>City Report</a>
21
+ <!-- <a class="caboose-btn" href='/admin/invoices/city-report' target='_blank'>City Report</a> -->
22
22
  </p>
23
23
  <form action='/admin/invoices' method='get' id='search_form' style='display: none;'>
24
24
  <p><input type='text' name='id' placeholder='Invoice ID' value="<%= @pager.params['id'] %>" style='width: 100px;' /></p>
@@ -1,3 +1,3 @@
1
1
  module Caboose
2
- VERSION = '0.9.225'
2
+ VERSION = '0.9.226'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: caboose-cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.225
4
+ version: 0.9.226
5
5
  platform: ruby
6
6
  authors:
7
7
  - William Barry
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-01-25 00:00:00.000000000 Z
11
+ date: 2019-02-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pg