wco_hosting 0.0.0.18 → 0.0.0.20
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ac6eb4fd2ae0707eebe481069a4cf6d26f7531c03705c9a9c4fb1f4790ed0414
|
4
|
+
data.tar.gz: d54c3c68e27996aefad4ac0059d325f60a848968cc3c6bc128b1dd5c5d972b8c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d955a2c7785c6f76e5606f55239b87a40064f55ead21f3fe7628d04fe5b7adc1e7933d8e2e442123355495ac1e5b13fc344eddd668ece086e860db98f1b67f12
|
7
|
+
data.tar.gz: 63342f69a1a709338aa5401daec2e5117c2214c211c2d806b519c227be496a0662b562fab68ec2af3a3f2838dcf521eb74659b44f6561ac2964a800e907112d2
|
@@ -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
|
@@ -16,7 +16,9 @@
|
|
16
16
|
- @appliance_tmpls.each do |tmpl|
|
17
17
|
%tr
|
18
18
|
%td
|
19
|
-
|
19
|
+
.d-flex
|
20
|
+
= link_to '[~]', edit_appliance_tmpl_path(tmpl)
|
21
|
+
= button_to 'x', appliance_tmpl_path(tmpl), method: :delete, data: { confirm: 'Are you sure?' }
|
20
22
|
%td= tmpl.kind
|
21
23
|
%td= tmpl.version
|
22
24
|
%td= tmpl.image
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wco_hosting
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.0.
|
4
|
+
version: 0.0.0.20
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Victor Pudeyev
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-03-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cancancan
|