wco_hosting 0.0.0.13 → 0.0.0.14
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: 25b06c4b48d788f8350e78ba56e840899b76e7d0ff1851f3d0089771397bb4a3
|
4
|
+
data.tar.gz: 31eae7e2e57a1ccd541423a096b3a6e10b440e26811ed929358737205674d961
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e7f82d8336d15b6e6c32c371ed85341cc4f23a3d44050127b4d1de0732ac6426c1ef6a5e4fe768fa059de69f59890c9f2ef6e2077ddc77236dd8a835ec286403
|
7
|
+
data.tar.gz: d5fc36ac7738ad576d2c9d8bf682ced9c584e862bc343c6b5c8692585994a466724bf7555ca7ba8ac62e56f1d68cb87c9dd973221e319695f728ee5ce2d01d15
|
@@ -7,13 +7,6 @@ class WcoHosting::ApplianceTmplsController < WcoHosting::ApplicationController
|
|
7
7
|
@appliance_tmpl = WcoHosting::ApplianceTmpl.new params[:tmpl].permit!
|
8
8
|
authorize! :create, @appliance_tmpl
|
9
9
|
|
10
|
-
price = Wco::Price.find( params[:tmpl][:price] )
|
11
|
-
price.product = @appliance_tmpl
|
12
|
-
price.save
|
13
|
-
|
14
|
-
params[:tmpl][:price_id] = price.price_id
|
15
|
-
params[:tmpl][:price] = price
|
16
|
-
|
17
10
|
flag = @appliance_tmpl.save
|
18
11
|
if flag
|
19
12
|
flash[:notice] = 'Success.'
|
@@ -19,8 +19,10 @@
|
|
19
19
|
%label volume_zip
|
20
20
|
= f.text_field :volume_zip, class: 'w-100'
|
21
21
|
.field
|
22
|
-
%label Price
|
23
|
-
|
22
|
+
%label Price in Cents
|
23
|
+
= f.number_field :tmp_price_cents
|
24
|
+
%label Price interval
|
25
|
+
= f.select :tmp_price_interval, options_for_select( Wco::Price::INTERVALS, selected: appliance_tmpl.price ), class: 'select2'
|
24
26
|
|
25
27
|
.actions
|
26
28
|
= f.submit 'Submit'
|
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.14
|
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-
|
11
|
+
date: 2024-02-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cancancan
|