wco_hosting 0.0.0.13 → 0.0.0.14

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8766a098a355aa67b80d9a1ddf778b3db94ac7aed6bae2f138c7bd76d587e378
4
- data.tar.gz: f4693bba0282a2c884c4c7ff8a3280be792a29842680b14c18e77bca4fc8e1f4
3
+ metadata.gz: 25b06c4b48d788f8350e78ba56e840899b76e7d0ff1851f3d0089771397bb4a3
4
+ data.tar.gz: 31eae7e2e57a1ccd541423a096b3a6e10b440e26811ed929358737205674d961
5
5
  SHA512:
6
- metadata.gz: 114ee8e82829f09ba234494e5d547fec4ff61f70bef3a74032b3e76a54da0627d81932d8ebb043d594d8ac903d503dbded7d350540c2b9ebe133006dc470fb50
7
- data.tar.gz: c299e0a797c0d9ae13b5bef815bb1569f69275b852a42ec40998e8f94f240b05169ebe542ff7f73e7c09a9ebbd432c15c949e71ebeb53d0517f96937573838d4
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
- -# = f.select :price, options_for_select( @prices_list, selected: appliance_tmpl.price )
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'
@@ -1,3 +1,5 @@
1
1
 
2
2
  .serverhosts-new.maxwidth
3
+ .header
4
+ %h5.title New Serverhost
3
5
  = render 'form', serverhost: @new_serverhost
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.13
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-01 00:00:00.000000000 Z
11
+ date: 2024-02-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cancancan