phcdevworks_core_modules 7.1.4 → 7.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/MIT-LICENSE +20 -20
- data/README.md +0 -0
- data/Rakefile +8 -8
- data/app/assets/config/phcdevworks_core_modules_manifest.js +3 -3
- data/app/assets/javascripts/phcdevworks_core_modules/affiliate/links.coffee +3 -3
- data/app/assets/stylesheets/phcdevworks_core_modules/affiliate/links.scss +3 -3
- data/app/assets/stylesheets/phcdevworks_core_modules/application.scss +0 -0
- data/app/assets/stylesheets/phcdevworks_core_modules/marketing/optimizations.scss +3 -3
- data/app/assets/stylesheets/phcdevworks_core_modules/post/categories.scss +3 -3
- data/app/assets/stylesheets/scaffolds.scss +65 -65
- data/app/controllers/phcdevworks_core_modules/affiliate/links_controller.rb +81 -81
- data/app/controllers/phcdevworks_core_modules/application_controller.rb +13 -13
- data/app/controllers/phcdevworks_core_modules/marketing/optimizations_controller.rb +81 -81
- data/app/controllers/phcdevworks_core_modules/post/categories_controller.rb +81 -81
- data/app/helpers/phcdevworks_core_modules/affiliate/links_helper.rb +4 -4
- data/app/helpers/phcdevworks_core_modules/application_helper.rb +4 -4
- data/app/helpers/phcdevworks_core_modules/marketing/optimizations_helper.rb +4 -4
- data/app/helpers/phcdevworks_core_modules/post/categories_helper.rb +4 -4
- data/app/jobs/phcdevworks_core_modules/application_job.rb +4 -4
- data/app/mailers/phcdevworks_core_modules/application_mailer.rb +6 -6
- data/app/models/phcdevworks_core_modules/affiliate/link.rb +35 -35
- data/app/models/phcdevworks_core_modules/affiliate.rb +7 -7
- data/app/models/phcdevworks_core_modules/affiliate_link_versions.rb +0 -0
- data/app/models/phcdevworks_core_modules/application_record.rb +5 -5
- data/app/models/phcdevworks_core_modules/marketing/optimization.rb +54 -54
- data/app/models/phcdevworks_core_modules/marketing.rb +7 -7
- data/app/models/phcdevworks_core_modules/marketing_optimization_versions.rb +0 -0
- data/app/models/phcdevworks_core_modules/modules.rb +7 -7
- data/app/models/phcdevworks_core_modules/post/category.rb +43 -43
- data/app/models/phcdevworks_core_modules/post.rb +7 -7
- data/app/models/phcdevworks_core_modules/post_category_versions.rb +0 -0
- data/app/views/layouts/phcdevworks_core_modules/application.html.erb +131 -131
- data/app/views/layouts/phcdevworks_core_modules/components/backend/footer/_footer.html.erb +0 -0
- data/app/views/layouts/phcdevworks_core_modules/components/backend/navigation/_top_menu.html.erb +0 -0
- data/app/views/layouts/phcdevworks_core_modules/components/backend/sidebars/_side_menu.html.erb +67 -5
- data/app/views/phcdevworks_core_modules/affiliate/links/_form.html.erb +27 -27
- data/app/views/phcdevworks_core_modules/affiliate/links/edit.html.erb +47 -47
- data/app/views/phcdevworks_core_modules/affiliate/links/index.html.erb +86 -86
- data/app/views/phcdevworks_core_modules/affiliate/links/new.html.erb +47 -47
- data/app/views/phcdevworks_core_modules/affiliate/links/show.html.erb +24 -24
- data/app/views/phcdevworks_core_modules/marketing/optimizations/_form.html.erb +89 -89
- data/app/views/phcdevworks_core_modules/marketing/optimizations/edit.html.erb +47 -47
- data/app/views/phcdevworks_core_modules/marketing/optimizations/index.html.erb +88 -88
- data/app/views/phcdevworks_core_modules/marketing/optimizations/new.html.erb +47 -47
- data/app/views/phcdevworks_core_modules/marketing/optimizations/show.html.erb +54 -54
- data/app/views/phcdevworks_core_modules/post/categories/_form.html.erb +22 -22
- data/app/views/phcdevworks_core_modules/post/categories/edit.html.erb +47 -47
- data/app/views/phcdevworks_core_modules/post/categories/index.html.erb +80 -80
- data/app/views/phcdevworks_core_modules/post/categories/new.html.erb +47 -47
- data/app/views/phcdevworks_core_modules/post/categories/show.html.erb +9 -9
- data/config/routes.rb +24 -25
- data/config/spring.rb +1 -1
- data/db/migrate/20170517064427_create_phcdevworks_core_modules_post_category_versions.rb +0 -0
- data/db/migrate/20200705223718_create_phcdevworks_core_modules_marketing_optimizations.rb +26 -26
- data/db/migrate/20200705225433_create_phcdevworks_core_modules_marketing_optimization_versions.rb +18 -18
- data/db/migrate/20200706094820_create_phcdevworks_core_modules_post_categories.rb +17 -17
- data/db/migrate/20201012225709_remove_phcdevworks_core_modules_post_categories.rb +7 -7
- data/db/migrate/20210207051304_create_phcdevworks_core_modules_affiliate_link_versions.rb +18 -18
- data/db/migrate/20210208130113_create_phcdevworks_core_modules_affiliate_links.rb +18 -18
- data/lib/phcdevworks_core_modules/engine.rb +47 -48
- data/lib/phcdevworks_core_modules/version.rb +3 -3
- data/lib/phcdevworks_core_modules.rb +6 -6
- data/lib/tasks/phcdevworks_core_modules_tasks.rake +4 -4
- metadata +31 -31
@@ -1,86 +1,86 @@
|
|
1
|
-
<!-- PHCTitleSEO Title Variables -->
|
2
|
-
<% phc_title "Marketing Manager" %>
|
3
|
-
<% phc_title_tagline "Affiliate Links" %>
|
4
|
-
<% phc_breadcrumb_one yield(:phc_title_tagline) %>
|
5
|
-
<% phc_breadcrumb_two link_to "Affiliate Link Index", phcdevworks_core_modules.affiliate_links_path %>
|
6
|
-
<!-- PHCTitleSEO Title Variables -->
|
7
|
-
|
8
|
-
<!-- Page Bradcrumbs -->
|
9
|
-
<ol class="breadcrumb pull-right">
|
10
|
-
<li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
|
11
|
-
<li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_two) %></li>
|
12
|
-
</ol>
|
13
|
-
<!-- Page Bradcrumbs -->
|
14
|
-
|
15
|
-
<!-- Page Header -->
|
16
|
-
<h2 class="page-header"><%= yield(:phc_title) %></h2>
|
17
|
-
<!-- Page Header -->
|
18
|
-
|
19
|
-
<!-- Page Content -->
|
20
|
-
<div class="row">
|
21
|
-
<div class="col-lg-12">
|
22
|
-
|
23
|
-
<!-- Panel -->
|
24
|
-
<div class="panel panel-inverse">
|
25
|
-
|
26
|
-
<!-- Panel - Heading -->
|
27
|
-
<div class="panel-heading">
|
28
|
-
<h4 class="panel-title"><%= yield(:phc_title) %> - <%= yield(:phc_title_tagline) %></h4>
|
29
|
-
</div>
|
30
|
-
<!-- Panel - Heading -->
|
31
|
-
|
32
|
-
<!-- Panel - Body -->
|
33
|
-
<div class="panel-body">
|
34
|
-
|
35
|
-
<!-- Index - Table -->
|
36
|
-
<div class="table-responsive">
|
37
|
-
<table class="table table-striped table-bordered">
|
38
|
-
|
39
|
-
<thead>
|
40
|
-
<tr>
|
41
|
-
<th>Link Name</th>
|
42
|
-
<th>Button Text</th>
|
43
|
-
<th>Affiliate URL</th>
|
44
|
-
<th>Original URL</th>
|
45
|
-
<th></th>
|
46
|
-
</tr>
|
47
|
-
</thead>
|
48
|
-
|
49
|
-
<tbody>
|
50
|
-
<% @affiliate_links.each do |affiliate_link| %>
|
51
|
-
<tr>
|
52
|
-
<td><%= affiliate_link.affiliate_link_name %></td>
|
53
|
-
<td><%= affiliate_link.affiliate_link_button_text %></td>
|
54
|
-
<td><%= affiliate_link.affiliate_link_url %></td>
|
55
|
-
<td><%= affiliate_link.affiliate_link_original_url %></td>
|
56
|
-
<td>
|
57
|
-
<div class="btn-group d-flex" role="group">
|
58
|
-
<%= link_to "Link Details", affiliate_link, class: "btn btn-purple btn-xs" %>
|
59
|
-
<%= link_to "Update Link", edit_affiliate_link_path(affiliate_link), class: "btn btn-primary btn-xs" %>
|
60
|
-
<%= link_to "Remove", affiliate_link, method: :delete, data: { confirm: "Are you sure? This action cannot be reversed." }, class: "btn btn-danger btn-xs" %>
|
61
|
-
</div>
|
62
|
-
</td>
|
63
|
-
</tr>
|
64
|
-
<% end %>
|
65
|
-
</tbody>
|
66
|
-
|
67
|
-
</table>
|
68
|
-
</div>
|
69
|
-
<!-- Index - Table -->
|
70
|
-
|
71
|
-
<!-- New Button -->
|
72
|
-
<%= link_to phcdevworks_core_modules.new_affiliate_link_path, class: "btn btn-primary btn-sm" do %>
|
73
|
-
<i class="fad fa-plus-circle"></i>
|
74
|
-
Add a New Affiliate Link
|
75
|
-
<% end %>
|
76
|
-
<!-- New Button -->
|
77
|
-
|
78
|
-
</div>
|
79
|
-
<!-- Panel - Body -->
|
80
|
-
|
81
|
-
</div>
|
82
|
-
<!-- Panel -->
|
83
|
-
|
84
|
-
</div>
|
85
|
-
</div>
|
86
|
-
<!-- Page Content -->
|
1
|
+
<!-- PHCTitleSEO Title Variables -->
|
2
|
+
<% phc_title "Marketing Manager" %>
|
3
|
+
<% phc_title_tagline "Affiliate Links" %>
|
4
|
+
<% phc_breadcrumb_one yield(:phc_title_tagline) %>
|
5
|
+
<% phc_breadcrumb_two link_to "Affiliate Link Index", phcdevworks_core_modules.affiliate_links_path %>
|
6
|
+
<!-- PHCTitleSEO Title Variables -->
|
7
|
+
|
8
|
+
<!-- Page Bradcrumbs -->
|
9
|
+
<ol class="breadcrumb pull-right">
|
10
|
+
<li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
|
11
|
+
<li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_two) %></li>
|
12
|
+
</ol>
|
13
|
+
<!-- Page Bradcrumbs -->
|
14
|
+
|
15
|
+
<!-- Page Header -->
|
16
|
+
<h2 class="page-header"><%= yield(:phc_title) %></h2>
|
17
|
+
<!-- Page Header -->
|
18
|
+
|
19
|
+
<!-- Page Content -->
|
20
|
+
<div class="row">
|
21
|
+
<div class="col-lg-12">
|
22
|
+
|
23
|
+
<!-- Panel -->
|
24
|
+
<div class="panel panel-inverse">
|
25
|
+
|
26
|
+
<!-- Panel - Heading -->
|
27
|
+
<div class="panel-heading">
|
28
|
+
<h4 class="panel-title"><%= yield(:phc_title) %> - <%= yield(:phc_title_tagline) %></h4>
|
29
|
+
</div>
|
30
|
+
<!-- Panel - Heading -->
|
31
|
+
|
32
|
+
<!-- Panel - Body -->
|
33
|
+
<div class="panel-body">
|
34
|
+
|
35
|
+
<!-- Index - Table -->
|
36
|
+
<div class="table-responsive">
|
37
|
+
<table class="table table-striped table-bordered">
|
38
|
+
|
39
|
+
<thead>
|
40
|
+
<tr>
|
41
|
+
<th>Link Name</th>
|
42
|
+
<th>Button Text</th>
|
43
|
+
<th>Affiliate URL</th>
|
44
|
+
<th>Original URL</th>
|
45
|
+
<th></th>
|
46
|
+
</tr>
|
47
|
+
</thead>
|
48
|
+
|
49
|
+
<tbody>
|
50
|
+
<% @affiliate_links.each do |affiliate_link| %>
|
51
|
+
<tr>
|
52
|
+
<td><%= affiliate_link.affiliate_link_name %></td>
|
53
|
+
<td><%= affiliate_link.affiliate_link_button_text %></td>
|
54
|
+
<td><%= affiliate_link.affiliate_link_url %></td>
|
55
|
+
<td><%= affiliate_link.affiliate_link_original_url %></td>
|
56
|
+
<td>
|
57
|
+
<div class="btn-group d-flex" role="group">
|
58
|
+
<%= link_to "Link Details", affiliate_link, class: "btn btn-purple btn-xs" %>
|
59
|
+
<%= link_to "Update Link", edit_affiliate_link_path(affiliate_link), class: "btn btn-primary btn-xs" %>
|
60
|
+
<%= link_to "Remove", affiliate_link, method: :delete, data: { confirm: "Are you sure? This action cannot be reversed." }, class: "btn btn-danger btn-xs" %>
|
61
|
+
</div>
|
62
|
+
</td>
|
63
|
+
</tr>
|
64
|
+
<% end %>
|
65
|
+
</tbody>
|
66
|
+
|
67
|
+
</table>
|
68
|
+
</div>
|
69
|
+
<!-- Index - Table -->
|
70
|
+
|
71
|
+
<!-- New Button -->
|
72
|
+
<%= link_to phcdevworks_core_modules.new_affiliate_link_path, class: "btn btn-primary btn-sm" do %>
|
73
|
+
<i class="fad fa-plus-circle"></i>
|
74
|
+
Add a New Affiliate Link
|
75
|
+
<% end %>
|
76
|
+
<!-- New Button -->
|
77
|
+
|
78
|
+
</div>
|
79
|
+
<!-- Panel - Body -->
|
80
|
+
|
81
|
+
</div>
|
82
|
+
<!-- Panel -->
|
83
|
+
|
84
|
+
</div>
|
85
|
+
</div>
|
86
|
+
<!-- Page Content -->
|
@@ -1,47 +1,47 @@
|
|
1
|
-
<!-- PHCTitleSEO Title Variables -->
|
2
|
-
<% phc_title "Affiliate Manager" %>
|
3
|
-
<% phc_title_tagline "New Affiliate Link" %>
|
4
|
-
<% phc_breadcrumb_one yield(:phc_title_tagline) %>
|
5
|
-
<% phc_breadcrumb_two link_to "Affiliate Link Index", phcdevworks_core_modules.affiliate_links_path %>
|
6
|
-
<!-- PHCTitleSEO Title Variables -->
|
7
|
-
|
8
|
-
<!-- Page Bradcrumbs -->
|
9
|
-
<ol class="breadcrumb pull-right">
|
10
|
-
<li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
|
11
|
-
<li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_two) %></li>
|
12
|
-
</ol>
|
13
|
-
<!-- Page Bradcrumbs -->
|
14
|
-
|
15
|
-
<!-- Page Header -->
|
16
|
-
<h2 class="page-header"><%= yield(:phc_title) %></h2>
|
17
|
-
<!-- Page Header -->
|
18
|
-
|
19
|
-
<!-- Page Content -->
|
20
|
-
<div class="row">
|
21
|
-
<div class="col-lg-12">
|
22
|
-
|
23
|
-
<!-- Panel -->
|
24
|
-
<div class="panel panel-inverse">
|
25
|
-
|
26
|
-
<!-- Panel - Heading -->
|
27
|
-
<div class="panel-heading">
|
28
|
-
<h4 class="panel-title"><%= yield(:phc_title) %></h4>
|
29
|
-
</div>
|
30
|
-
<!-- Panel - Heading -->
|
31
|
-
|
32
|
-
<!-- Panel - Body -->
|
33
|
-
<div class="panel-body">
|
34
|
-
|
35
|
-
<!-- Edit Form -->
|
36
|
-
<%= render 'form', affiliate_link: @affiliate_link %>
|
37
|
-
<!-- Edit Form -->
|
38
|
-
|
39
|
-
</div>
|
40
|
-
<!-- Panel - Body -->
|
41
|
-
|
42
|
-
</div>
|
43
|
-
<!-- Panel -->
|
44
|
-
|
45
|
-
</div>
|
46
|
-
</div>
|
47
|
-
<!-- Page Content -->
|
1
|
+
<!-- PHCTitleSEO Title Variables -->
|
2
|
+
<% phc_title "Affiliate Manager" %>
|
3
|
+
<% phc_title_tagline "New Affiliate Link" %>
|
4
|
+
<% phc_breadcrumb_one yield(:phc_title_tagline) %>
|
5
|
+
<% phc_breadcrumb_two link_to "Affiliate Link Index", phcdevworks_core_modules.affiliate_links_path %>
|
6
|
+
<!-- PHCTitleSEO Title Variables -->
|
7
|
+
|
8
|
+
<!-- Page Bradcrumbs -->
|
9
|
+
<ol class="breadcrumb pull-right">
|
10
|
+
<li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
|
11
|
+
<li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_two) %></li>
|
12
|
+
</ol>
|
13
|
+
<!-- Page Bradcrumbs -->
|
14
|
+
|
15
|
+
<!-- Page Header -->
|
16
|
+
<h2 class="page-header"><%= yield(:phc_title) %></h2>
|
17
|
+
<!-- Page Header -->
|
18
|
+
|
19
|
+
<!-- Page Content -->
|
20
|
+
<div class="row">
|
21
|
+
<div class="col-lg-12">
|
22
|
+
|
23
|
+
<!-- Panel -->
|
24
|
+
<div class="panel panel-inverse">
|
25
|
+
|
26
|
+
<!-- Panel - Heading -->
|
27
|
+
<div class="panel-heading">
|
28
|
+
<h4 class="panel-title"><%= yield(:phc_title) %></h4>
|
29
|
+
</div>
|
30
|
+
<!-- Panel - Heading -->
|
31
|
+
|
32
|
+
<!-- Panel - Body -->
|
33
|
+
<div class="panel-body">
|
34
|
+
|
35
|
+
<!-- Edit Form -->
|
36
|
+
<%= render 'form', affiliate_link: @affiliate_link %>
|
37
|
+
<!-- Edit Form -->
|
38
|
+
|
39
|
+
</div>
|
40
|
+
<!-- Panel - Body -->
|
41
|
+
|
42
|
+
</div>
|
43
|
+
<!-- Panel -->
|
44
|
+
|
45
|
+
</div>
|
46
|
+
</div>
|
47
|
+
<!-- Page Content -->
|
@@ -1,24 +1,24 @@
|
|
1
|
-
<p id="notice"><%= notice %></p>
|
2
|
-
|
3
|
-
<p>
|
4
|
-
<strong>Affiliate link name:</strong>
|
5
|
-
<%= @affiliate_link.affiliate_link_name %>
|
6
|
-
</p>
|
7
|
-
|
8
|
-
<p>
|
9
|
-
<strong>Affiliate link button text:</strong>
|
10
|
-
<%= @affiliate_link.affiliate_link_button_text %>
|
11
|
-
</p>
|
12
|
-
|
13
|
-
<p>
|
14
|
-
<strong>Affiliate link url:</strong>
|
15
|
-
<%= @affiliate_link.affiliate_link_url %>
|
16
|
-
</p>
|
17
|
-
|
18
|
-
<p>
|
19
|
-
<strong>Affiliate link original url:</strong>
|
20
|
-
<%= @affiliate_link.affiliate_link_original_url %>
|
21
|
-
</p>
|
22
|
-
|
23
|
-
<%= link_to 'Edit', edit_affiliate_link_path(@affiliate_link) %> |
|
24
|
-
<%= link_to 'Back', affiliate_links_path %>
|
1
|
+
<p id="notice"><%= notice %></p>
|
2
|
+
|
3
|
+
<p>
|
4
|
+
<strong>Affiliate link name:</strong>
|
5
|
+
<%= @affiliate_link.affiliate_link_name %>
|
6
|
+
</p>
|
7
|
+
|
8
|
+
<p>
|
9
|
+
<strong>Affiliate link button text:</strong>
|
10
|
+
<%= @affiliate_link.affiliate_link_button_text %>
|
11
|
+
</p>
|
12
|
+
|
13
|
+
<p>
|
14
|
+
<strong>Affiliate link url:</strong>
|
15
|
+
<%= @affiliate_link.affiliate_link_url %>
|
16
|
+
</p>
|
17
|
+
|
18
|
+
<p>
|
19
|
+
<strong>Affiliate link original url:</strong>
|
20
|
+
<%= @affiliate_link.affiliate_link_original_url %>
|
21
|
+
</p>
|
22
|
+
|
23
|
+
<%= link_to 'Edit', edit_affiliate_link_path(@affiliate_link) %> |
|
24
|
+
<%= link_to 'Back', affiliate_links_path %>
|
@@ -1,89 +1,89 @@
|
|
1
|
-
<!-- Form - Optimization - Post -->
|
2
|
-
<%= form_with(model: marketing_optimization, local: true) do |form| %>
|
3
|
-
|
4
|
-
<!-- PHCNotifi Render Validation -->
|
5
|
-
<%= render "phcdevworks_notifications/bootstrap/validations", :object => @marketing_optimization %>
|
6
|
-
<!-- PHCNotifi Render Validation -->
|
7
|
-
|
8
|
-
<!-- Form Input Fields -->
|
9
|
-
<div class="form-group">
|
10
|
-
<%= form.label :marketing_optimization_page_title, "Page Title" %>
|
11
|
-
<%= form.text_field :marketing_optimization_page_title, class: "form-control" %>
|
12
|
-
</div>
|
13
|
-
|
14
|
-
<div class="form-group">
|
15
|
-
<%= form.label :marketing_optimization_page_description, "Page Description" %>
|
16
|
-
<%= form.text_area :marketing_optimization_page_description, class: "form-control" %>
|
17
|
-
</div>
|
18
|
-
|
19
|
-
<div class="form-group">
|
20
|
-
<%= form.label :marketing_optimization_og_title, "Open Graph Title" %>
|
21
|
-
<%= form.text_field :marketing_optimization_og_title, class: "form-control" %>
|
22
|
-
</div>
|
23
|
-
|
24
|
-
<div class="form-group">
|
25
|
-
<%= form.label :marketing_optimization_og_description, "Open Graph Description" %>
|
26
|
-
<%= form.text_area :marketing_optimization_og_description, class: "form-control" %>
|
27
|
-
</div>
|
28
|
-
|
29
|
-
<div class="form-group">
|
30
|
-
<%= form.label :marketing_optimization_og_type, "Open Graph Type" %>
|
31
|
-
<%= form.select( :marketing_optimization_og_type, [["Website","website"]], {}, {class: "form-control"}) %>
|
32
|
-
</div>
|
33
|
-
|
34
|
-
<div class="form-group">
|
35
|
-
<%= form.label :marketing_optimization_og_url, "Open Graph URL" %>
|
36
|
-
<%= form.text_field :marketing_optimization_og_url, class: "form-control" %>
|
37
|
-
</div>
|
38
|
-
|
39
|
-
<div class="form-group field_with_errors">
|
40
|
-
<%= form.label :marketing_optimization_og_image, "Featured Image" %>
|
41
|
-
<%= form.file_field :marketing_optimization_og_image, class: "form-control" %>
|
42
|
-
<% if form.object.marketing_optimization_og_image.attached? %>
|
43
|
-
<%= image_tag main_app.url_for(form.object.marketing_optimization_og_image), class: "img-responsive img-thumbnail" %>
|
44
|
-
<%= form.label :remove_marketing_optimization_og_image %>
|
45
|
-
<%= form.check_box :remove_marketing_optimization_og_image %>
|
46
|
-
<% end %>
|
47
|
-
</div>
|
48
|
-
|
49
|
-
<div class="form-group">
|
50
|
-
<%= form.label :marketing_optimization_twitter_title, "Twitter Card Title" %>
|
51
|
-
<%= form.text_field :marketing_optimization_twitter_title, class: "form-control" %>
|
52
|
-
</div>
|
53
|
-
|
54
|
-
<div class="form-group">
|
55
|
-
<%= form.label :marketing_optimization_twitter_description, "Twitter Card Description" %>
|
56
|
-
<%= form.text_area :marketing_optimization_twitter_description, class: "form-control" %>
|
57
|
-
</div>
|
58
|
-
|
59
|
-
<div class="form-group">
|
60
|
-
<%= form.label :marketing_optimization_twitter_type, "Twitter Card Type" %>
|
61
|
-
<%= form.select( :marketing_optimization_twitter_type, [["Summary","summary"],["Summary Large Image","summary_large_image"]], {}, {class: "form-control"}) %>
|
62
|
-
</div>
|
63
|
-
|
64
|
-
<div class="form-group">
|
65
|
-
<%= form.label :marketing_optimization_twitter_url, "Twitter Card URL" %>
|
66
|
-
<%= form.text_field :marketing_optimization_twitter_url, class: "form-control" %>
|
67
|
-
</div>
|
68
|
-
|
69
|
-
<div class="form-group field_with_errors">
|
70
|
-
<%= form.label :marketing_optimization_twitter_image, "Featured Image" %>
|
71
|
-
<%= form.file_field :marketing_optimization_twitter_image, class: "form-control" %>
|
72
|
-
<% if form.object.marketing_optimization_twitter_image.attached? %>
|
73
|
-
<%= image_tag main_app.url_for(form.object.marketing_optimization_twitter_image), class: "img-responsive img-thumbnail" %>
|
74
|
-
<%= form.label :remove_marketing_optimization_twitter_image %>
|
75
|
-
<%= form.check_box :remove_marketing_optimization_twitter_image %>
|
76
|
-
<% end %>
|
77
|
-
</div>
|
78
|
-
|
79
|
-
|
80
|
-
<!-- Form Input Fields -->
|
81
|
-
|
82
|
-
<!-- Form Submition Button -->
|
83
|
-
<div class="actions">
|
84
|
-
<%= form.submit class: "btn btn-primary" %>
|
85
|
-
</div>
|
86
|
-
<!-- For Submition Button -->
|
87
|
-
|
88
|
-
<% end %>
|
89
|
-
<!-- Form - Optimization - Post -->
|
1
|
+
<!-- Form - Optimization - Post -->
|
2
|
+
<%= form_with(model: marketing_optimization, local: true) do |form| %>
|
3
|
+
|
4
|
+
<!-- PHCNotifi Render Validation -->
|
5
|
+
<%= render "phcdevworks_notifications/bootstrap/validations", :object => @marketing_optimization %>
|
6
|
+
<!-- PHCNotifi Render Validation -->
|
7
|
+
|
8
|
+
<!-- Form Input Fields -->
|
9
|
+
<div class="form-group">
|
10
|
+
<%= form.label :marketing_optimization_page_title, "Page Title" %>
|
11
|
+
<%= form.text_field :marketing_optimization_page_title, class: "form-control" %>
|
12
|
+
</div>
|
13
|
+
|
14
|
+
<div class="form-group">
|
15
|
+
<%= form.label :marketing_optimization_page_description, "Page Description" %>
|
16
|
+
<%= form.text_area :marketing_optimization_page_description, class: "form-control" %>
|
17
|
+
</div>
|
18
|
+
|
19
|
+
<div class="form-group">
|
20
|
+
<%= form.label :marketing_optimization_og_title, "Open Graph Title" %>
|
21
|
+
<%= form.text_field :marketing_optimization_og_title, class: "form-control" %>
|
22
|
+
</div>
|
23
|
+
|
24
|
+
<div class="form-group">
|
25
|
+
<%= form.label :marketing_optimization_og_description, "Open Graph Description" %>
|
26
|
+
<%= form.text_area :marketing_optimization_og_description, class: "form-control" %>
|
27
|
+
</div>
|
28
|
+
|
29
|
+
<div class="form-group">
|
30
|
+
<%= form.label :marketing_optimization_og_type, "Open Graph Type" %>
|
31
|
+
<%= form.select( :marketing_optimization_og_type, [["Website","website"]], {}, {class: "form-control"}) %>
|
32
|
+
</div>
|
33
|
+
|
34
|
+
<div class="form-group">
|
35
|
+
<%= form.label :marketing_optimization_og_url, "Open Graph URL" %>
|
36
|
+
<%= form.text_field :marketing_optimization_og_url, class: "form-control" %>
|
37
|
+
</div>
|
38
|
+
|
39
|
+
<div class="form-group field_with_errors">
|
40
|
+
<%= form.label :marketing_optimization_og_image, "Featured Image" %>
|
41
|
+
<%= form.file_field :marketing_optimization_og_image, class: "form-control" %>
|
42
|
+
<% if form.object.marketing_optimization_og_image.attached? %>
|
43
|
+
<%= image_tag main_app.url_for(form.object.marketing_optimization_og_image), class: "img-responsive img-thumbnail" %>
|
44
|
+
<%= form.label :remove_marketing_optimization_og_image %>
|
45
|
+
<%= form.check_box :remove_marketing_optimization_og_image %>
|
46
|
+
<% end %>
|
47
|
+
</div>
|
48
|
+
|
49
|
+
<div class="form-group">
|
50
|
+
<%= form.label :marketing_optimization_twitter_title, "Twitter Card Title" %>
|
51
|
+
<%= form.text_field :marketing_optimization_twitter_title, class: "form-control" %>
|
52
|
+
</div>
|
53
|
+
|
54
|
+
<div class="form-group">
|
55
|
+
<%= form.label :marketing_optimization_twitter_description, "Twitter Card Description" %>
|
56
|
+
<%= form.text_area :marketing_optimization_twitter_description, class: "form-control" %>
|
57
|
+
</div>
|
58
|
+
|
59
|
+
<div class="form-group">
|
60
|
+
<%= form.label :marketing_optimization_twitter_type, "Twitter Card Type" %>
|
61
|
+
<%= form.select( :marketing_optimization_twitter_type, [["Summary","summary"],["Summary Large Image","summary_large_image"]], {}, {class: "form-control"}) %>
|
62
|
+
</div>
|
63
|
+
|
64
|
+
<div class="form-group">
|
65
|
+
<%= form.label :marketing_optimization_twitter_url, "Twitter Card URL" %>
|
66
|
+
<%= form.text_field :marketing_optimization_twitter_url, class: "form-control" %>
|
67
|
+
</div>
|
68
|
+
|
69
|
+
<div class="form-group field_with_errors">
|
70
|
+
<%= form.label :marketing_optimization_twitter_image, "Featured Image" %>
|
71
|
+
<%= form.file_field :marketing_optimization_twitter_image, class: "form-control" %>
|
72
|
+
<% if form.object.marketing_optimization_twitter_image.attached? %>
|
73
|
+
<%= image_tag main_app.url_for(form.object.marketing_optimization_twitter_image), class: "img-responsive img-thumbnail" %>
|
74
|
+
<%= form.label :remove_marketing_optimization_twitter_image %>
|
75
|
+
<%= form.check_box :remove_marketing_optimization_twitter_image %>
|
76
|
+
<% end %>
|
77
|
+
</div>
|
78
|
+
|
79
|
+
|
80
|
+
<!-- Form Input Fields -->
|
81
|
+
|
82
|
+
<!-- Form Submition Button -->
|
83
|
+
<div class="actions">
|
84
|
+
<%= form.submit class: "btn btn-primary" %>
|
85
|
+
</div>
|
86
|
+
<!-- For Submition Button -->
|
87
|
+
|
88
|
+
<% end %>
|
89
|
+
<!-- Form - Optimization - Post -->
|
@@ -1,47 +1,47 @@
|
|
1
|
-
<!-- PHCTitleSEO Title Variables -->
|
2
|
-
<% phc_title "Marketing Manager" %>
|
3
|
-
<% phc_title_tagline "Update SEO Data" %>
|
4
|
-
<% phc_breadcrumb_one yield(:phc_title_tagline) %>
|
5
|
-
<% phc_breadcrumb_two link_to "SEO Data Index", phcdevworks_core_modules.marketing_optimizations_path %>
|
6
|
-
<!-- PHCTitleSEO Title Variables -->
|
7
|
-
|
8
|
-
<!-- Page Bradcrumbs -->
|
9
|
-
<ol class="breadcrumb pull-right">
|
10
|
-
<li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
|
11
|
-
<li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_two) %></li>
|
12
|
-
</ol>
|
13
|
-
<!-- Page Bradcrumbs -->
|
14
|
-
|
15
|
-
<!-- Page Header -->
|
16
|
-
<h2 class="page-header"><%= yield(:phc_title) %></h2>
|
17
|
-
<!-- Page Header -->
|
18
|
-
|
19
|
-
<!-- Page Content -->
|
20
|
-
<div class="row">
|
21
|
-
<div class="col-lg-12">
|
22
|
-
|
23
|
-
<!-- Panel -->
|
24
|
-
<div class="panel panel-inverse">
|
25
|
-
|
26
|
-
<!-- Panel - Heading -->
|
27
|
-
<div class="panel-heading">
|
28
|
-
<h4 class="panel-title"><%= yield(:phc_title) %></h4>
|
29
|
-
</div>
|
30
|
-
<!-- Panel - Heading -->
|
31
|
-
|
32
|
-
<!-- Panel - Body -->
|
33
|
-
<div class="panel-body">
|
34
|
-
|
35
|
-
<!-- Edit Form -->
|
36
|
-
<%= render 'form', marketing_optimization: @marketing_optimization %>
|
37
|
-
<!-- Edit Form -->
|
38
|
-
|
39
|
-
</div>
|
40
|
-
<!-- Panel - Body -->
|
41
|
-
|
42
|
-
</div>
|
43
|
-
<!-- Panel -->
|
44
|
-
|
45
|
-
</div>
|
46
|
-
</div>
|
47
|
-
<!-- Page Content -->
|
1
|
+
<!-- PHCTitleSEO Title Variables -->
|
2
|
+
<% phc_title "Marketing Manager" %>
|
3
|
+
<% phc_title_tagline "Update SEO Data" %>
|
4
|
+
<% phc_breadcrumb_one yield(:phc_title_tagline) %>
|
5
|
+
<% phc_breadcrumb_two link_to "SEO Data Index", phcdevworks_core_modules.marketing_optimizations_path %>
|
6
|
+
<!-- PHCTitleSEO Title Variables -->
|
7
|
+
|
8
|
+
<!-- Page Bradcrumbs -->
|
9
|
+
<ol class="breadcrumb pull-right">
|
10
|
+
<li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
|
11
|
+
<li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_two) %></li>
|
12
|
+
</ol>
|
13
|
+
<!-- Page Bradcrumbs -->
|
14
|
+
|
15
|
+
<!-- Page Header -->
|
16
|
+
<h2 class="page-header"><%= yield(:phc_title) %></h2>
|
17
|
+
<!-- Page Header -->
|
18
|
+
|
19
|
+
<!-- Page Content -->
|
20
|
+
<div class="row">
|
21
|
+
<div class="col-lg-12">
|
22
|
+
|
23
|
+
<!-- Panel -->
|
24
|
+
<div class="panel panel-inverse">
|
25
|
+
|
26
|
+
<!-- Panel - Heading -->
|
27
|
+
<div class="panel-heading">
|
28
|
+
<h4 class="panel-title"><%= yield(:phc_title) %></h4>
|
29
|
+
</div>
|
30
|
+
<!-- Panel - Heading -->
|
31
|
+
|
32
|
+
<!-- Panel - Body -->
|
33
|
+
<div class="panel-body">
|
34
|
+
|
35
|
+
<!-- Edit Form -->
|
36
|
+
<%= render 'form', marketing_optimization: @marketing_optimization %>
|
37
|
+
<!-- Edit Form -->
|
38
|
+
|
39
|
+
</div>
|
40
|
+
<!-- Panel - Body -->
|
41
|
+
|
42
|
+
</div>
|
43
|
+
<!-- Panel -->
|
44
|
+
|
45
|
+
</div>
|
46
|
+
</div>
|
47
|
+
<!-- Page Content -->
|