wco_hosting 0.0.0.18 → 0.0.0.19

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: b178202623e8e58406613183f3c2ba45a1159b8b95eac0a68398466b578a7fbc
4
- data.tar.gz: 5dfbe1301dab5b5ed929427f698bd19363d9459e8e41ee8e2101e0aee551aa3d
3
+ metadata.gz: 0a833374d68bff85c800bfbd5eec19de231e7182a704d7b5fc76e1fccc5b9431
4
+ data.tar.gz: 10d188ae205ccd47288f5227eb89241ad8b2f510a64df6d96267e125e65dfbe4
5
5
  SHA512:
6
- metadata.gz: e40a0614f9d21ddc737e62483d6afb6f506ec3bb176b6d06ac816c22bc0b10091f391bcd787ae42b84aa84969099132ec175ab1d48421cb793cc94aa7b6eda7a
7
- data.tar.gz: 87c8bea0677755b19fbb1a74c557f9062b2e697fa6c70b0dffbeff6f94ac309e5f290e8db9b8d360ea96639102de823253be7d7d7ad4be7d51c1b238dce6a20b
6
+ metadata.gz: 0136b005bbb91977057e15461a83518fa49e4f80c8bf8d16444e4ce25a2e5518e1544c1d3c28c7be139199d39136f146bbdfa28b5cb62a57d3223e54a250ff42
7
+ data.tar.gz: 3f9640501dd2a70d9419c82d6e92f221b91ba05095bdba7f5abe926d0cf52b02505c9930c7b8bc5bd1bdd4951247b82e9a1bb4353058e623ba0eb0601d5e90e8
@@ -2,39 +2,6 @@
2
2
  .appliance-tmpls-edit.maxwidth
3
3
  %h5 Edit ApplianceTmpl `#{@appliance_tmpl}`
4
4
 
5
- .field
6
- %h5 Customers
7
- %table.bordered.data-table
8
- %thead
9
- %td  
10
- %td Leadset
11
- %td Amount Cents
12
- %td Interval
13
- - @leadsets.each do |leadset|
14
- %tr
15
- - price = leadset.appliance_tmpl_prices.where( product: @appliance_tmpl ).first
16
- - price ||= Wco::Price.new({ product: @appliance_tmpl, appliance_tmpl_leadset: leadset })
17
- - url = price.new_record? ? wco.prices_path : wco.price_path(price)
18
- - if !price.new_record?
19
- %td
20
- = button_to 'x', wco.price_path(price), method: :delete, data: { confirm: 'Are you sure?' }
21
- - else
22
- %td
23
- = form_for price, url: url do |f|
24
- = hidden_field_tag 'price[product_id]', price.product_id
25
- = hidden_field_tag 'price[product_type]', price.product_type
26
- = hidden_field_tag 'price[appliance_tmpl_leadset_id]', leadset.id
27
- %td
28
- %b= leadset
29
- %td
30
- = f.number_field :amount_cents
31
- %td
32
- = f.select :interval, options_for_select( Wco::Price::INTERVALS, selected: price.interval ), class: 'select2'
33
- = f.submit '>'
34
-  
35
- .gray= price.price_id || 'nil'
36
5
 
37
6
 
38
- %hr
39
-
40
7
  = render 'form', appliance_tmpl: @appliance_tmpl
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wco_hosting
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.0.18
4
+ version: 0.0.0.19
5
5
  platform: ruby
6
6
  authors:
7
7
  - Victor Pudeyev