ish_manager 0.1.8.458 → 0.1.8.460
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/assets/stylesheets/ish_manager/appliances.scss +27 -0
- data/app/assets/stylesheets/ish_manager/application.scss +2 -1
- data/app/assets/stylesheets/ish_manager/leadsets.scss +14 -0
- data/app/controllers/ish_manager/appliance_tmpls_controller.rb +36 -0
- data/app/controllers/ish_manager/appliances_controller.rb +55 -0
- data/app/controllers/ish_manager/application_controller.rb +1 -0
- data/app/controllers/ish_manager/invoices_controller.rb +27 -1
- data/app/controllers/ish_manager/iro_option_gets_controller.rb +21 -23
- data/app/controllers/ish_manager/serverhosts_controller.rb +60 -0
- data/app/views/ish_manager/appliance_tmpls/_form.haml +14 -0
- data/app/views/ish_manager/appliance_tmpls/index.haml +14 -0
- data/app/views/ish_manager/appliances/_form.haml +15 -0
- data/app/views/ish_manager/appliances/_index.haml +21 -0
- data/app/views/ish_manager/appliances/edit.haml +5 -0
- data/app/views/ish_manager/appliances/index.haml +4 -0
- data/app/views/ish_manager/application/_main_header_admin.haml +18 -0
- data/app/views/ish_manager/email_templates/_marketing_node_1.html.erb +676 -0
- data/app/views/ish_manager/invoices/index.haml +4 -4
- data/app/views/ish_manager/invoices/new_pdf.haml +15 -0
- data/app/views/ish_manager/invoices/new_stripe.haml +38 -0
- data/app/views/ish_manager/iro_watches/index.haml +17 -5
- data/app/views/ish_manager/iro_watches/max_pain.haml +2 -0
- data/app/views/ish_manager/leads/show.haml +3 -1
- data/app/views/ish_manager/leadsets/show.haml +10 -3
- data/app/views/ish_manager/serverhosts/_form.haml +29 -0
- data/app/views/ish_manager/serverhosts/_index.haml +21 -0
- data/app/views/ish_manager/serverhosts/edit.haml +4 -0
- data/app/views/ish_manager/serverhosts/index.haml +8 -0
- data/app/views/ish_manager/user_profiles/_form.haml +4 -0
- data/config/routes.rb +9 -6
- metadata +35 -4
- data/app/views/ish_manager/invoices/new.haml +0 -7
- /data/app/views/ish_manager/invoices/{_form.haml → _form.haml-trash} +0 -0
@@ -0,0 +1,15 @@
|
|
1
|
+
|
2
|
+
.invoices-new.max-width
|
3
|
+
|
4
|
+
.row
|
5
|
+
.col.s12.col.m6.col-md-offset-3
|
6
|
+
%h5 New PDF Invoice for `#{link_to @leadset&.name, leadset_path(@leadset)}`:
|
7
|
+
= form_for @new_invoice, as: :invoice, url: create_invoice_pdf_path do |f|
|
8
|
+
= f.text_field :email
|
9
|
+
.input-field
|
10
|
+
invoice month, description
|
11
|
+
.input-field
|
12
|
+
lineitems
|
13
|
+
.actions
|
14
|
+
= f.submit 'Submit'
|
15
|
+
|
@@ -0,0 +1,38 @@
|
|
1
|
+
|
2
|
+
|
3
|
+
- url = invoice.persisted? ? invoice_path( invoice.id ) : invoices_path
|
4
|
+
- invoice = @new_invoice
|
5
|
+
|
6
|
+
.invoices-new.max-width
|
7
|
+
|
8
|
+
.row
|
9
|
+
.col.s12.col.m6.col-md-offset-3
|
10
|
+
%h5 New Stripe Invoice for `#{link_to @leadset&.name, leadset_path(@leadset)}`:
|
11
|
+
|
12
|
+
= form_for invoice, :as => :invoice, :url => url do |f|
|
13
|
+
= hidden_field_tag 'invoice[leadset_id]', @leadset.id
|
14
|
+
|
15
|
+
.input-field
|
16
|
+
%label Email
|
17
|
+
= @leadset.email
|
18
|
+
-# - if @leadset.email
|
19
|
+
-# = f.text_field :email, value: @leadset.email
|
20
|
+
-# - elsif @leadset.employees.length == 1
|
21
|
+
-# = f.text_field :email, value: @leadset.employees[0].email
|
22
|
+
-# - else
|
23
|
+
-# = f.select :email, options_for_select([[nil,nil]] + @leadset.employees.map { |i| [ i.email, i.email ] } )
|
24
|
+
|
25
|
+
.input-field
|
26
|
+
%label item
|
27
|
+
= select_tag 'invoice[items][]', options_for_select( @products_list )
|
28
|
+
|
29
|
+
-# .input-field
|
30
|
+
-# %label number
|
31
|
+
-# = f.number_field :number
|
32
|
+
|
33
|
+
-# .input-field
|
34
|
+
-# %label Description
|
35
|
+
-# = f.text_area :description
|
36
|
+
|
37
|
+
= f.submit 'Save'
|
38
|
+
|
@@ -5,18 +5,30 @@
|
|
5
5
|
|
6
6
|
- @watches.each do |watch|
|
7
7
|
= render 'form', :watch => watch
|
8
|
-
|
9
|
-
%hr
|
10
8
|
%h5 New
|
11
9
|
= render 'form', :watch => Iro::OptionWatch.new
|
12
10
|
|
13
11
|
%hr
|
12
|
+
|
14
13
|
.header
|
15
14
|
.title Get chains
|
16
15
|
|
17
|
-
|
18
|
-
|
19
|
-
|
16
|
+
%ul
|
17
|
+
- @option_get_chains.each do |item|
|
18
|
+
%li
|
19
|
+
= item.ticker
|
20
|
+
-# = link_to item.ticker, iro_max_pain_path({ ticker: item.ticker, date: (Time.now.end_of_week - 2.days).strftime('%Y-%m-%d') })
|
21
|
+
Max Pain:
|
22
|
+
|
23
|
+
- n = 3
|
24
|
+
- ## @TODO: account for holidays _vp_ 2023-08-25
|
25
|
+
- day = Time.now.next_week(:friday)
|
26
|
+
- n.times do |idx|
|
27
|
+
- date = day.strftime('%Y-%m-%d')
|
28
|
+
= link_to date, max_pain_path({ ticker: item.ticker, date: date })
|
29
|
+
= idx < n-1 ? "," : "."
|
30
|
+
- day = day + 7.days
|
31
|
+
|
20
32
|
%h5 New
|
21
33
|
= render 'ish_manager/iro_option_gets/form', :item => Iro::OptionGet.new
|
22
34
|
|
@@ -11,7 +11,9 @@
|
|
11
11
|
%ul
|
12
12
|
%li Name: #{@lead.name}
|
13
13
|
%li Email: #{@lead.email}
|
14
|
-
%li
|
14
|
+
%li
|
15
|
+
Company (leadset): #{ link_to @lead.company.company_url, leadset_path(@lead.company) }
|
16
|
+
(#{@lead.m3_leadset_id})
|
15
17
|
%li Rating: #{@lead.rating}
|
16
18
|
- if @lead.phone
|
17
19
|
%li Phone: #{@lead.phone}
|
@@ -7,13 +7,20 @@
|
|
7
7
|
|
8
8
|
%ul
|
9
9
|
%li <b>Email:</b> #{@leadset.email}
|
10
|
-
%li <b>Stripe customer_id:</b> #{@leadset.customer_id}
|
11
10
|
%li <b>company_url</b>: #{@leadset.company_url}
|
12
11
|
%li <b>customer_id</b>: #{@leadset.customer_id}
|
13
12
|
%li
|
14
13
|
= link_to invoices_path({ leadset_id: @leadset.id }) do
|
15
14
|
Invoices
|
16
15
|
(#{@leadset.invoices.length})
|
17
|
-
= link_to '[+]',
|
16
|
+
= link_to '[+stripe]', new_invoice_stripe_path({ leadset_id: @leadset.id })
|
17
|
+
= link_to '[+pdf]', new_invoice_pdf_path({ leadset_id: @leadset.id })
|
18
18
|
|
19
|
-
= render 'ish_manager/leads/index', leads: @employees
|
19
|
+
= render 'ish_manager/leads/index', leads: @employees
|
20
|
+
|
21
|
+
.row
|
22
|
+
.col-md-6
|
23
|
+
= render 'ish_manager/serverhosts/index', serverhosts: @leadset.serverhosts
|
24
|
+
|
25
|
+
.col-md-6
|
26
|
+
= render 'ish_manager/appliances/index', appliances: @leadset.appliances
|
@@ -0,0 +1,29 @@
|
|
1
|
+
|
2
|
+
- url = serverhost.new_record? ? serverhosts_path : serverhost_path( serverhost )
|
3
|
+
.serverhosts--form
|
4
|
+
= form_for serverhost, as: :serverhost, url: url do |f|
|
5
|
+
.field
|
6
|
+
= f.label :name
|
7
|
+
= f.text_field :name
|
8
|
+
.field
|
9
|
+
= f.label :leadset_id
|
10
|
+
= f.number_field :leadset_id
|
11
|
+
.field
|
12
|
+
= f.label :next_port
|
13
|
+
= f.number_field :next_port
|
14
|
+
|
15
|
+
.field
|
16
|
+
= f.label :ssh_host
|
17
|
+
= f.text_field :ssh_host
|
18
|
+
.field
|
19
|
+
= f.label :ssh_username
|
20
|
+
= f.text_field :ssh_username
|
21
|
+
.field
|
22
|
+
= f.label :ssh_key
|
23
|
+
= f.text_field :ssh_key
|
24
|
+
.field
|
25
|
+
= f.label :nginx_root
|
26
|
+
= f.text_field :nginx_root
|
27
|
+
|
28
|
+
.actions
|
29
|
+
= f.submit 'Submit'
|
@@ -0,0 +1,21 @@
|
|
1
|
+
|
2
|
+
.serverhosts--index
|
3
|
+
%h5 Serverhosts (#{serverhosts.length})
|
4
|
+
%hr
|
5
|
+
|
6
|
+
%ul.items
|
7
|
+
- serverhosts.each do |i|
|
8
|
+
%li
|
9
|
+
= i.name
|
10
|
+
%span.gray= i.id.to_s
|
11
|
+
= link_to '[~]', edit_serverhost_path(i)
|
12
|
+
%ul
|
13
|
+
%li.leadset_id <b>leadset_id:</b> #{i.leadset_id}
|
14
|
+
%li.next_port <b>Next Port:</b> #{i.next_port}
|
15
|
+
%li.ssh_host <b>ssh_host:</b> #{i.ssh_host}
|
16
|
+
%li.ssh_username <b>ssh_username:</b> #{i.ssh_username}
|
17
|
+
%li.ssh_key <b>ssh_key:</b> #{i.ssh_key}
|
18
|
+
%li.nginx_root <b>nginx_root:</b> #{i.nginx_root}
|
19
|
+
%li.appliances
|
20
|
+
= render 'ish_manager/appliances/index', appliances: i.appliances
|
21
|
+
|
data/config/routes.rb
CHANGED
@@ -5,6 +5,9 @@ IshManager::Engine.routes.draw do
|
|
5
5
|
|
6
6
|
get 'application/tinymce', to: 'application#tinymce'
|
7
7
|
|
8
|
+
resources :appliances
|
9
|
+
resources :appliance_tmpls
|
10
|
+
|
8
11
|
# get 'categories', to: 'categories#index'
|
9
12
|
resources :categories
|
10
13
|
|
@@ -22,23 +25,22 @@ IshManager::Engine.routes.draw do
|
|
22
25
|
|
23
26
|
get 'image_assets', to: 'image_assets#index', as: :image_assets
|
24
27
|
|
25
|
-
|
26
|
-
#
|
27
|
-
|
28
|
-
|
28
|
+
post 'invoices/create-pdf', to: 'invoices#create_pdf', as: :create_invoice_pdf
|
29
|
+
get 'invoices/new_pdf', to: 'invoices#new_pdf', as: :new_invoice_pdf
|
30
|
+
get 'invoices/new_stripe', to: 'invoices#new_stripe', as: :new_invoice_stripe
|
31
|
+
resources :invoices
|
29
32
|
|
30
33
|
get 'iro_positins/roll_prep/:id', to: 'iro_purses#roll_prep', as: :iro_roll_prep
|
31
34
|
resources :iro_positions
|
32
35
|
|
36
|
+
get 'iro/max_pain/:ticker/on/:date', to: 'iro_option_gets#max_pain', as: :max_pain
|
33
37
|
resources :iro_option_gets
|
34
|
-
get 'iro/max_pain/ticker/:ticker/date/:date', to: 'iro_option_gets#max_pain', as: :iro_max_pain
|
35
38
|
|
36
39
|
patch 'iro_purses/:id/show', to: 'iro_purses#update'
|
37
40
|
get 'iro_purses/:id/edit', to: 'iro_purses#edit', as: :edit_iro_purse
|
38
41
|
get 'iro_purses/:id/:kind', to: 'iro_purses#show', as: :iro_purse, defaults: { kind: 'show' } # kind: show_gameui
|
39
42
|
resources :iro_purses
|
40
43
|
|
41
|
-
|
42
44
|
resources :iro_strategies
|
43
45
|
|
44
46
|
resources :iro_watches
|
@@ -123,6 +125,7 @@ IshManager::Engine.routes.draw do
|
|
123
125
|
|
124
126
|
resources :reports
|
125
127
|
|
128
|
+
resources :serverhosts
|
126
129
|
resources :scheduled_email_actions
|
127
130
|
resources :subscriptions
|
128
131
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ish_manager
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.8.
|
4
|
+
version: 0.1.8.460
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- piousbox
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-09-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -220,6 +220,20 @@ dependencies:
|
|
220
220
|
- - "~>"
|
221
221
|
- !ruby/object:Gem::Version
|
222
222
|
version: 0.13.0
|
223
|
+
- !ruby/object:Gem::Dependency
|
224
|
+
name: prawn
|
225
|
+
requirement: !ruby/object:Gem::Requirement
|
226
|
+
requirements:
|
227
|
+
- - "~>"
|
228
|
+
- !ruby/object:Gem::Version
|
229
|
+
version: 2.4.0
|
230
|
+
type: :runtime
|
231
|
+
prerelease: false
|
232
|
+
version_requirements: !ruby/object:Gem::Requirement
|
233
|
+
requirements:
|
234
|
+
- - "~>"
|
235
|
+
- !ruby/object:Gem::Version
|
236
|
+
version: 2.4.0
|
223
237
|
description: Description of IshManager.
|
224
238
|
email:
|
225
239
|
- piousbox@gmail.com
|
@@ -424,6 +438,7 @@ files:
|
|
424
438
|
- app/assets/javascripts/ish_manager/vendor/trash/tinymce-insert-image-plugin.js
|
425
439
|
- app/assets/javascripts/ish_manager/vendor/unused/jquery-3.2.1.min.js
|
426
440
|
- app/assets/javascripts/ish_manager/vendor/unused/jquery-3.6.0.min.js
|
441
|
+
- app/assets/stylesheets/ish_manager/appliances.scss
|
427
442
|
- app/assets/stylesheets/ish_manager/application.scss
|
428
443
|
- app/assets/stylesheets/ish_manager/email.scss
|
429
444
|
- app/assets/stylesheets/ish_manager/email_contexts.scss
|
@@ -435,6 +450,7 @@ files:
|
|
435
450
|
- app/assets/stylesheets/ish_manager/iro.scss
|
436
451
|
- app/assets/stylesheets/ish_manager/iro1.scss
|
437
452
|
- app/assets/stylesheets/ish_manager/leads_leadsets.scss
|
453
|
+
- app/assets/stylesheets/ish_manager/leadsets.scss
|
438
454
|
- app/assets/stylesheets/ish_manager/maps.scss
|
439
455
|
- app/assets/stylesheets/ish_manager/markers.scss
|
440
456
|
- app/assets/stylesheets/ish_manager/office.scss
|
@@ -447,6 +463,8 @@ files:
|
|
447
463
|
- app/assets/stylesheets/ish_manager/vendor/jquery-ui.css
|
448
464
|
- app/assets/stylesheets/ish_manager/vendor/summernote-bs4.min.css
|
449
465
|
- app/assets/stylesheets/ish_manager/videos.scss
|
466
|
+
- app/controllers/ish_manager/appliance_tmpls_controller.rb
|
467
|
+
- app/controllers/ish_manager/appliances_controller.rb
|
450
468
|
- app/controllers/ish_manager/application_controller.rb
|
451
469
|
- app/controllers/ish_manager/categories_controller.rb
|
452
470
|
- app/controllers/ish_manager/email_actions_controller.rb
|
@@ -480,6 +498,7 @@ files:
|
|
480
498
|
- app/controllers/ish_manager/products_controller.rb
|
481
499
|
- app/controllers/ish_manager/reports_controller.rb
|
482
500
|
- app/controllers/ish_manager/scheduled_email_actions_controller.rb
|
501
|
+
- app/controllers/ish_manager/serverhosts_controller.rb
|
483
502
|
- app/controllers/ish_manager/subscriptions_controller.rb
|
484
503
|
- app/controllers/ish_manager/user_profiles_controller.rb
|
485
504
|
- app/controllers/ish_manager/videos_controller.rb
|
@@ -527,6 +546,12 @@ files:
|
|
527
546
|
- app/views/202212 Mailchimp Templates/202212 theme subtle.html
|
528
547
|
- app/views/202212 Mailchimp Templates/202212 theme ticket.html
|
529
548
|
- app/views/202212 Mailchimp Templates/202212 theme whale.html
|
549
|
+
- app/views/ish_manager/appliance_tmpls/_form.haml
|
550
|
+
- app/views/ish_manager/appliance_tmpls/index.haml
|
551
|
+
- app/views/ish_manager/appliances/_form.haml
|
552
|
+
- app/views/ish_manager/appliances/_index.haml
|
553
|
+
- app/views/ish_manager/appliances/edit.haml
|
554
|
+
- app/views/ish_manager/appliances/index.haml
|
530
555
|
- app/views/ish_manager/application/_alerts_notices.haml
|
531
556
|
- app/views/ish_manager/application/_analytics.html
|
532
557
|
- app/views/ish_manager/application/_debug.haml
|
@@ -590,6 +615,7 @@ files:
|
|
590
615
|
- app/views/ish_manager/email_templates/_index.haml
|
591
616
|
- app/views/ish_manager/email_templates/_m20221201react.html.erb
|
592
617
|
- app/views/ish_manager/email_templates/_m20221222merryxmas.html.erb
|
618
|
+
- app/views/ish_manager/email_templates/_marketing_node_1.html.erb
|
593
619
|
- app/views/ish_manager/email_templates/_marketing_react_1.html
|
594
620
|
- app/views/ish_manager/email_templates/_marketing_react_2.html.erb
|
595
621
|
- app/views/ish_manager/email_templates/_marketing_react_3.html.erb
|
@@ -638,9 +664,10 @@ files:
|
|
638
664
|
- app/views/ish_manager/galleries/new.haml
|
639
665
|
- app/views/ish_manager/galleries/show.haml
|
640
666
|
- app/views/ish_manager/image_assets/index.haml
|
641
|
-
- app/views/ish_manager/invoices/_form.haml
|
667
|
+
- app/views/ish_manager/invoices/_form.haml-trash
|
642
668
|
- app/views/ish_manager/invoices/index.haml
|
643
|
-
- app/views/ish_manager/invoices/
|
669
|
+
- app/views/ish_manager/invoices/new_pdf.haml
|
670
|
+
- app/views/ish_manager/invoices/new_stripe.haml
|
644
671
|
- app/views/ish_manager/invoices/show.haml
|
645
672
|
- app/views/ish_manager/iro_mailer/condor_followup_alerb.html.erb
|
646
673
|
- app/views/ish_manager/iro_mailer/option_alert.html.erb
|
@@ -748,6 +775,10 @@ files:
|
|
748
775
|
- app/views/ish_manager/scheduled_email_actions/index.haml
|
749
776
|
- app/views/ish_manager/scheduled_email_actions/new.haml
|
750
777
|
- app/views/ish_manager/scheduled_email_actions/show.haml
|
778
|
+
- app/views/ish_manager/serverhosts/_form.haml
|
779
|
+
- app/views/ish_manager/serverhosts/_index.haml
|
780
|
+
- app/views/ish_manager/serverhosts/edit.haml
|
781
|
+
- app/views/ish_manager/serverhosts/index.haml
|
751
782
|
- app/views/ish_manager/subscriptions/_form.haml
|
752
783
|
- app/views/ish_manager/subscriptions/index.haml
|
753
784
|
- app/views/ish_manager/subscriptions/new.haml
|
File without changes
|