ish_manager 0.1.8.454 → 0.1.8.456
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/controllers/ish_manager/application_controller.rb +1 -17
- data/app/controllers/ish_manager/email_conversations_controller.rb +3 -1
- data/app/controllers/ish_manager/galleries_controller.rb +4 -1
- data/app/controllers/ish_manager/leads_controller.rb +55 -4
- data/app/controllers/ish_manager/leadsets_controller.rb +2 -0
- data/app/controllers/ish_manager/subscriptions_controller.rb +42 -1
- data/app/views/ish_manager/application/_main_header_admin.haml +1 -1
- data/app/views/ish_manager/galleries/_form.haml +10 -6
- data/app/views/ish_manager/galleries/_index.haml +8 -7
- data/app/views/ish_manager/galleries/_index_title.haml +1 -0
- data/app/views/ish_manager/galleries/_menu.haml +1 -1
- data/app/views/ish_manager/galleries/index_thumbs.haml +2 -1
- data/app/views/ish_manager/galleries/index_titles.haml +1 -1
- data/app/views/ish_manager/leads/_form.haml +15 -6
- data/app/views/ish_manager/leads/_index.haml +3 -0
- data/app/views/ish_manager/leads/edit.haml +1 -1
- data/app/views/ish_manager/leads/index.haml +6 -2
- data/app/views/ish_manager/leads/show.haml +35 -8
- data/app/views/ish_manager/leadsets/_form.haml +3 -3
- data/app/views/ish_manager/leadsets/show.haml +1 -0
- data/app/views/ish_manager/subscriptions/_form.haml +16 -0
- data/app/views/ish_manager/subscriptions/index.haml +3 -1
- data/app/views/ish_manager/subscriptions/new.haml +4 -0
- data/app/views/ish_manager/subscriptions/show.haml +4 -0
- data/app/views/ish_manager/videos/_form.haml +17 -15
- data/app/views/ish_manager/videos/_index.haml +11 -6
- metadata +5 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 79c932faeddeefda4f1437498571c30b2d358386997d10449a9e162f8d4fa341
|
4
|
+
data.tar.gz: 2629ac8f4ce3b648984405c54a99ec0e9ddc84bf43c2a4e447a676594c38254d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ab7d4cb93368830b0ff2e76d50a780f3778d2b96d2d450ff31384db6dbc1fcd6f447b35fd7d30d29301b2991075091f2f4afcdc51da4d1810cea4c4070858d39
|
7
|
+
data.tar.gz: 1e06bb8b2b6c3db7f9edf87a94c9cdd9337afdaa5e75399a7bff0d92d4701eefea21abc80df0bbe5dd0250a89df01212543c928810fcb35b74de9884621a1b99
|
@@ -94,6 +94,7 @@ class IshManager::ApplicationController < ActionController::Base
|
|
94
94
|
@office_actions_list = [[nil,nil]] + Office::Action.all.map { |a| [ a.slug, a.id ] }
|
95
95
|
@profiles_list = Ish::UserProfile.list
|
96
96
|
@reports_list = Report.all.list
|
97
|
+
@tags_list = [[nil,nil]] + WpTag.all.map { |t| [ t.name, t.id ] }
|
97
98
|
@user_profiles_list = Ish::UserProfile.list
|
98
99
|
@videos_list = Video.all.list
|
99
100
|
end
|
@@ -109,20 +110,3 @@ end
|
|
109
110
|
|
110
111
|
|
111
112
|
|
112
|
-
|
113
|
-
|
114
|
-
# ## @TODO: obsolete, remove _vp_ 2022-10-15
|
115
|
-
# def update_profile_pic
|
116
|
-
# return unless params[:photo]
|
117
|
-
# @photo = Photo.new :photo => params[:photo]
|
118
|
-
# @photo.user_profile = @current_profile
|
119
|
-
# flag = @photo.save
|
120
|
-
# @resource.profile_photo = @photo
|
121
|
-
# flagg = @resource.save
|
122
|
-
# if flag && flagg
|
123
|
-
# flash[:notice] = 'Success'
|
124
|
-
# else
|
125
|
-
# flash[:alert] = "No Luck. #{@photo.errors.messages} #{@resource.errors.messages}"
|
126
|
-
# end
|
127
|
-
# end
|
128
|
-
|
@@ -13,7 +13,9 @@ class ::IshManager::EmailConversationsController < IshManager::ApplicationContro
|
|
13
13
|
if params[:not_slug]
|
14
14
|
@email_conversations = @email_conversations.not_in_emailtag(params[:not_slug])
|
15
15
|
end
|
16
|
-
@email_conversations = @email_conversations.order_by( latest_at: :desc
|
16
|
+
@email_conversations = @email_conversations.order_by( latest_at: :desc
|
17
|
+
).page( params[:conv_page]
|
18
|
+
).per( current_profile.per_page )
|
17
19
|
end
|
18
20
|
|
19
21
|
def show
|
@@ -1,7 +1,7 @@
|
|
1
1
|
class IshManager::GalleriesController < IshManager::ApplicationController
|
2
2
|
|
3
3
|
before_action :set_lists
|
4
|
-
before_action :set_gallery, only: %w|destroy edit j_show show update update_ordering|
|
4
|
+
before_action :set_gallery, only: %w| destroy edit j_show show update update_ordering |
|
5
5
|
|
6
6
|
# Alphabetized! : )
|
7
7
|
|
@@ -126,6 +126,9 @@ class IshManager::GalleriesController < IshManager::ApplicationController
|
|
126
126
|
end
|
127
127
|
end
|
128
128
|
|
129
|
+
##
|
130
|
+
## private
|
131
|
+
##
|
129
132
|
private
|
130
133
|
|
131
134
|
def set_gallery
|
@@ -36,14 +36,33 @@ class ::IshManager::LeadsController < IshManager::ApplicationController
|
|
36
36
|
end
|
37
37
|
|
38
38
|
def create
|
39
|
+
param_lead_tags = params[:lead].delete :lead_tags
|
40
|
+
param_photo = params[:lead].delete :photo
|
39
41
|
@lead = ::Lead.new params[:lead].permit!
|
40
42
|
authorize! :create, @lead
|
43
|
+
|
44
|
+
param_lead_tags.delete ''
|
45
|
+
lead_tags = LeadTag.where({ lead_id: @lead.id })
|
46
|
+
if param_lead_tags.map(&:to_i).sort != lead_tags.map(&:term_id).sort
|
47
|
+
lead_tags.map(&:destroy)
|
48
|
+
param_lead_tags.each do |lt|
|
49
|
+
LeadTag.create({ lead_id: @lead.id, term_id: lt })
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
if param_photo
|
54
|
+
photo = Photo.create photo: param_photo
|
55
|
+
@lead.photo_id = photo.id
|
56
|
+
# @lead.photo_url = photo.photo.url(:small)
|
57
|
+
end
|
58
|
+
|
41
59
|
if @lead.save
|
42
60
|
flash[:notice] = "created lead"
|
61
|
+
redirect_to action: :show, id: @lead.id
|
43
62
|
else
|
44
63
|
flash[:alert] = "Cannot create lead: #{@lead.errors.messages}"
|
64
|
+
render action: :new
|
45
65
|
end
|
46
|
-
redirect_to :action => 'index'
|
47
66
|
end
|
48
67
|
|
49
68
|
def edit
|
@@ -66,7 +85,19 @@ class ::IshManager::LeadsController < IshManager::ApplicationController
|
|
66
85
|
authorize! :index, ::Lead
|
67
86
|
@leads = ::Lead.kept.includes( :company )
|
68
87
|
if params[:q].present?
|
69
|
-
@leads = @leads.where(" email LIKE ? ", "%#{params[:q]}%" )
|
88
|
+
@leads = @leads.where(" email LIKE ? or name LIKE ? ", "%#{params[:q]}%", "%#{params[:q]}%" )
|
89
|
+
end
|
90
|
+
if params[:q_tag_ids].present?
|
91
|
+
carry = nil
|
92
|
+
params[:q_tag_ids].each do |term_id|
|
93
|
+
lts = LeadTag.where({ term_id: term_id }).map(&:lead_id)
|
94
|
+
if carry
|
95
|
+
carry = carry & lts
|
96
|
+
else
|
97
|
+
carry = lts
|
98
|
+
end
|
99
|
+
end
|
100
|
+
@leads = Lead.where({ :id.in => carry })
|
70
101
|
end
|
71
102
|
@leads = @leads.page( params[:leads_page ] ).per( current_profile.per_page )
|
72
103
|
|
@@ -106,18 +137,38 @@ class ::IshManager::LeadsController < IshManager::ApplicationController
|
|
106
137
|
@schs = Sch.where( lead_id: @lead.id )
|
107
138
|
@ctxs = Ctx.where( lead_id: @lead.id )
|
108
139
|
@msgs = Msg.where( from: @lead.email )
|
140
|
+
@galleries = @lead.galleries.page( params[:galleries_page] ).per( current_profile.per_page )
|
141
|
+
@videos = @lead.videos.page( params[:videos_page] ).per( current_profile.per_page )
|
109
142
|
end
|
110
143
|
|
111
144
|
def update
|
145
|
+
param_lead_tags = params[:lead].delete :lead_tags
|
146
|
+
param_photo = params[:lead].delete :photo
|
112
147
|
@lead = ::Lead.find params[:id]
|
113
148
|
authorize! :update, @lead
|
149
|
+
|
150
|
+
param_lead_tags.delete ''
|
151
|
+
lead_tags = LeadTag.where({ lead_id: @lead.id })
|
152
|
+
if param_lead_tags.map(&:to_i).sort != lead_tags.map(&:term_id).sort
|
153
|
+
lead_tags.map(&:destroy)
|
154
|
+
param_lead_tags.each do |lt|
|
155
|
+
LeadTag.create({ lead_id: @lead.id, term_id: lt })
|
156
|
+
end
|
157
|
+
end
|
158
|
+
|
159
|
+
if param_photo
|
160
|
+
photo = Photo.create photo: param_photo
|
161
|
+
@lead.photo_id = photo.id
|
162
|
+
# @lead.photo_url = photo.photo.url(:small)
|
163
|
+
end
|
164
|
+
|
114
165
|
if @lead.update_attributes params[:lead].permit!
|
115
166
|
flash[:notice] = 'Successfully updated lead.'
|
167
|
+
redirect_to :action => 'show', id: @lead.id
|
116
168
|
else
|
117
169
|
flash[:alert] = "Cannot update lead: #{@lead.errors.messages}"
|
170
|
+
render action: :edit
|
118
171
|
end
|
119
|
-
## 2023-05-14 NOT redirecting to index anymore.
|
120
|
-
redirect_to :action => 'show', id: @lead.id
|
121
172
|
end
|
122
173
|
|
123
174
|
end
|
@@ -51,10 +51,12 @@ class ::IshManager::LeadsetsController < IshManager::ApplicationController
|
|
51
51
|
def show
|
52
52
|
@leadset = Leadset.find params[:id]
|
53
53
|
authorize! :show, @leadset
|
54
|
+
|
54
55
|
@email_contexts = {}
|
55
56
|
@leadset.employees.each do |lead|
|
56
57
|
@email_contexts[lead.email] = lead.email_contexts
|
57
58
|
end
|
59
|
+
|
58
60
|
@employees = @leadset.employees.page( params[:leads_page] ).per( current_profile.per_page )
|
59
61
|
end
|
60
62
|
|
@@ -5,6 +5,27 @@ class IshManager::SubscriptionsController < IshManager::ApplicationController
|
|
5
5
|
|
6
6
|
# alphabetized : )
|
7
7
|
|
8
|
+
def create
|
9
|
+
authorize! :create, Wco::Subscription
|
10
|
+
@subscription = Wco::Subscription.new params[:subscription].permit!
|
11
|
+
@stripe_subscription = Stripe::Subscription.create({
|
12
|
+
customer: params[:subscription][:customer_id],
|
13
|
+
items: [
|
14
|
+
{ price: params[:subscription][:price_id] },
|
15
|
+
],
|
16
|
+
})
|
17
|
+
puts! @stripe_subscription, '@stripe_subscription'
|
18
|
+
|
19
|
+
# flag = @subscription.save
|
20
|
+
# if flag
|
21
|
+
# flash[:notice] = 'Created the subscription.'
|
22
|
+
# redirect_to action: :show, id: @subscription.id
|
23
|
+
# else
|
24
|
+
# flash[:alert] = "Cannot create the subscription: #{@subscription.errors.full_messages.join(', ')}."
|
25
|
+
# render action: :new
|
26
|
+
# end
|
27
|
+
end
|
28
|
+
|
8
29
|
def index
|
9
30
|
authorize! :index, Wco::Subscription
|
10
31
|
|
@@ -13,8 +34,28 @@ class IshManager::SubscriptionsController < IshManager::ApplicationController
|
|
13
34
|
|
14
35
|
emails = @stripe_customers.map &:email
|
15
36
|
@leadsets = Leadset.find_by( email: emails )
|
16
|
-
|
37
|
+
end
|
38
|
+
|
39
|
+
def show
|
40
|
+
authorize! :show, Wco::Subscription
|
41
|
+
@subscription = Wco::Subscription.find params[:id]
|
42
|
+
end
|
43
|
+
|
44
|
+
def new
|
45
|
+
authorize! :new, Wco::Subscription
|
46
|
+
@subscription = Wco::Subscription.new
|
47
|
+
end
|
48
|
+
|
49
|
+
##
|
50
|
+
## private
|
51
|
+
##
|
52
|
+
private
|
17
53
|
|
54
|
+
def set_lists
|
55
|
+
super
|
56
|
+
@products_list = Wco::Product.list
|
57
|
+
@customer_ids_list = Leadset.where( "customer_id IS NOT NULL" ).map { |i| [ i.company_url, i.customer_id ] }
|
58
|
+
@price_ids_list = Wco::Product.all.map { |i| [ i.name, i.price_id ] }
|
18
59
|
end
|
19
60
|
|
20
61
|
end
|
@@ -7,10 +7,10 @@
|
|
7
7
|
|
8
8
|
= form_for gallery, :url => url do |f|
|
9
9
|
.row
|
10
|
-
.col
|
10
|
+
.col-md-6
|
11
11
|
= f.label :name
|
12
12
|
= f.text_field :name
|
13
|
-
.col
|
13
|
+
.col-md-6
|
14
14
|
= f.label :slug
|
15
15
|
= f.text_field :slug
|
16
16
|
|
@@ -18,10 +18,14 @@
|
|
18
18
|
|
19
19
|
|
20
20
|
.row
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
21
|
+
.col-md-4
|
22
|
+
= f.label :subhead
|
23
|
+
= f.text_area :subhead
|
24
|
+
.col-md-4
|
25
|
+
= f.text_area :descr, class: :tinymce
|
26
|
+
.col-md-4
|
27
|
+
%label Lead
|
28
|
+
= f.select :lead_id, options_for_select(@leads_list, selected: gallery.lead_id), {}, class: :select2
|
25
29
|
|
26
30
|
.row
|
27
31
|
.col.s3
|
@@ -8,16 +8,17 @@
|
|
8
8
|
|
9
9
|
.galleries--index
|
10
10
|
.max-width
|
11
|
-
= render 'ish_manager/galleries/menu', count:
|
11
|
+
= render 'ish_manager/galleries/menu', count: galleries.count
|
12
|
+
%hr
|
12
13
|
|
13
14
|
.padded
|
14
|
-
- if
|
15
|
+
- if galleries.length > 0
|
15
16
|
|
16
|
-
- if
|
17
|
-
= paginate
|
17
|
+
- if galleries.respond_to? :total_pages
|
18
|
+
= paginate galleries, :param_name => :galleries_page, :views_prefix => 'ish_manager'
|
18
19
|
|
19
20
|
.row
|
20
|
-
-
|
21
|
+
- galleries.each do |g|
|
21
22
|
.col-sm-12.col-md-6
|
22
23
|
.bordered-card
|
23
24
|
%h5
|
@@ -32,8 +33,8 @@
|
|
32
33
|
- g.photos.limit( n_thumbs ).each do |photo|
|
33
34
|
= link_to image_tag(photo.photo.url(:thumb), :alt => g.name), gallery_path(g.slug)
|
34
35
|
|
35
|
-
- if
|
36
|
-
= paginate
|
36
|
+
- if galleries.respond_to? :total_pages
|
37
|
+
= paginate galleries, :param_name => :galleries_page, :views_prefix => 'ish_manager'
|
37
38
|
|
38
39
|
- else
|
39
40
|
%h5 No Galleries
|
@@ -1 +1,2 @@
|
|
1
|
-
|
1
|
+
|
2
|
+
= render 'index', galleries: @galleries
|
@@ -1,7 +1,7 @@
|
|
1
1
|
|
2
2
|
- url = lead.new_record? ? leads_path : lead_path( lead.id )
|
3
3
|
|
4
|
-
= form_for lead, :
|
4
|
+
= form_for lead, html: { multipart: true }, as: :lead, url: url do |f|
|
5
5
|
|
6
6
|
.field
|
7
7
|
= f.label :name
|
@@ -21,15 +21,24 @@
|
|
21
21
|
|
22
22
|
.field
|
23
23
|
= f.label "Leadset (company)"
|
24
|
-
= f.select :m3_leadset_id, options_for_select(@leadsets_list, selected: lead.m3_leadset_id), { include_blank: true }, { class:
|
24
|
+
= f.select :m3_leadset_id, options_for_select(@leadsets_list, selected: lead.m3_leadset_id), { include_blank: true }, { class: :select2 }
|
25
|
+
|
26
|
+
.field
|
27
|
+
%label Rating
|
28
|
+
= f.number_field :rating
|
25
29
|
|
26
30
|
.field
|
27
31
|
= f.label :comment
|
28
|
-
= f.text_area :comment
|
32
|
+
= f.text_area :comment, class: :tinymce
|
29
33
|
|
30
|
-
|
31
|
-
|
32
|
-
|
34
|
+
.field
|
35
|
+
= f.label "Tags"
|
36
|
+
= lead.wp_tags.inspect
|
37
|
+
= f.select :lead_tags, options_for_select(@tags_list, selected: lead.wp_tags.map(&:term_id) ), {}, { class: :select2, multiple: true }
|
38
|
+
|
39
|
+
.field
|
40
|
+
= f.label :photo
|
41
|
+
= f.file_field :photo
|
33
42
|
|
34
43
|
.actions
|
35
44
|
= f.submit
|
@@ -29,6 +29,7 @@
|
|
29
29
|
%tr
|
30
30
|
%th= check_box_tag :selectAll
|
31
31
|
%th Name/Email
|
32
|
+
%th
|
32
33
|
%th.company Company
|
33
34
|
%th Phone, address
|
34
35
|
%th Tag
|
@@ -43,6 +44,8 @@
|
|
43
44
|
%td
|
44
45
|
= link_to '[~]', edit_lead_path( lead )
|
45
46
|
= link_to "#{lead.name} <#{lead.email}>", lead_path( lead )
|
47
|
+
%td
|
48
|
+
= image_tag lead.photo.url(:thumb) if lead.photo
|
46
49
|
%td.company
|
47
50
|
= lead.company.company_url
|
48
51
|
- if lead.company.name.present?
|
@@ -1,3 +1,7 @@
|
|
1
1
|
|
2
|
-
|
3
|
-
=
|
2
|
+
.leads-index.max-width
|
3
|
+
= form_tag leads_path, method: :get do
|
4
|
+
= select_tag :q_tag_ids, options_for_select(@tags_list, selected: params[:q_tag_ids]), { class: :select2, multiple: true }
|
5
|
+
= submit_tag 'tag-search'
|
6
|
+
%hr
|
7
|
+
= render 'index', leads: @leads, search_path: leads_path
|
@@ -6,13 +6,32 @@
|
|
6
6
|
Lead ##{@lead.id}
|
7
7
|
= link_to '[~]', edit_lead_path(@lead)
|
8
8
|
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
9
|
+
.row
|
10
|
+
.col-md-6
|
11
|
+
%ul
|
12
|
+
%li Name: #{@lead.name}
|
13
|
+
%li Email: #{@lead.email}
|
14
|
+
%li Company (leadset): #{ link_to @lead.company.company_url, leadset_path(@lead.company) }
|
15
|
+
%li Rating: #{@lead.rating}
|
16
|
+
- if @lead.phone
|
17
|
+
%li Phone: #{@lead.phone}
|
18
|
+
- if @lead.address
|
19
|
+
%li Address: #{@lead.address}
|
20
|
+
- if @lead.shoe_size
|
21
|
+
%li Shoe size: #{@lead.shoe_size}
|
22
|
+
- if @lead.comment
|
23
|
+
%li Comment: #{raw @lead.comment}
|
24
|
+
- if @lead.photo
|
25
|
+
%li
|
26
|
+
= image_tag Photo.find( @lead.photo_id ).photo.url(:small)
|
27
|
+
|
28
|
+
.col-md-6
|
29
|
+
%h5 Tags
|
30
|
+
%ul
|
31
|
+
- @lead.lead_tags.each do |lt|
|
32
|
+
%li
|
33
|
+
= link_to category_path(lt.wp_tag.id) do
|
34
|
+
= "##{lt.wp_tag.id} - #{lt.wp_tag.name}"
|
16
35
|
|
17
36
|
.row
|
18
37
|
.col-md-6.ctxs
|
@@ -50,10 +69,18 @@
|
|
50
69
|
.row
|
51
70
|
.col-md-12.msgs
|
52
71
|
%h5 Email Messages (#{@msgs.length})
|
72
|
+
.descr @TODO: these used to be links, but now they are broken. _vp_ 2023-08-10
|
53
73
|
%ul
|
54
74
|
- @msgs.each do |msg|
|
55
|
-
%li
|
75
|
+
%li
|
76
|
+
= msg.subject
|
77
|
+
-# = link_to msg.subject, email_conversation_path( msg.conv )
|
56
78
|
|
79
|
+
.row
|
80
|
+
.col-md-6
|
81
|
+
= render 'ish_manager/galleries/index', galleries: @galleries
|
82
|
+
.col-md-6
|
83
|
+
= render 'ish_manager/videos/index', videos: @videos
|
57
84
|
|
58
85
|
|
59
86
|
|
@@ -15,9 +15,9 @@
|
|
15
15
|
-# .input-field
|
16
16
|
-# = f.label :tag
|
17
17
|
-# = f.text_field :tag
|
18
|
-
.input-field
|
19
|
-
|
20
|
-
|
18
|
+
-# .input-field
|
19
|
+
-# %label Stripe customer_id
|
20
|
+
-# = f.text_field :customer_id
|
21
21
|
.actions
|
22
22
|
= f.submit
|
23
23
|
|
@@ -9,6 +9,7 @@
|
|
9
9
|
%li <b>Email:</b> #{@leadset.email}
|
10
10
|
%li <b>Stripe customer_id:</b> #{@leadset.customer_id}
|
11
11
|
%li <b>company_url</b>: #{@leadset.company_url}
|
12
|
+
%li <b>customer_id</b>: #{@leadset.customer_id}
|
12
13
|
%li
|
13
14
|
= link_to invoices_path({ leadset_id: @leadset.id }) do
|
14
15
|
Invoices
|
@@ -0,0 +1,16 @@
|
|
1
|
+
|
2
|
+
- url = subscription.new_record? ? subscriptions_path : subscription_path(subscription)
|
3
|
+
|
4
|
+
.subscriptions--form
|
5
|
+
= form_for subscription, as: :subscription, url: url do |f|
|
6
|
+
|
7
|
+
.input-group
|
8
|
+
%label Product (price):
|
9
|
+
= f.select :price_id, options_for_select(@price_ids_list, selected: subscription.price_id), {}, class: :select2
|
10
|
+
|
11
|
+
.input-group
|
12
|
+
%label Customer/Leadset
|
13
|
+
= f.select :customer_id, options_for_select(@customer_ids_list, selected: subscription.customer_id), {}, class: :select2
|
14
|
+
|
15
|
+
.actions
|
16
|
+
= f.submit 'Submit'
|
@@ -1,36 +1,38 @@
|
|
1
1
|
|
2
2
|
= form_for video do |f|
|
3
3
|
.row
|
4
|
-
.col
|
4
|
+
.col-sm-6
|
5
5
|
.field
|
6
6
|
= f.label :youtube_id
|
7
7
|
= f.text_field :youtube_id
|
8
8
|
.field
|
9
9
|
= f.label :name
|
10
10
|
= f.text_field :name
|
11
|
+
.input-group
|
12
|
+
= f.label :premium_tier
|
13
|
+
= f.number_field :premium_tier
|
14
|
+
.input-group
|
15
|
+
= f.check_box :is_trash
|
16
|
+
= f.label :is_trash
|
11
17
|
.field
|
12
|
-
|
13
|
-
= f.
|
14
|
-
.col
|
18
|
+
%label Lead
|
19
|
+
= f.select :lead_id, options_for_select(@leads_list, selected: video.lead_id), {}, class: :select2
|
20
|
+
.col-sm-6
|
15
21
|
.field
|
16
22
|
= f.label :video
|
17
23
|
= f.file_field :video
|
18
24
|
.field
|
19
25
|
= f.label :thumb
|
20
26
|
= f.file_field :thumb
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
= f.number_field :premium_tier
|
25
|
-
.col.s3
|
26
|
-
= f.label :user_profile
|
27
|
-
= f.select :user_profile_id, @user_profiles_list
|
27
|
+
|
28
|
+
|
29
|
+
= render 'ish_manager/application/form_nonpublic', f: f, model: video
|
28
30
|
.row
|
29
31
|
.col-md-6
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
32
|
+
.field
|
33
|
+
= f.label :descr
|
34
|
+
= f.text_area :descr, class: :tinymce
|
35
|
+
|
34
36
|
|
35
37
|
.action
|
36
38
|
= f.submit
|
@@ -1,12 +1,18 @@
|
|
1
1
|
|
2
2
|
- videos ||= @videos
|
3
|
+
- this_videos_path ||= videos_path
|
3
4
|
|
4
5
|
.videos--index
|
5
|
-
.
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
6
|
+
.videos--menu
|
7
|
+
= link_to "Videos (#{videos.count})", this_videos_path
|
8
|
+
|
9
|
+
-# = render 'search', path: this_videos_path
|
10
|
+
.inline-search
|
11
|
+
= form_tag this_videos_path, method: :get do
|
12
|
+
= text_field_tag :q
|
13
|
+
|
14
|
+
= link_to '[+]', new_video_path
|
15
|
+
%hr
|
10
16
|
|
11
17
|
= paginate videos, param_name: :videos_page, views_prefix: 'ish_manager'
|
12
18
|
|
@@ -26,7 +32,6 @@
|
|
26
32
|
|
27
33
|
= render 'meta', item: video
|
28
34
|
|
29
|
-
|
30
35
|
= paginate videos, param_name: :videos_page, views_prefix: 'ish_manager'
|
31
36
|
|
32
37
|
|
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.456
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- piousbox
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-08-
|
11
|
+
date: 2023-08-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -748,7 +748,10 @@ files:
|
|
748
748
|
- app/views/ish_manager/scheduled_email_actions/index.haml
|
749
749
|
- app/views/ish_manager/scheduled_email_actions/new.haml
|
750
750
|
- app/views/ish_manager/scheduled_email_actions/show.haml
|
751
|
+
- app/views/ish_manager/subscriptions/_form.haml
|
751
752
|
- app/views/ish_manager/subscriptions/index.haml
|
753
|
+
- app/views/ish_manager/subscriptions/new.haml
|
754
|
+
- app/views/ish_manager/subscriptions/show.haml
|
752
755
|
- app/views/ish_manager/trash/email_campaigns-trash/_form.haml
|
753
756
|
- app/views/ish_manager/trash/email_campaigns-trash/edit.haml
|
754
757
|
- app/views/ish_manager/trash/email_campaigns-trash/index.haml
|