wco_hosting 0.0.0.18 → 0.0.0.19
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 +4 -4
- data/app/views/wco_hosting/appliance_tmpls/edit.haml +0 -33
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0a833374d68bff85c800bfbd5eec19de231e7182a704d7b5fc76e1fccc5b9431
|
|
4
|
+
data.tar.gz: 10d188ae205ccd47288f5227eb89241ad8b2f510a64df6d96267e125e65dfbe4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|