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: b178202623e8e58406613183f3c2ba45a1159b8b95eac0a68398466b578a7fbc
4
- data.tar.gz: 5dfbe1301dab5b5ed929427f698bd19363d9459e8e41ee8e2101e0aee551aa3d
3
+ metadata.gz: ac6eb4fd2ae0707eebe481069a4cf6d26f7531c03705c9a9c4fb1f4790ed0414
4
+ data.tar.gz: d54c3c68e27996aefad4ac0059d325f60a848968cc3c6bc128b1dd5c5d972b8c
5
5
  SHA512:
6
- metadata.gz: e40a0614f9d21ddc737e62483d6afb6f506ec3bb176b6d06ac816c22bc0b10091f391bcd787ae42b84aa84969099132ec175ab1d48421cb793cc94aa7b6eda7a
7
- data.tar.gz: 87c8bea0677755b19fbb1a74c557f9062b2e697fa6c70b0dffbeff6f94ac309e5f290e8db9b8d360ea96639102de823253be7d7d7ad4be7d51c1b238dce6a20b
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
- = link_to '[~]', edit_appliance_tmpl_path(tmpl)
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.18
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-02-15 00:00:00.000000000 Z
11
+ date: 2024-03-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cancancan