phcscriptcdnpro 72.2.0 → 73.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/phcscriptcdnpro/application_controller.rb +10 -5
- data/app/controllers/phcscriptcdnpro/script/authors_controller.rb +3 -8
- data/app/controllers/phcscriptcdnpro/script/extensions_controller.rb +3 -8
- data/app/controllers/phcscriptcdnpro/script/licences_controller.rb +2 -7
- data/app/controllers/phcscriptcdnpro/script/listings_controller.rb +5 -10
- data/app/controllers/phcscriptcdnpro/script/urls_controller.rb +2 -7
- data/app/controllers/phcscriptcdnpro/script/versions_controller.rb +2 -3
- data/app/helpers/phcscriptcdnpro/application_helper.rb +0 -10
- data/app/models/phcscriptcdnpro/script/author.rb +1 -1
- data/app/models/phcscriptcdnpro/script/extension.rb +4 -4
- data/app/models/phcscriptcdnpro/script/licence.rb +3 -3
- data/app/models/phcscriptcdnpro/script/listing.rb +19 -2
- data/app/models/phcscriptcdnpro/script/url.rb +5 -5
- data/app/models/phcscriptcdnpro/script/version.rb +3 -3
- data/app/views/layouts/phcscriptcdnpro/application.html.erb +21 -22
- data/app/views/layouts/phcscriptcdnpro/components/backend/footer/_footer.html.erb +9 -1
- data/app/views/layouts/phcscriptcdnpro/components/backend/navigation/_top_menu.html.erb +0 -1
- data/app/views/layouts/phcscriptcdnpro/components/backend/sidebars/_side_menu.html.erb +44 -16
- data/app/views/phcscriptcdnpro/script/authors/_form.html.erb +13 -17
- data/app/views/phcscriptcdnpro/script/authors/edit.html.erb +18 -7
- data/app/views/phcscriptcdnpro/script/authors/index.html.erb +25 -11
- data/app/views/phcscriptcdnpro/script/authors/new.html.erb +18 -8
- data/app/views/phcscriptcdnpro/script/authors/show.html.erb +35 -42
- data/app/views/phcscriptcdnpro/script/extensions/_form.html.erb +11 -11
- data/app/views/phcscriptcdnpro/script/extensions/edit.html.erb +15 -2
- data/app/views/phcscriptcdnpro/script/extensions/index.html.erb +19 -4
- data/app/views/phcscriptcdnpro/script/extensions/new.html.erb +15 -2
- data/app/views/phcscriptcdnpro/script/extensions/show.html.erb +34 -41
- data/app/views/phcscriptcdnpro/script/licences/_form.html.erb +21 -21
- data/app/views/phcscriptcdnpro/script/licences/edit.html.erb +15 -2
- data/app/views/phcscriptcdnpro/script/licences/index.html.erb +24 -9
- data/app/views/phcscriptcdnpro/script/licences/new.html.erb +15 -2
- data/app/views/phcscriptcdnpro/script/licences/show.html.erb +34 -41
- data/app/views/phcscriptcdnpro/script/listings/_form.html.erb +26 -33
- data/app/views/phcscriptcdnpro/script/listings/edit.html.erb +13 -5
- data/app/views/phcscriptcdnpro/script/listings/index.html.erb +23 -10
- data/app/views/phcscriptcdnpro/script/listings/new.html.erb +14 -5
- data/app/views/phcscriptcdnpro/script/listings/show.html.erb +31 -40
- data/app/views/phcscriptcdnpro/script/urls/_form.html.erb +10 -10
- data/app/views/phcscriptcdnpro/script/urls/index.html.erb +20 -5
- data/app/views/phcscriptcdnpro/script/urls/new.html.erb +15 -2
- data/app/views/phcscriptcdnpro/script/urls/show.html.erb +34 -41
- data/app/views/phcscriptcdnpro/script/versions/_form.html.erb +4 -4
- data/app/views/phcscriptcdnpro/script/versions/edit.html.erb +15 -2
- data/app/views/phcscriptcdnpro/script/versions/index.html.erb +18 -3
- data/app/views/phcscriptcdnpro/script/versions/new.html.erb +15 -2
- data/app/views/phcscriptcdnpro/script/versions/show.html.erb +34 -43
- data/config/routes.rb +2 -2
- data/db/migrate/20160821183652_create_phcscriptcdnpro_script_listings.rb +10 -12
- data/db/migrate/20160821183714_create_phcscriptcdnpro_script_authors.rb +4 -5
- data/db/migrate/20160821183735_create_phcscriptcdnpro_script_extensions.rb +3 -3
- data/db/migrate/20160821183805_create_phcscriptcdnpro_script_licences.rb +9 -10
- data/db/migrate/20160821183830_create_phcscriptcdnpro_script_urls.rb +7 -7
- data/db/migrate/20160821183946_create_phcscriptcdnpro_script_versions.rb +1 -1
- data/lib/phcscriptcdnpro/version.rb +1 -1
- metadata +61 -103
@@ -2,25 +2,27 @@
|
|
2
2
|
<html>
|
3
3
|
<head>
|
4
4
|
|
5
|
-
|
6
|
-
<%
|
5
|
+
<!-- SEO System -->
|
6
|
+
<% phc_seo_title "PHCScriptCDN by PHCDevworks" %>
|
7
|
+
<% phc_seo_description "Application to manage CDN Script Listings." %>
|
8
|
+
<!-- SEO System -->
|
7
9
|
|
8
|
-
<!--
|
9
|
-
<meta name="viewport" content="width=device-width, initial-scale=1
|
10
|
+
<!-- SEO and Site Description -->
|
11
|
+
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
10
12
|
<title><%= yield(:phc_seo_title) %></title>
|
11
13
|
<meta name="description" content="<%= yield(:phc_seo_description) %>">
|
12
14
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" >
|
13
|
-
<link rel="canonical" href="http://
|
14
|
-
<!--
|
15
|
-
|
16
|
-
<!--
|
15
|
+
<link rel="canonical" href="http://phcdevworks.com">
|
16
|
+
<!-- SEO and Site Description -->
|
17
|
+
|
18
|
+
<!-- Rails Security Tags -->
|
17
19
|
<%= csrf_meta_tags %>
|
18
20
|
<%= csp_meta_tag %>
|
19
|
-
<!--
|
20
|
-
|
21
|
-
<!--
|
21
|
+
<!-- Rails Security Tags -->
|
22
|
+
|
23
|
+
<!-- CSS Styles -->
|
22
24
|
<%= stylesheet_link_tag 'phcscriptcdnpro/application', media: 'all', 'data-turbolinks-track': 'reload' %>
|
23
|
-
<!--
|
25
|
+
<!-- CSS Styles -->
|
24
26
|
|
25
27
|
<!-- Font -->
|
26
28
|
<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Open+Sans:300,400%7CRaleway:300,400,500,600,700%7CLato:300,400,400italic,600,700"/>
|
@@ -31,6 +33,7 @@
|
|
31
33
|
|
32
34
|
<!-- Page Container -->
|
33
35
|
<div id="page-container" class="page-container fade page-sidebar-fixed page-header-fixed">
|
36
|
+
|
34
37
|
<!-- Page Header -->
|
35
38
|
<div id="header" class="header navbar-default">
|
36
39
|
<%= render 'layouts/phcscriptcdnpro/components/backend/navigation/top_menu' %>
|
@@ -51,29 +54,25 @@
|
|
51
54
|
<!-- Page Content -->
|
52
55
|
|
53
56
|
<!-- Footer Content -->
|
54
|
-
<div id="footer" class="footer">
|
57
|
+
<div id="footer" class="footer mb-4">
|
55
58
|
<%= render 'layouts/phcscriptcdnpro/components/backend/footer/footer' %>
|
56
59
|
</div>
|
57
60
|
<!-- Footer Content -->
|
58
61
|
|
59
|
-
<!-- Scroll to Top -->
|
60
|
-
<a href="javascript:;" class="btn btn-icon btn-circle btn-success btn-scroll-to-top fade" data-click="scroll-top">
|
61
|
-
<i class="fa fa-angle-up"></i>
|
62
|
-
</a>
|
63
|
-
<!-- Scroll to Top -->
|
64
|
-
|
65
62
|
</div>
|
66
63
|
<!-- Page Container -->
|
67
64
|
|
68
|
-
<!--
|
65
|
+
<!-- JavaScript -->
|
69
66
|
<%= javascript_include_tag "phcscriptcdnpro/application", 'data-turbolinks-track': 'reload' %>
|
70
|
-
|
67
|
+
<!-- JavaScript -->
|
68
|
+
|
69
|
+
<!-- JavaScript Loader -->
|
71
70
|
<script>
|
72
71
|
$(document).ready(function() {
|
73
72
|
App.init();
|
74
73
|
});
|
75
74
|
</script>
|
76
|
-
<!--
|
75
|
+
<!-- JavaScript Loader -->
|
77
76
|
|
78
77
|
</body>
|
79
78
|
</html>
|
@@ -1 +1,9 @@
|
|
1
|
-
<span class="float-left"
|
1
|
+
<span class="float-left">
|
2
|
+
© 2012-<%= Time.now.year %> -
|
3
|
+
<strong>PHC</strong>Press(Pro) -
|
4
|
+
Engine v<%= Gem.loaded_specs["phcscriptcdnpro"].version.to_s %>
|
5
|
+
</span>
|
6
|
+
<span class="float-right">
|
7
|
+
Developed with <i class="fas fa-heart hanna_hearts"></i> by
|
8
|
+
<a class="phcnet_copyright" href="https://phcdevworks.com/"><strong>PHC</strong>Devworks</a>
|
9
|
+
</span>
|
@@ -1,7 +1,6 @@
|
|
1
1
|
<!-- Topbar - Navigation Header -->
|
2
2
|
<div class="navbar-header">
|
3
3
|
<%= link_to phcscriptcdnpro.script_listings_path, class: "navbar-brand" do %>
|
4
|
-
<!--<span class="navbar-logo"></span>-->
|
5
4
|
<strong>PHC</strong>ScriptCDN(Pro)
|
6
5
|
<% end %>
|
7
6
|
<button type="button" class="navbar-toggle" data-click="sidebar-toggled">
|
@@ -47,8 +47,8 @@
|
|
47
47
|
<span>Article Posts</span>
|
48
48
|
</a>
|
49
49
|
<ul class="sub-menu">
|
50
|
-
<li class="<%=
|
51
|
-
<li class="<%=
|
50
|
+
<li class="<%= phc_menus_active_controller('phcpresspro/article/posts') %>"><%= link_to 'Article Index', phcpresspro.article_posts_path %></li>
|
51
|
+
<li class="<%= phc_menus_active_controller('phcpresspro/article/posts#new') %>"><%= link_to 'New Aritcle', phcpresspro.new_article_post_path %></li>
|
52
52
|
</ul>
|
53
53
|
</li>
|
54
54
|
<li class="has-sub">
|
@@ -58,8 +58,8 @@
|
|
58
58
|
<span>Article Categories</span>
|
59
59
|
</a>
|
60
60
|
<ul class="sub-menu">
|
61
|
-
<li class="<%=
|
62
|
-
<li class="<%=
|
61
|
+
<li class="<%= phc_menus_active_controller('phcpresspro/article/categories') %>"><%= link_to 'Category Index', phcpresspro.article_categories_path %></li>
|
62
|
+
<li class="<%= phc_menus_active_controller('phcpresspro/article/categories#new') %>"><%= link_to 'New Category', phcpresspro.new_article_category_path %></li>
|
63
63
|
</ul>
|
64
64
|
</li>
|
65
65
|
<!-- Sidebar - Sidebar Navigation - PHCPress(Pro) -->
|
@@ -75,8 +75,8 @@
|
|
75
75
|
<span>Member's Data</span>
|
76
76
|
</a>
|
77
77
|
<ul class="sub-menu">
|
78
|
-
<li class="<%=
|
79
|
-
<li class="<%=
|
78
|
+
<li class="<%= phc_menus_active_controller('phcmemberspro/member/profiles') %>"><%= link_to 'Profile Index', phcmemberspro.member_profiles_path %></li>
|
79
|
+
<li class="<%= phc_menus_active_controller('phcmemberspro/member/profiles#new') %>"><%= link_to 'New Member Profile', phcmemberspro.new_member_profile_path %></li>
|
80
80
|
</ul>
|
81
81
|
</li>
|
82
82
|
<li class="has-sub">
|
@@ -86,8 +86,36 @@
|
|
86
86
|
<span>Member's Directory</span>
|
87
87
|
</a>
|
88
88
|
<ul class="sub-menu">
|
89
|
-
<li class="<%=
|
90
|
-
<li class="<%=
|
89
|
+
<li class="<%= phc_menus_active_controller('phcmemberspro/directory/categories') %>"><%= link_to 'Directory Index', phcmemberspro.directory_categories_path %></li>
|
90
|
+
<li class="<%= phc_menus_active_controller('phcmemberspro/directory/categories#new') %>"><%= link_to 'New Directory Listing', phcmemberspro.new_directory_category_path %></li>
|
91
|
+
</ul>
|
92
|
+
</li>
|
93
|
+
<!-- Sidebar - Sidebar Navigation - PHCPress(Pro) -->
|
94
|
+
<% end %>
|
95
|
+
|
96
|
+
<% if defined?phcreallistingspro %>
|
97
|
+
<!-- Sidebar - Sidebar Navigation - PHCPress(Pro) -->
|
98
|
+
<li class="nav-header">Listing Management</li>
|
99
|
+
<li class="has-sub">
|
100
|
+
<a href="javascript:;">
|
101
|
+
<b class="caret"></b>
|
102
|
+
<i class="fas fa-store-alt"></i>
|
103
|
+
<span>Property Listings</span>
|
104
|
+
</a>
|
105
|
+
<ul class="sub-menu">
|
106
|
+
<li class="<%= phc_menus_active_controller('phcreallistingspro/property/listings') %>"><%= link_to 'Listing Index', phcreallistingspro.property_listings_path %></li>
|
107
|
+
<li class="<%= phc_menus_active_controller('phcreallistingspro/property/listings#new') %>"><%= link_to 'New Listing', phcreallistingspro.new_property_listing_path %></li>
|
108
|
+
</ul>
|
109
|
+
</li>
|
110
|
+
<li class="has-sub">
|
111
|
+
<a href="javascript:;">
|
112
|
+
<b class="caret"></b>
|
113
|
+
<i class="fas fa-list-alt"></i>
|
114
|
+
<span>Listing Features</span>
|
115
|
+
</a>
|
116
|
+
<ul class="sub-menu">
|
117
|
+
<li class="<%= phc_menus_active_controller('phcreallistingspro/property/listings') %>"><%= link_to 'Features Index', phcreallistingspro.property_features_path %></li>
|
118
|
+
<li class="<%= phc_menus_active_controller('phcreallistingspro/property/listings#new') %>"><%= link_to 'New Features', phcreallistingspro.new_property_feature_path %></li>
|
91
119
|
</ul>
|
92
120
|
</li>
|
93
121
|
<!-- Sidebar - Sidebar Navigation - PHCPress(Pro) -->
|
@@ -103,8 +131,8 @@
|
|
103
131
|
<span>Script Posts</span>
|
104
132
|
</a>
|
105
133
|
<ul class="sub-menu">
|
106
|
-
<li class="<%=
|
107
|
-
<li class="<%=
|
134
|
+
<li class="<%= phc_menus_active_controller('phcscriptcdnpro/script/listings') %>"><%= link_to "All Script Listings", phcscriptcdnpro.script_listings_path %></li>
|
135
|
+
<li class="<%= phc_menus_active_controller('phcscriptcdnpro/script/listings#new') %>"><%= link_to "Add a New Listing", phcscriptcdnpro.new_script_listing_path %></li>
|
108
136
|
</ul>
|
109
137
|
</li>
|
110
138
|
<li class="has-sub">
|
@@ -114,10 +142,10 @@
|
|
114
142
|
<span>Script Extras</span>
|
115
143
|
</a>
|
116
144
|
<ul class="sub-menu">
|
117
|
-
<li class="<%=
|
118
|
-
<li class="<%=
|
119
|
-
<li class="<%=
|
120
|
-
<li class="<%=
|
145
|
+
<li class="<%= phc_menus_active_controller('phcscriptcdnpro/script/authors') %>"><%= link_to "Script Authors", phcscriptcdnpro.script_authors_path %></li>
|
146
|
+
<li class="<%= phc_menus_active_controller('phcscriptcdnpro/script/licences') %>"><%= link_to "Script Licences", phcscriptcdnpro.script_licences_path %></li>
|
147
|
+
<li class="<%= phc_menus_active_controller('phcscriptcdnpro/script/extensions') %>"><%= link_to "Script Extensions", phcscriptcdnpro.script_extensions_path %></li>
|
148
|
+
<li class="<%= phc_menus_active_controller('phcscriptcdnpro/script/versions') %>"><%= link_to "Script Versions", phcscriptcdnpro.script_versions_path %></li>
|
121
149
|
</ul>
|
122
150
|
</li>
|
123
151
|
<!-- Sidebar - Sidebar Navigation - PHCScriptCDN(Pro) -->
|
@@ -133,8 +161,8 @@
|
|
133
161
|
<span>Accounts Dashboard</span>
|
134
162
|
</a>
|
135
163
|
<ul class="sub-menu">
|
136
|
-
<li class="<%=
|
137
|
-
<li class="<%=
|
164
|
+
<li class="<%= phc_menus_active_controller('phcaccountspro/admin/edit') %>"><%= link_to 'Settings', phcaccountspro.edit_user_registration_path %></li>
|
165
|
+
<li class="<%= phc_menus_active_controller('phcaccountspro/admin/new') %>"><%= link_to 'Logout', phcaccountspro.destroy_user_session_path, method: :delete %></li>
|
138
166
|
</ul>
|
139
167
|
</li>
|
140
168
|
<!-- Sidebar - Sidebar Navigation - PHCAccountsPro -->
|
@@ -1,34 +1,30 @@
|
|
1
|
-
<%= form_with(model: script_author, local: true) do |
|
1
|
+
<%= form_with(model: script_author, local: true) do |form_phc_scriptcdn_author| %>
|
2
2
|
|
3
3
|
<!-- PHCNotifi Render Validation -->
|
4
4
|
<%= render 'phcnotifi/validations', :object => @script_author %>
|
5
5
|
|
6
|
-
<!--
|
6
|
+
<!-- Form_phc_scriptcdn_author Input Fields -->
|
7
7
|
<div class="form-group field_with_error">
|
8
|
-
<%=
|
9
|
-
<%=
|
8
|
+
<%= form_phc_scriptcdn_author.label :author_first_name, "Author First Name" %>
|
9
|
+
<%= form_phc_scriptcdn_author.text_field :author_first_name, placeholder: "Author First Name", class: "form-control" %>
|
10
10
|
</div>
|
11
11
|
<div class="form-group field_with_error">
|
12
|
-
<%=
|
13
|
-
<%=
|
12
|
+
<%= form_phc_scriptcdn_author.label :author_last_name, "Author Last Name" %>
|
13
|
+
<%= form_phc_scriptcdn_author.text_field :author_last_name, placeholder: "Author Last Name", class: "form-control" %>
|
14
14
|
</div>
|
15
15
|
<div class="form-group field_with_error">
|
16
|
-
<%=
|
17
|
-
<%=
|
16
|
+
<%= form_phc_scriptcdn_author.label :author_website, "Author Website" %>
|
17
|
+
<%= form_phc_scriptcdn_author.text_field :author_website, placeholder: "Author Website", class: "form-control" %>
|
18
18
|
</div>
|
19
19
|
<div class="form-group field_with_error">
|
20
|
-
<%=
|
21
|
-
<%=
|
20
|
+
<%= form_phc_scriptcdn_author.label :author_github, "Author Github Address" %>
|
21
|
+
<%= form_phc_scriptcdn_author.text_field :author_github, placeholder: "Author Github Address", class: "form-control" %>
|
22
22
|
</div>
|
23
|
-
|
24
|
-
<%= form.label :authortwitter, "Author Twitter Addresss" %>
|
25
|
-
<%= form.text_field :authortwitter, placeholder: "Author Twitter Addresss", class: "form-control" %>
|
26
|
-
</div>
|
27
|
-
<!-- Form Input Fields -->
|
23
|
+
<!-- Form_phc_scriptcdn_author Input Fields -->
|
28
24
|
|
29
|
-
<!--
|
25
|
+
<!-- Form_phc_scriptcdn_author Submition Button -->
|
30
26
|
<div class="actions">
|
31
|
-
<%=
|
27
|
+
<%= form_phc_scriptcdn_author.submit class: "btn btn-primary" %>
|
32
28
|
</div>
|
33
29
|
<!-- For Submition Button -->
|
34
30
|
|
@@ -1,10 +1,23 @@
|
|
1
1
|
<!-- Title System -->
|
2
|
-
<% phc_title "Script
|
2
|
+
<% phc_title "Script Authors" %>
|
3
3
|
<% phc_title_tagline "Update Author Data" %>
|
4
|
-
<% phc_breadcrumb_one link_to "
|
5
|
-
<% phc_breadcrumb_two
|
4
|
+
<% phc_breadcrumb_one link_to "Script Index", phcscriptcdnpro.script_listings_path %>
|
5
|
+
<% phc_breadcrumb_two link_to "Author Index", phcscriptcdnpro.script_authors_path %>
|
6
|
+
<% phc_breadcrumb_three yield(:phc_title_tagline) %>
|
6
7
|
<!-- Title System -->
|
7
8
|
|
9
|
+
<!-- Page Bradcrumbs -->
|
10
|
+
<ol class="breadcrumb pull-right">
|
11
|
+
<li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
|
12
|
+
<li class="breadcrumb-item"><%= yield(:phc_breadcrumb_two) %></li>
|
13
|
+
<li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_three) %></li>
|
14
|
+
</ol>
|
15
|
+
<!-- Page Bradcrumbs -->
|
16
|
+
|
17
|
+
<!-- Page Header -->
|
18
|
+
<h1 class="page-header"><%= yield(:phc_title) %></h1>
|
19
|
+
<!-- Page Header -->
|
20
|
+
|
8
21
|
<!-- Page Content -->
|
9
22
|
<div class="panel panel-inverse">
|
10
23
|
<div class="panel-heading">
|
@@ -16,11 +29,9 @@
|
|
16
29
|
<h4 class="panel-title"><%= yield(:phc_title_tagline) %></h4>
|
17
30
|
</div>
|
18
31
|
<div class="panel-body">
|
19
|
-
|
20
|
-
<!-- -->
|
32
|
+
<!-- Form for Script Author Edit -->
|
21
33
|
<%= render 'form', script_author: @script_author %>
|
22
|
-
<!-- -->
|
23
|
-
|
34
|
+
<!-- Form for Script Author Edit -->
|
24
35
|
</div>
|
25
36
|
</div>
|
26
37
|
<!-- Page Content -->
|
@@ -1,9 +1,21 @@
|
|
1
1
|
<!-- Title System -->
|
2
|
-
<% phc_title "Script
|
2
|
+
<% phc_title "Script Authors" %>
|
3
3
|
<% phc_title_tagline "Author Index" %>
|
4
|
-
<% phc_breadcrumb_one
|
4
|
+
<% phc_breadcrumb_one link_to "Script Index", phcscriptcdnpro.script_listings_path %>
|
5
|
+
<% phc_breadcrumb_two yield(:phc_title_tagline) %>
|
5
6
|
<!-- Title System -->
|
6
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
|
+
<h1 class="page-header"><%= yield(:phc_title) %></h1>
|
17
|
+
<!-- Page Header -->
|
18
|
+
|
7
19
|
<!-- Page Content -->
|
8
20
|
<div class="panel panel-inverse">
|
9
21
|
<div class="panel-heading">
|
@@ -24,22 +36,24 @@
|
|
24
36
|
<th>Last Name</th>
|
25
37
|
<th>Website</th>
|
26
38
|
<th>Github</th>
|
27
|
-
<th>Twitter</th>
|
28
39
|
</tr>
|
29
40
|
</thead>
|
30
41
|
<tbody>
|
31
42
|
<% @script_authors.each do |script_author| %>
|
32
43
|
<tr>
|
33
|
-
<td><%= link_to script_author.
|
34
|
-
<td><%= link_to script_author.
|
35
|
-
<td><%= link_to script_author.
|
36
|
-
<td><%= link_to script_author.
|
37
|
-
<td><%= link_to script_author.authortwitter, script_author %></td>
|
44
|
+
<td><%= link_to script_author.author_first_name, script_author %></td>
|
45
|
+
<td><%= link_to script_author.author_last_name, script_author %></td>
|
46
|
+
<td><%= link_to script_author.author_website, script_author %></td>
|
47
|
+
<td><%= link_to script_author.author_github, script_author %></td>
|
38
48
|
</tr>
|
39
49
|
<% end %>
|
40
|
-
|
41
|
-
|
42
|
-
|
50
|
+
</tbody>
|
51
|
+
</table>
|
52
|
+
<%= link_to phcscriptcdnpro.new_script_author_path, class: "btn btn-primary btn-sm" do %>
|
53
|
+
<i class="fas fa-plus-circle"></i>
|
54
|
+
<%= "Add a New Script Author" %>
|
55
|
+
<% end %>
|
56
|
+
</div>
|
43
57
|
</div>
|
44
58
|
</div>
|
45
59
|
<!-- Page Content -->
|
@@ -1,10 +1,23 @@
|
|
1
1
|
<!-- Title System -->
|
2
|
-
<% phc_title "Script
|
2
|
+
<% phc_title "Script Authors" %>
|
3
3
|
<% phc_title_tagline "Add a New Author" %>
|
4
|
-
<% phc_breadcrumb_one link_to "
|
5
|
-
<% phc_breadcrumb_two
|
4
|
+
<% phc_breadcrumb_one link_to "Script Index", phcscriptcdnpro.script_listings_path %>
|
5
|
+
<% phc_breadcrumb_two link_to "Author Index", phcscriptcdnpro.script_authors_path %>
|
6
|
+
<% phc_breadcrumb_three yield(:phc_title_tagline) %>
|
6
7
|
<!-- Title System -->
|
7
8
|
|
9
|
+
<!-- Page Bradcrumbs -->
|
10
|
+
<ol class="breadcrumb pull-right">
|
11
|
+
<li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
|
12
|
+
<li class="breadcrumb-item"><%= yield(:phc_breadcrumb_two) %></li>
|
13
|
+
<li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_three) %></li>
|
14
|
+
</ol>
|
15
|
+
<!-- Page Bradcrumbs -->
|
16
|
+
|
17
|
+
<!-- Page Header -->
|
18
|
+
<h1 class="page-header"><%= yield(:phc_title) %></h1>
|
19
|
+
<!-- Page Header -->
|
20
|
+
|
8
21
|
<!-- Page Content -->
|
9
22
|
<div class="panel panel-inverse">
|
10
23
|
<div class="panel-heading">
|
@@ -16,12 +29,9 @@
|
|
16
29
|
<h4 class="panel-title"><%= yield(:phc_title_tagline) %></h4>
|
17
30
|
</div>
|
18
31
|
<div class="panel-body">
|
19
|
-
|
20
|
-
<!-- -->
|
32
|
+
<!-- Form for Script Author New -->
|
21
33
|
<%= render 'form', script_author: @script_author %>
|
22
|
-
<!-- -->
|
23
|
-
|
34
|
+
<!-- Form for Script Author New -->
|
24
35
|
</div>
|
25
36
|
</div>
|
26
37
|
<!-- Page Content -->
|
27
|
-
|
@@ -1,59 +1,52 @@
|
|
1
1
|
<!-- Title System -->
|
2
|
-
<% phc_title "Script
|
2
|
+
<% phc_title "Script Authors" %>
|
3
3
|
<% phc_title_tagline "Script Author Profile" %>
|
4
|
-
<% phc_breadcrumb_one link_to "
|
5
|
-
<% phc_breadcrumb_two
|
4
|
+
<% phc_breadcrumb_one link_to "Script Index", phcscriptcdnpro.script_listings_path %>
|
5
|
+
<% phc_breadcrumb_two link_to "Author Index", phcscriptcdnpro.script_authors_path %>
|
6
|
+
<% phc_breadcrumb_three yield(:phc_title_tagline) %>
|
6
7
|
<!-- Title System -->
|
7
8
|
|
9
|
+
<!-- Page Bradcrumbs -->
|
10
|
+
<ol class="breadcrumb pull-right">
|
11
|
+
<li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
|
12
|
+
<li class="breadcrumb-item"><%= yield(:phc_breadcrumb_two) %></li>
|
13
|
+
<li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_three) %></li>
|
14
|
+
</ol>
|
15
|
+
<!-- Page Bradcrumbs -->
|
16
|
+
|
8
17
|
<!-- Page Header -->
|
9
|
-
<
|
10
|
-
<div class="col-sm-8">
|
11
|
-
<h2><%= yield(:phc_title) %></h2>
|
12
|
-
<!-- Bread Crumb -->
|
13
|
-
<ol class="breadcrumb">
|
14
|
-
<li><%= yield(:phc_breadcrumb_one) %></li>
|
15
|
-
<li class="active"><%= yield(:phc_breadcrumb_two) %></li>
|
16
|
-
</ol>
|
17
|
-
<!-- Bread Crumb -->
|
18
|
-
</div>
|
19
|
-
<div class="col-sm-4">
|
20
|
-
<div class="title-action">
|
21
|
-
<%= link_to phcscriptcdnpro.script_authors_path, class: "btn btn-primary" do %>
|
22
|
-
<i class="fa fa-plus"></i> Back to Author Index
|
23
|
-
<% end %>
|
24
|
-
</div>
|
25
|
-
</div>
|
26
|
-
</div>
|
18
|
+
<h1 class="page-header"><%= yield(:phc_title) %></h1>
|
27
19
|
<!-- Page Header -->
|
28
20
|
|
29
21
|
<!-- Page Content -->
|
30
|
-
<div class="
|
31
|
-
<div class="row">
|
32
|
-
<div class="col-lg-12">
|
33
|
-
|
34
|
-
<div class="ibox float-e-margins">
|
35
|
-
<div class="ibox-title">
|
36
|
-
<h5><%= yield(:phc_title_tagline) %></h5>
|
37
|
-
<div class="ibox-tools">
|
38
|
-
<a class="collapse-link">
|
39
|
-
<i class="fa fa-chevron-up"></i>
|
40
|
-
</a>
|
41
|
-
<a class="close-link">
|
42
|
-
<i class="fa fa-times"></i>
|
43
|
-
</a>
|
44
|
-
</div>
|
45
|
-
</div>
|
46
|
-
<div class="ibox-content">
|
22
|
+
<div class="row">
|
47
23
|
|
48
|
-
|
49
|
-
|
50
|
-
<%= link_to 'Destroy', script_author_path, method: :delete, data: { confirm: 'Are you sure?' }, class: "btn btn-danger" %>
|
51
|
-
</div>
|
24
|
+
<!-- Button Panel -->
|
25
|
+
<div class="col-lg-4">
|
52
26
|
|
27
|
+
<div class="panel panel-inverse">
|
28
|
+
<div class="panel-heading">
|
29
|
+
<div class="panel-heading-btn">
|
53
30
|
</div>
|
54
31
|
</div>
|
32
|
+
<div class="panel-body">
|
33
|
+
|
34
|
+
<div class="btn-group d-flex" role="group">
|
35
|
+
<%= link_to 'Update', phcscriptcdnpro.edit_script_author_path, class: "btn btn-primary" %>
|
36
|
+
<%= link_to 'Remove', phcscriptcdnpro.script_author_path, method: :delete, data: { confirm: 'Are you sure?' }, class: "btn btn-danger" %>
|
37
|
+
</div>
|
55
38
|
|
39
|
+
</div>
|
56
40
|
</div>
|
41
|
+
|
42
|
+
</div>
|
43
|
+
<!-- Button Panel -->
|
44
|
+
|
45
|
+
<!-- Main Panel -->
|
46
|
+
<div class="col-lg-8">
|
47
|
+
|
57
48
|
</div>
|
49
|
+
<!-- Main Panel -->
|
50
|
+
|
58
51
|
</div>
|
59
52
|
<!-- Page Content -->
|