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,131 +1,131 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
|
5
|
-
<!-- SEO System -->
|
6
|
-
<% phc_seo_title "PHCDevworks Core Modules" %>
|
7
|
-
<% phc_seo_description "Ruby on Rails 6 core plugin for PHCDevworks plugins with common modules to handle functions universally handle common functions." %>
|
8
|
-
<!-- SEO System -->
|
9
|
-
|
10
|
-
<!-- SEO and Site Description -->
|
11
|
-
<meta charset="utf-8">
|
12
|
-
<title><%= yield(:phc_seo_title) %></title>
|
13
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
14
|
-
<meta name="description" content="<%= yield(:phc_seo_description) %>">
|
15
|
-
<!-- SEO and Site Description -->
|
16
|
-
|
17
|
-
<!-- Rails Security Tags -->
|
18
|
-
<%= csrf_meta_tags %>
|
19
|
-
<%= csp_meta_tag %>
|
20
|
-
<!-- Rails Security Tags -->
|
21
|
-
|
22
|
-
<!-- CSS Styles -->
|
23
|
-
<%= stylesheet_link_tag "phcthemes_admin_panel_pack_coloradmin", media: "all" %>
|
24
|
-
<!-- CSS Styles -->
|
25
|
-
|
26
|
-
<!-- JavaScript -->
|
27
|
-
<%= javascript_include_tag "phcthemes_admin_panel_pack_coloradmin" %>
|
28
|
-
<!-- JavaScript -->
|
29
|
-
|
30
|
-
</head>
|
31
|
-
<body>
|
32
|
-
|
33
|
-
<!-- Page Container -->
|
34
|
-
<div id="page-container" class="fade page-sidebar-fixed page-header-fixed">
|
35
|
-
|
36
|
-
<!-- Page Header -->
|
37
|
-
<div id="header" class="header navbar-default">
|
38
|
-
<%= render "layouts/phcdevworks_core_modules/components/backend/navigation/top_menu" %>
|
39
|
-
</div>
|
40
|
-
<!-- Page Header -->
|
41
|
-
|
42
|
-
<!-- Page Sidebar -->
|
43
|
-
<div id="sidebar" class="sidebar">
|
44
|
-
<%= render "layouts/phcdevworks_core_modules/components/backend/sidebars/side_menu" %>
|
45
|
-
</div>
|
46
|
-
<div class="sidebar-bg"></div>
|
47
|
-
<!-- Page Sidebar -->
|
48
|
-
|
49
|
-
<!-- Page Content -->
|
50
|
-
<div id="content" class="content">
|
51
|
-
<%= render "phcdevworks_notifications/bootstrap/notifications" %>
|
52
|
-
<%= yield %>
|
53
|
-
</div>
|
54
|
-
<!-- Page Content -->
|
55
|
-
|
56
|
-
<!-- Footer Content -->
|
57
|
-
<div id="footer" class="footer mb-4">
|
58
|
-
<%= render "layouts/phcdevworks_core_modules/components/backend/footer/footer" %>
|
59
|
-
</div>
|
60
|
-
<!-- Footer Content -->
|
61
|
-
|
62
|
-
</div>
|
63
|
-
<!-- Page Container -->
|
64
|
-
|
65
|
-
<!-- JavaScript CKEditor -->
|
66
|
-
<script>ClassicEditor
|
67
|
-
.create( document.querySelector( '.editor' ), {
|
68
|
-
toolbar: {
|
69
|
-
items: [
|
70
|
-
'heading',
|
71
|
-
'|',
|
72
|
-
'fontBackgroundColor',
|
73
|
-
'fontColor',
|
74
|
-
'horizontalLine',
|
75
|
-
'fontSize',
|
76
|
-
'fontFamily',
|
77
|
-
'highlight',
|
78
|
-
'|',
|
79
|
-
'bold',
|
80
|
-
'underline',
|
81
|
-
'italic',
|
82
|
-
'strikethrough',
|
83
|
-
'link',
|
84
|
-
'removeFormat',
|
85
|
-
'|',
|
86
|
-
'alignment',
|
87
|
-
'indent',
|
88
|
-
'outdent',
|
89
|
-
'|',
|
90
|
-
'blockQuote',
|
91
|
-
'insertTable',
|
92
|
-
'undo',
|
93
|
-
'redo',
|
94
|
-
'|',
|
95
|
-
'subscript',
|
96
|
-
'superscript',
|
97
|
-
'|',
|
98
|
-
'codeBlock',
|
99
|
-
'code',
|
100
|
-
'|',
|
101
|
-
'MathType',
|
102
|
-
'ChemType',
|
103
|
-
'specialCharacters'
|
104
|
-
]
|
105
|
-
},
|
106
|
-
language: 'en',
|
107
|
-
table: {
|
108
|
-
contentToolbar: [
|
109
|
-
'tableColumn',
|
110
|
-
'tableRow',
|
111
|
-
'mergeTableCells',
|
112
|
-
'tableCellProperties',
|
113
|
-
'tableProperties'
|
114
|
-
]
|
115
|
-
},
|
116
|
-
licenseKey: '',
|
117
|
-
} )
|
118
|
-
.then( editor => {
|
119
|
-
window.editor = editor;
|
120
|
-
} )
|
121
|
-
.catch( error => {
|
122
|
-
console.error( 'Oops, something gone wrong!' );
|
123
|
-
console.error( 'Please, report the following error in the https://github.com/ckeditor/ckeditor5 with the build id and the error stack trace:' );
|
124
|
-
console.warn( 'Build id: ulhl6ym1zxhr-qh8kt6relt0l' );
|
125
|
-
console.error( error );
|
126
|
-
} );
|
127
|
-
</script>
|
128
|
-
<!-- JavaScript CKEditor -->
|
129
|
-
|
130
|
-
</body>
|
131
|
-
</html>
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
|
5
|
+
<!-- SEO System -->
|
6
|
+
<% phc_seo_title "PHCDevworks Core Modules" %>
|
7
|
+
<% phc_seo_description "Ruby on Rails 6 core plugin for PHCDevworks plugins with common modules to handle functions universally handle common functions." %>
|
8
|
+
<!-- SEO System -->
|
9
|
+
|
10
|
+
<!-- SEO and Site Description -->
|
11
|
+
<meta charset="utf-8">
|
12
|
+
<title><%= yield(:phc_seo_title) %></title>
|
13
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
14
|
+
<meta name="description" content="<%= yield(:phc_seo_description) %>">
|
15
|
+
<!-- SEO and Site Description -->
|
16
|
+
|
17
|
+
<!-- Rails Security Tags -->
|
18
|
+
<%= csrf_meta_tags %>
|
19
|
+
<%= csp_meta_tag %>
|
20
|
+
<!-- Rails Security Tags -->
|
21
|
+
|
22
|
+
<!-- CSS Styles -->
|
23
|
+
<%= stylesheet_link_tag "phcthemes_admin_panel_pack_coloradmin", media: "all" %>
|
24
|
+
<!-- CSS Styles -->
|
25
|
+
|
26
|
+
<!-- JavaScript -->
|
27
|
+
<%= javascript_include_tag "phcthemes_admin_panel_pack_coloradmin" %>
|
28
|
+
<!-- JavaScript -->
|
29
|
+
|
30
|
+
</head>
|
31
|
+
<body>
|
32
|
+
|
33
|
+
<!-- Page Container -->
|
34
|
+
<div id="page-container" class="fade page-sidebar-fixed page-header-fixed">
|
35
|
+
|
36
|
+
<!-- Page Header -->
|
37
|
+
<div id="header" class="header navbar-default">
|
38
|
+
<%= render "layouts/phcdevworks_core_modules/components/backend/navigation/top_menu" %>
|
39
|
+
</div>
|
40
|
+
<!-- Page Header -->
|
41
|
+
|
42
|
+
<!-- Page Sidebar -->
|
43
|
+
<div id="sidebar" class="sidebar">
|
44
|
+
<%= render "layouts/phcdevworks_core_modules/components/backend/sidebars/side_menu" %>
|
45
|
+
</div>
|
46
|
+
<div class="sidebar-bg"></div>
|
47
|
+
<!-- Page Sidebar -->
|
48
|
+
|
49
|
+
<!-- Page Content -->
|
50
|
+
<div id="content" class="content">
|
51
|
+
<%= render "phcdevworks_notifications/bootstrap/notifications" %>
|
52
|
+
<%= yield %>
|
53
|
+
</div>
|
54
|
+
<!-- Page Content -->
|
55
|
+
|
56
|
+
<!-- Footer Content -->
|
57
|
+
<div id="footer" class="footer mb-4">
|
58
|
+
<%= render "layouts/phcdevworks_core_modules/components/backend/footer/footer" %>
|
59
|
+
</div>
|
60
|
+
<!-- Footer Content -->
|
61
|
+
|
62
|
+
</div>
|
63
|
+
<!-- Page Container -->
|
64
|
+
|
65
|
+
<!-- JavaScript CKEditor -->
|
66
|
+
<script>ClassicEditor
|
67
|
+
.create( document.querySelector( '.editor' ), {
|
68
|
+
toolbar: {
|
69
|
+
items: [
|
70
|
+
'heading',
|
71
|
+
'|',
|
72
|
+
'fontBackgroundColor',
|
73
|
+
'fontColor',
|
74
|
+
'horizontalLine',
|
75
|
+
'fontSize',
|
76
|
+
'fontFamily',
|
77
|
+
'highlight',
|
78
|
+
'|',
|
79
|
+
'bold',
|
80
|
+
'underline',
|
81
|
+
'italic',
|
82
|
+
'strikethrough',
|
83
|
+
'link',
|
84
|
+
'removeFormat',
|
85
|
+
'|',
|
86
|
+
'alignment',
|
87
|
+
'indent',
|
88
|
+
'outdent',
|
89
|
+
'|',
|
90
|
+
'blockQuote',
|
91
|
+
'insertTable',
|
92
|
+
'undo',
|
93
|
+
'redo',
|
94
|
+
'|',
|
95
|
+
'subscript',
|
96
|
+
'superscript',
|
97
|
+
'|',
|
98
|
+
'codeBlock',
|
99
|
+
'code',
|
100
|
+
'|',
|
101
|
+
'MathType',
|
102
|
+
'ChemType',
|
103
|
+
'specialCharacters'
|
104
|
+
]
|
105
|
+
},
|
106
|
+
language: 'en',
|
107
|
+
table: {
|
108
|
+
contentToolbar: [
|
109
|
+
'tableColumn',
|
110
|
+
'tableRow',
|
111
|
+
'mergeTableCells',
|
112
|
+
'tableCellProperties',
|
113
|
+
'tableProperties'
|
114
|
+
]
|
115
|
+
},
|
116
|
+
licenseKey: '',
|
117
|
+
} )
|
118
|
+
.then( editor => {
|
119
|
+
window.editor = editor;
|
120
|
+
} )
|
121
|
+
.catch( error => {
|
122
|
+
console.error( 'Oops, something gone wrong!' );
|
123
|
+
console.error( 'Please, report the following error in the https://github.com/ckeditor/ckeditor5 with the build id and the error stack trace:' );
|
124
|
+
console.warn( 'Build id: ulhl6ym1zxhr-qh8kt6relt0l' );
|
125
|
+
console.error( error );
|
126
|
+
} );
|
127
|
+
</script>
|
128
|
+
<!-- JavaScript CKEditor -->
|
129
|
+
|
130
|
+
</body>
|
131
|
+
</html>
|
File without changes
|
data/app/views/layouts/phcdevworks_core_modules/components/backend/navigation/_top_menu.html.erb
CHANGED
File without changes
|
data/app/views/layouts/phcdevworks_core_modules/components/backend/sidebars/_side_menu.html.erb
CHANGED
@@ -277,14 +277,49 @@
|
|
277
277
|
<!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks Core Modules -->
|
278
278
|
<% end %>
|
279
279
|
|
280
|
-
|
281
|
-
|
280
|
+
<% if current_user and current_user.admin? %>
|
281
|
+
<li class="nav-header">Administration</li>
|
282
|
+
<% if defined?phcdevworks_accounts_stripe and current_user.admin? %>
|
283
|
+
<!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks Accounts Stripe -->
|
284
|
+
<li class="has-sub">
|
285
|
+
<a href="javascript:;">
|
286
|
+
<b class="caret"></b>
|
287
|
+
<i class="fab fa-cc-visa"></i>
|
288
|
+
<span>Accounting</span>
|
289
|
+
</a>
|
290
|
+
<ul class="sub-menu">
|
291
|
+
<li class="<%= phc_menu_active_controller("phcdevworks_accounts_stripe/admin/subscriptions#admin_subscription_list") %>"><%= link_to("Invoices", phcdevworks_accounts_stripe.admin_invoices_path) %></li>
|
292
|
+
<li class="<%= phc_menu_active_controller("phcdevworks_accounts_stripe/admin/subscriptions#admin_subscription_list") %>"><%= link_to("Subscriptions", phcdevworks_accounts_stripe.admin_subscriptions_path) %></li>
|
293
|
+
</ul>
|
294
|
+
</li>
|
295
|
+
<li class="has-sub">
|
296
|
+
<a href="javascript:;">
|
297
|
+
<b class="caret"></b>
|
298
|
+
<i class="fad fa-money-check-alt"></i>
|
299
|
+
<span>Services</span>
|
300
|
+
</a>
|
301
|
+
<ul class="sub-menu">
|
302
|
+
<li class="<%= phc_menu_active_controller("phcdevworks_accounts_stripe/admin/products#admin_products_list") %>"><%= link_to("Product List", phcdevworks_accounts_stripe.admin_products_path) %></li>
|
303
|
+
</ul>
|
304
|
+
</li>
|
305
|
+
<li class="has-sub">
|
306
|
+
<a href="javascript:;">
|
307
|
+
<b class="caret"></b>
|
308
|
+
<i class="fad fa-users"></i>
|
309
|
+
<span>Customers</span>
|
310
|
+
</a>
|
311
|
+
<ul class="sub-menu">
|
312
|
+
<li class="<%= phc_menu_active_controller("phcdevworks_accounts_stripe/admin/customers#admin_customer_list") %>"><%= link_to("Customer List", phcdevworks_accounts_stripe.admin_customers_path) %></li>
|
313
|
+
</ul>
|
314
|
+
</li>
|
315
|
+
<!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks Accounts Stripe -->
|
316
|
+
<% end %>
|
282
317
|
<!-- -PHC- Sidebar - Sidebar Navigation - PHCAccounts Admin Options -->
|
283
318
|
<li class="has-sub">
|
284
319
|
<a href="javascript:;">
|
285
320
|
<b class="caret"></b>
|
286
|
-
<i class="fad fa-user"></i>
|
287
|
-
<span>User
|
321
|
+
<i class="fad fa-user-lock"></i>
|
322
|
+
<span>User Logins</span>
|
288
323
|
</a>
|
289
324
|
<ul class="sub-menu">
|
290
325
|
<li class="<%= phc_menu_active_controller("phcdevworks_accounts/admin/users") %>"><%= link_to "User List", phcdevworks_accounts.admin_users_all_path %></li>
|
@@ -294,13 +329,40 @@
|
|
294
329
|
<% end %>
|
295
330
|
|
296
331
|
<li class="nav-header">Your Account</li>
|
332
|
+
<% if defined?phcdevworks_accounts_stripe and current_user %>
|
333
|
+
<!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks Accounts Stripe -->
|
334
|
+
<li class="has-sub">
|
335
|
+
<a href="javascript:;">
|
336
|
+
<b class="caret"></b>
|
337
|
+
<i class="fad fa-money-check-alt"></i>
|
338
|
+
<span>Your Subscription</span>
|
339
|
+
</a>
|
340
|
+
<ul class="sub-menu">
|
341
|
+
<li class="<%= phc_menu_active_controller("phcdevworks_accounts_stripe/admin/subscriptions#admin_subscription_list") %>"><%= link_to("Your Subscription", phcdevworks_accounts_stripe.user_subscription_path) %></li>
|
342
|
+
<li class="<%= phc_menu_active_controller("phcdevworks_accounts_stripe/admin/products#admin_product_list") %>"><%= link_to("Switch Subscriptions", phcdevworks_accounts_stripe.user_subscription_path) %></li>
|
343
|
+
</ul>
|
344
|
+
</li>
|
345
|
+
<li class="has-sub">
|
346
|
+
<a href="javascript:;">
|
347
|
+
<b class="caret"></b>
|
348
|
+
<i class="fad fa-file-invoice"></i>
|
349
|
+
<span>Your Invoices</span>
|
350
|
+
</a>
|
351
|
+
<ul class="sub-menu">
|
352
|
+
<li class="<%= phc_menu_active_controller("phcdevworks_accounts_stripe/user/invoices#admin_customer_list") %>"><%= link_to("Current Invoice", phcdevworks_accounts_stripe.user_invoices_path) %></li>
|
353
|
+
<li class="<%= phc_menu_active_controller("phcdevworks_accounts_stripe/user/invoices#admin_customer_list") %>"><%= link_to("Past Invoices", phcdevworks_accounts_stripe.admin_customers_path) %></li>
|
354
|
+
</ul>
|
355
|
+
</li>
|
356
|
+
<!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks Accounts Stripe -->
|
357
|
+
<% end %>
|
358
|
+
|
297
359
|
<% if current_user %>
|
298
360
|
<!-- -PHC- Sidebar - Sidebar Navigation - PHCAccounts User Options -->
|
299
361
|
<li class="has-sub">
|
300
362
|
<a href="javascript:;">
|
301
363
|
<b class="caret"></b>
|
302
364
|
<i class="fad fa-user"></i>
|
303
|
-
<span>
|
365
|
+
<span>Login Settings</span>
|
304
366
|
</a>
|
305
367
|
<ul class="sub-menu">
|
306
368
|
<li class="<%= phc_menu_active_controller("phcdevworks_accounts/user/edit") %>"><%= link_to "Settings", phcdevworks_accounts.edit_user_registration_path %></li>
|
@@ -1,27 +1,27 @@
|
|
1
|
-
<%= form_with(model: affiliate_link) do |form| %>
|
2
|
-
|
3
|
-
<div class="form-group">
|
4
|
-
<%= form.label :affiliate_link_name, "Link Name" %>
|
5
|
-
<%= form.text_field :affiliate_link_name, class: "form-control" %>
|
6
|
-
</div>
|
7
|
-
|
8
|
-
<div class="form-group">
|
9
|
-
<%= form.label :affiliate_link_button_text, "Button Text" %>
|
10
|
-
<%= form.text_field :affiliate_link_button_text, class: "form-control" %>
|
11
|
-
</div>
|
12
|
-
|
13
|
-
<div class="form-group">
|
14
|
-
<%= form.label :affiliate_link_url, "Affiliate Link" %>
|
15
|
-
<%= form.text_field :affiliate_link_url, class: "form-control" %>
|
16
|
-
</div>
|
17
|
-
|
18
|
-
<div class="form-group">
|
19
|
-
<%= form.label :affiliate_link_original_url, "Original URL" %>
|
20
|
-
<%= form.text_field :affiliate_link_original_url, class: "form-control" %>
|
21
|
-
</div>
|
22
|
-
|
23
|
-
<div class="actions">
|
24
|
-
<%= form.submit class: "btn btn-primary" %>
|
25
|
-
</div>
|
26
|
-
|
27
|
-
<% end %>
|
1
|
+
<%= form_with(model: affiliate_link) do |form| %>
|
2
|
+
|
3
|
+
<div class="form-group">
|
4
|
+
<%= form.label :affiliate_link_name, "Link Name" %>
|
5
|
+
<%= form.text_field :affiliate_link_name, class: "form-control" %>
|
6
|
+
</div>
|
7
|
+
|
8
|
+
<div class="form-group">
|
9
|
+
<%= form.label :affiliate_link_button_text, "Button Text" %>
|
10
|
+
<%= form.text_field :affiliate_link_button_text, class: "form-control" %>
|
11
|
+
</div>
|
12
|
+
|
13
|
+
<div class="form-group">
|
14
|
+
<%= form.label :affiliate_link_url, "Affiliate Link" %>
|
15
|
+
<%= form.text_field :affiliate_link_url, class: "form-control" %>
|
16
|
+
</div>
|
17
|
+
|
18
|
+
<div class="form-group">
|
19
|
+
<%= form.label :affiliate_link_original_url, "Original URL" %>
|
20
|
+
<%= form.text_field :affiliate_link_original_url, class: "form-control" %>
|
21
|
+
</div>
|
22
|
+
|
23
|
+
<div class="actions">
|
24
|
+
<%= form.submit class: "btn btn-primary" %>
|
25
|
+
</div>
|
26
|
+
|
27
|
+
<% end %>
|
@@ -1,47 +1,47 @@
|
|
1
|
-
<!-- PHCTitleSEO Title Variables -->
|
2
|
-
<% phc_title "Affiliate Manager" %>
|
3
|
-
<% phc_title_tagline "Update 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 "Update 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 -->
|