phcscriptcdn 51.0.0 → 52.0.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 +1 -1
- data/app/assets/javascripts/phcscriptcdn/application.js +1 -1
- data/app/controllers/phcscriptcdn/application_controller.rb +15 -20
- data/app/controllers/phcscriptcdn/script/authors_controller.rb +13 -13
- data/app/controllers/phcscriptcdn/script/extensions_controller.rb +15 -15
- data/app/controllers/phcscriptcdn/script/licences_controller.rb +13 -13
- data/app/controllers/phcscriptcdn/script/listings_controller.rb +11 -11
- data/app/controllers/phcscriptcdn/script/urls_controller.rb +14 -14
- data/app/controllers/phcscriptcdn/script/versions_controller.rb +15 -15
- data/app/models/phcscriptcdn/application_record.rb +0 -2
- data/app/models/phcscriptcdn/script.rb +0 -2
- data/app/models/phcscriptcdn/script/author.rb +16 -7
- data/app/models/phcscriptcdn/script/extension.rb +5 -8
- data/app/models/phcscriptcdn/script/licence.rb +5 -8
- data/app/models/phcscriptcdn/script/listing.rb +12 -17
- data/app/models/phcscriptcdn/script/url.rb +4 -16
- data/app/models/phcscriptcdn/script/version.rb +6 -9
- data/app/views/layouts/phcscriptcdn/application.html.erb +6 -5
- data/app/views/layouts/phcscriptcdn/components/backend/footer/_footer.html.erb +5 -5
- data/app/views/layouts/phcscriptcdn/components/backend/sidebars/_side_menu.html.erb +60 -25
- data/app/views/phcscriptcdn/script/authors/_form.html.erb +6 -5
- data/app/views/phcscriptcdn/script/authors/edit.html.erb +4 -4
- data/app/views/phcscriptcdn/script/authors/index.html.erb +19 -15
- data/app/views/phcscriptcdn/script/authors/new.html.erb +4 -4
- data/app/views/phcscriptcdn/script/authors/show.html.erb +1 -4
- data/app/views/phcscriptcdn/script/extensions/_form.html.erb +5 -4
- data/app/views/phcscriptcdn/script/extensions/edit.html.erb +4 -7
- data/app/views/phcscriptcdn/script/extensions/index.html.erb +19 -15
- data/app/views/phcscriptcdn/script/extensions/new.html.erb +4 -6
- data/app/views/phcscriptcdn/script/extensions/show.html.erb +1 -4
- data/app/views/phcscriptcdn/script/licences/_form.html.erb +10 -9
- data/app/views/phcscriptcdn/script/licences/edit.html.erb +4 -6
- data/app/views/phcscriptcdn/script/licences/index.html.erb +19 -15
- data/app/views/phcscriptcdn/script/licences/new.html.erb +4 -6
- data/app/views/phcscriptcdn/script/licences/show.html.erb +1 -4
- data/app/views/phcscriptcdn/script/listings/_form.html.erb +21 -17
- data/app/views/phcscriptcdn/script/listings/edit.html.erb +4 -4
- data/app/views/phcscriptcdn/script/listings/index.html.erb +24 -19
- data/app/views/phcscriptcdn/script/listings/new.html.erb +6 -5
- data/app/views/phcscriptcdn/script/listings/show.html.erb +3 -5
- data/app/views/phcscriptcdn/script/urls/_form.html.erb +7 -6
- data/app/views/phcscriptcdn/script/urls/edit.html.erb +15 -5
- data/app/views/phcscriptcdn/script/urls/index.html.erb +19 -15
- data/app/views/phcscriptcdn/script/urls/new.html.erb +4 -6
- data/app/views/phcscriptcdn/script/urls/show.html.erb +1 -4
- data/app/views/phcscriptcdn/script/versions/_form.html.erb +3 -2
- data/app/views/phcscriptcdn/script/versions/edit.html.erb +4 -6
- data/app/views/phcscriptcdn/script/versions/index.html.erb +19 -15
- data/app/views/phcscriptcdn/script/versions/new.html.erb +4 -6
- data/app/views/phcscriptcdn/script/versions/show.html.erb +1 -4
- data/config/routes.rb +19 -20
- data/db/migrate/20160821183652_create_phcscriptcdn_script_listings.rb +1 -1
- data/lib/phcscriptcdn/engine.rb +16 -15
- data/lib/phcscriptcdn/version.rb +1 -1
- metadata +8 -8
@@ -4,20 +4,29 @@ module Phcscriptcdn
|
|
4
4
|
# Clean URL Initialize
|
5
5
|
extend FriendlyId
|
6
6
|
|
7
|
-
#
|
7
|
+
# Paper Trail Initialize
|
8
8
|
has_paper_trail :class_name => 'Phcscriptcdn::AuthorVersions'
|
9
9
|
|
10
10
|
# Relationships
|
11
11
|
has_many :listings, class_name: 'Phcscriptcdn::Script::Listing'
|
12
12
|
|
13
|
+
# Form Fields Validation
|
14
|
+
validates :author_first_name,
|
15
|
+
presence: true
|
16
|
+
|
17
|
+
validates :author_website,
|
18
|
+
presence: true,
|
19
|
+
format: { with: URI::regexp(%w(http https)), message: "Please follow this URL format http or https://www.**********.com" }
|
20
|
+
|
21
|
+
validates :author_github,
|
22
|
+
presence: true,
|
23
|
+
format: { with: URI::regexp(%w(http https)), message: "Please follow this URL format http or https://www.**********.com" }
|
24
|
+
|
13
25
|
# Clean URL Define
|
14
|
-
friendly_id :
|
26
|
+
friendly_id :phc_nice_url_slug, use: [:slugged, :finders]
|
15
27
|
|
16
|
-
|
17
|
-
|
18
|
-
[
|
19
|
-
[:author_first_name, :author_last_name]
|
20
|
-
]
|
28
|
+
def phc_nice_url_slug
|
29
|
+
[:author_first_name, :author_last_name]
|
21
30
|
end
|
22
31
|
|
23
32
|
end
|
@@ -4,14 +4,14 @@ module Phcscriptcdn
|
|
4
4
|
# Clean URL Initialize
|
5
5
|
extend FriendlyId
|
6
6
|
|
7
|
-
#
|
7
|
+
# Paper Trail Initialize
|
8
8
|
has_paper_trail :class_name => 'Phcscriptcdn::ExtensionVersions'
|
9
9
|
|
10
10
|
# Relationships
|
11
11
|
has_many :listings, class_name: 'Phcscriptcdn::Script::Listing', :through => :urls
|
12
12
|
has_many :urls, class_name: 'Phcscriptcdn::Script::Url'
|
13
13
|
|
14
|
-
#
|
14
|
+
# Form Fields Validation
|
15
15
|
validates :script_extension_name,
|
16
16
|
presence: true
|
17
17
|
|
@@ -22,13 +22,10 @@ module Phcscriptcdn
|
|
22
22
|
presence: true
|
23
23
|
|
24
24
|
# Clean URL Define
|
25
|
-
friendly_id :
|
25
|
+
friendly_id :phc_nice_url_slug, use: [:slugged, :finders]
|
26
26
|
|
27
|
-
|
28
|
-
|
29
|
-
[
|
30
|
-
[:script_extension]
|
31
|
-
]
|
27
|
+
def phc_nice_url_slug
|
28
|
+
[:script_extension]
|
32
29
|
end
|
33
30
|
|
34
31
|
end
|
@@ -4,13 +4,13 @@ module Phcscriptcdn
|
|
4
4
|
# Clean URL Initialize
|
5
5
|
extend FriendlyId
|
6
6
|
|
7
|
-
#
|
7
|
+
# Paper Trail Initialize
|
8
8
|
has_paper_trail :class_name => 'Phcscriptcdn::LicenceVersions'
|
9
9
|
|
10
10
|
# Relationships
|
11
11
|
has_many :listings, class_name: 'Phcscriptcdn::Script::Listing'
|
12
12
|
|
13
|
-
#
|
13
|
+
# Form Fields Validation
|
14
14
|
validates :licence_name,
|
15
15
|
presence: true
|
16
16
|
|
@@ -18,13 +18,10 @@ module Phcscriptcdn
|
|
18
18
|
presence: true
|
19
19
|
|
20
20
|
# Clean URL Define
|
21
|
-
friendly_id :
|
21
|
+
friendly_id :phc_nice_url_slug, use: [:slugged, :finders]
|
22
22
|
|
23
|
-
|
24
|
-
|
25
|
-
[
|
26
|
-
[:licence_name]
|
27
|
-
]
|
23
|
+
def phc_nice_url_slug
|
24
|
+
[:licence_name]
|
28
25
|
end
|
29
26
|
|
30
27
|
end
|
@@ -4,7 +4,7 @@ module Phcscriptcdn
|
|
4
4
|
# Clean URL Initialize
|
5
5
|
extend FriendlyId
|
6
6
|
|
7
|
-
#
|
7
|
+
# Paper Trail Initialize
|
8
8
|
has_paper_trail :class_name => 'Phcscriptcdn::ListingVersions'
|
9
9
|
|
10
10
|
# Relationships
|
@@ -12,32 +12,27 @@ module Phcscriptcdn
|
|
12
12
|
belongs_to :author, class_name: 'Phcscriptcdn::Script::Author'
|
13
13
|
belongs_to :licence, class_name: 'Phcscriptcdn::Script::Licence'
|
14
14
|
|
15
|
-
#
|
16
|
-
validates :
|
17
|
-
presence: true
|
18
|
-
length: { minimum: 3 }
|
15
|
+
# Form Fields Validation
|
16
|
+
validates :script_title,
|
17
|
+
presence: true
|
19
18
|
|
20
19
|
validates :script_description,
|
21
|
-
presence: true
|
22
|
-
length: { minimum: 4 }
|
20
|
+
presence: true
|
23
21
|
|
24
22
|
validates :script_source,
|
25
|
-
|
23
|
+
format: { with: URI::regexp(%w(http https)), message: "Please follow this URL format http or https://www.**********.com" }
|
26
24
|
|
27
|
-
|
28
|
-
|
25
|
+
validates :script_website,
|
26
|
+
format: { with: URI::regexp(%w(http https)), message: "Please follow this URL format http or https://www.**********.com" }
|
29
27
|
|
30
28
|
validates :script_github,
|
31
|
-
|
29
|
+
format: { with: URI::regexp(%w(http https)), message: "Please follow this URL format http or https://www.**********.com" }
|
32
30
|
|
33
31
|
# Clean URL Define
|
34
|
-
friendly_id :
|
32
|
+
friendly_id :phc_nice_url_slug, use: [:slugged, :finders]
|
35
33
|
|
36
|
-
|
37
|
-
|
38
|
-
[
|
39
|
-
[:script_tittle]
|
40
|
-
]
|
34
|
+
def phc_nice_url_slug
|
35
|
+
[:script_title]
|
41
36
|
end
|
42
37
|
|
43
38
|
end
|
@@ -1,10 +1,7 @@
|
|
1
1
|
module Phcscriptcdn
|
2
2
|
class Script::Url < ApplicationRecord
|
3
3
|
|
4
|
-
#
|
5
|
-
extend FriendlyId
|
6
|
-
|
7
|
-
# Add Paper Trail
|
4
|
+
# Paper Trail Initialize
|
8
5
|
has_paper_trail :class_name => 'Phcscriptcdn::UrlVersions'
|
9
6
|
|
10
7
|
# Relationships
|
@@ -12,9 +9,10 @@ module Phcscriptcdn
|
|
12
9
|
belongs_to :extension, class_name: 'Phcscriptcdn::Script::Extension'
|
13
10
|
belongs_to :version, class_name: 'Phcscriptcdn::Script::Version', optional: true
|
14
11
|
|
15
|
-
#
|
12
|
+
# Form Fields Validation
|
16
13
|
validates :script_url,
|
17
|
-
presence: true
|
14
|
+
presence: true,
|
15
|
+
format: { with: URI::regexp(%w(http https)), message: "Please follow this URL format http or https://www.**********.com" }
|
18
16
|
|
19
17
|
validates :script_url_release,
|
20
18
|
presence: true
|
@@ -22,15 +20,5 @@ module Phcscriptcdn
|
|
22
20
|
validates :script_url_cdn_update,
|
23
21
|
presence: true
|
24
22
|
|
25
|
-
# Clean URL Define
|
26
|
-
friendly_id :phcscriptcdn_url_slug, use: [:slugged, :finders]
|
27
|
-
|
28
|
-
# Define for Multiple Records
|
29
|
-
def phcscriptcdn_url_slug
|
30
|
-
[
|
31
|
-
[:id]
|
32
|
-
]
|
33
|
-
end
|
34
|
-
|
35
23
|
end
|
36
24
|
end
|
@@ -4,25 +4,22 @@ module Phcscriptcdn
|
|
4
4
|
# Clean URL Initialize
|
5
5
|
extend FriendlyId
|
6
6
|
|
7
|
-
#
|
7
|
+
# Paper Trail Initialize
|
8
8
|
has_paper_trail :class_name => 'Phcscriptcdn::ScriptversionVersions'
|
9
9
|
|
10
10
|
# Relationships
|
11
11
|
has_many :listings, class_name: 'Phcscriptcdn::Script::Listing', :through => :urls
|
12
12
|
has_many :urls, class_name: 'Phcscriptcdn::Script::Url'
|
13
13
|
|
14
|
-
#
|
14
|
+
# Form Fields Validation
|
15
15
|
validates :script_version_number,
|
16
|
-
|
16
|
+
presence: true
|
17
17
|
|
18
18
|
# Clean URL Define
|
19
|
-
friendly_id :
|
19
|
+
friendly_id :phc_nice_url_slug, use: [:slugged, :finders]
|
20
20
|
|
21
|
-
|
22
|
-
|
23
|
-
[
|
24
|
-
[:script_version_number]
|
25
|
-
]
|
21
|
+
def phc_nice_url_slug
|
22
|
+
[:script_version_number]
|
26
23
|
end
|
27
24
|
|
28
25
|
end
|
@@ -32,7 +32,7 @@
|
|
32
32
|
<body>
|
33
33
|
|
34
34
|
<!-- Page Container -->
|
35
|
-
<div id="page-container" class="
|
35
|
+
<div id="page-container" class="fade page-sidebar-fixed page-header-fixed">
|
36
36
|
|
37
37
|
<!-- Page Header -->
|
38
38
|
<div id="header" class="header navbar-default">
|
@@ -49,6 +49,7 @@
|
|
49
49
|
|
50
50
|
<!-- Page Content -->
|
51
51
|
<div id="content" class="content">
|
52
|
+
<%= render 'phcnotifi/default/notifications' %>
|
52
53
|
<%= yield %>
|
53
54
|
</div>
|
54
55
|
<!-- Page Content -->
|
@@ -68,10 +69,10 @@
|
|
68
69
|
|
69
70
|
<!-- JavaScript Loader -->
|
70
71
|
<script>
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
72
|
+
$(document).ready(function() {
|
73
|
+
App.init();
|
74
|
+
});
|
75
|
+
</script>
|
75
76
|
<!-- JavaScript Loader -->
|
76
77
|
|
77
78
|
</body>
|
@@ -1,9 +1,9 @@
|
|
1
1
|
<span class="float-left">
|
2
|
-
|
3
|
-
|
4
|
-
|
2
|
+
© 2012-<%= Time.now.year %> -
|
3
|
+
<strong>PHC</strong>Press -
|
4
|
+
Engine v<%= Gem.loaded_specs["phcscriptcdn"].version.to_s %>
|
5
5
|
</span>
|
6
6
|
<span class="float-right">
|
7
|
-
|
8
|
-
|
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
9
|
</span>
|
@@ -1,4 +1,4 @@
|
|
1
|
-
<!-- Sidebar for
|
1
|
+
<!-- Sidebar for PHCDevworks Engines -->
|
2
2
|
<div data-scrollbar="true" data-height="100%">
|
3
3
|
|
4
4
|
<!-- Sidebar - User Profile Menu -->
|
@@ -34,11 +34,29 @@
|
|
34
34
|
<% end %>
|
35
35
|
</ul>
|
36
36
|
<!-- Sidebar - User Profile Menu -->
|
37
|
+
|
37
38
|
<!-- Sidebar - Sidebar Navigation -->
|
38
39
|
<ul class="nav">
|
39
|
-
|
40
|
+
|
41
|
+
<% if defined?phccodesnipper %>
|
42
|
+
<!-- Sidebar - Sidebar Navigation - PHCCodeSnipper -->
|
43
|
+
<li class="nav-header">Code Snippets</li>
|
44
|
+
<li class="has-sub">
|
45
|
+
<a href="javascript:;">
|
46
|
+
<b class="caret"></b>
|
47
|
+
<i class="fas fa-newspaper"></i>
|
48
|
+
<span>Code Snippets</span>
|
49
|
+
</a>
|
50
|
+
<ul class="sub-menu">
|
51
|
+
<li class="<%= phc_menus_active_controller('phccodesnipper/script/posts') %>"><%= link_to 'Snippet Index', phccodesnipper.script_snippets_path %></li>
|
52
|
+
<li class="<%= phc_menus_active_controller('phccodesnipper/script/posts#new') %>"><%= link_to 'New Snippet', phccodesnipper.new_script_snippet_path %></li>
|
53
|
+
</ul>
|
54
|
+
</li>
|
55
|
+
<!-- Sidebar - Sidebar Navigation - PHCCodeSnipper -->
|
56
|
+
<% end %>
|
57
|
+
|
40
58
|
<% if defined?phcpress %>
|
41
|
-
<!-- Sidebar - Sidebar Navigation - PHCPress
|
59
|
+
<!-- Sidebar - Sidebar Navigation - PHCPress -->
|
42
60
|
<li class="nav-header">Article Management</li>
|
43
61
|
<li class="has-sub">
|
44
62
|
<a href="javascript:;">
|
@@ -62,11 +80,11 @@
|
|
62
80
|
<li class="<%= phc_menus_active_controller('phcpress/article/categories#new') %>"><%= link_to('New Category', phcpress.new_article_category_path) %></li>
|
63
81
|
</ul>
|
64
82
|
</li>
|
65
|
-
<!-- Sidebar - Sidebar Navigation - PHCPress
|
83
|
+
<!-- Sidebar - Sidebar Navigation - PHCPress -->
|
66
84
|
<% end %>
|
67
85
|
|
68
86
|
<% if defined?phcmembers %>
|
69
|
-
<!-- Sidebar - Sidebar Navigation -
|
87
|
+
<!-- Sidebar - Sidebar Navigation - PHCMembers -->
|
70
88
|
<li class="nav-header">Membership Manager</li>
|
71
89
|
<li class="has-sub">
|
72
90
|
<a href="javascript:;">
|
@@ -90,11 +108,11 @@
|
|
90
108
|
<li class="<%= phc_menus_active_controller('phcmembers/directory/categories#new') %>"><%= link_to('New Directory Listing', phcmembers.new_directory_category_path) %></li>
|
91
109
|
</ul>
|
92
110
|
</li>
|
93
|
-
<!-- Sidebar - Sidebar Navigation -
|
111
|
+
<!-- Sidebar - Sidebar Navigation - PHCMembers -->
|
94
112
|
<% end %>
|
95
113
|
|
96
114
|
<% if defined?phcscriptcdn %>
|
97
|
-
<!-- Sidebar - Sidebar Navigation - PHCScriptCDN
|
115
|
+
<!-- Sidebar - Sidebar Navigation - PHCScriptCDN -->
|
98
116
|
<li class="nav-header">Script Management</li>
|
99
117
|
<li class="has-sub">
|
100
118
|
<a href="javascript:;">
|
@@ -104,7 +122,7 @@
|
|
104
122
|
</a>
|
105
123
|
<ul class="sub-menu">
|
106
124
|
<li class="<%= phc_menus_active_controller('phcscriptcdn/script/listings') %>"><%= link_to "All Script Listings", phcscriptcdn.script_listings_path %></li>
|
107
|
-
|
125
|
+
<li class="<%= phc_menus_active_controller('phcscriptcdn/script/listings#new') %>"><%= link_to "Add a New Listing", phcscriptcdn.new_script_listing_path %></li>
|
108
126
|
</ul>
|
109
127
|
</li>
|
110
128
|
<li class="has-sub">
|
@@ -114,41 +132,58 @@
|
|
114
132
|
<span>Script Extras</span>
|
115
133
|
</a>
|
116
134
|
<ul class="sub-menu">
|
117
|
-
|
118
|
-
|
119
|
-
|
135
|
+
<li class="<%= phc_menus_active_controller('phcscriptcdn/script/authors') %>"><%= link_to "Script Authors", phcscriptcdn.script_authors_path %></li>
|
136
|
+
<li class="<%= phc_menus_active_controller('phcscriptcdn/script/licences') %>"><%= link_to "Script Licences", phcscriptcdn.script_licences_path %></li>
|
137
|
+
<li class="<%= phc_menus_active_controller('phcscriptcdn/script/extensions') %>"><%= link_to "Script Extensions", phcscriptcdn.script_extensions_path %></li>
|
120
138
|
<li class="<%= phc_menus_active_controller('phcscriptcdn/script/versions') %>"><%= link_to "Script Versions", phcscriptcdn.script_versions_path %></li>
|
121
139
|
</ul>
|
122
140
|
</li>
|
123
|
-
<!-- Sidebar - Sidebar Navigation - PHCScriptCDN
|
141
|
+
<!-- Sidebar - Sidebar Navigation - PHCScriptCDN -->
|
124
142
|
<% end %>
|
125
143
|
|
126
|
-
<% if current_user %>
|
127
|
-
<!-- Sidebar - Sidebar Navigation - PHCAccounts -->
|
128
|
-
<li class="nav-header">
|
144
|
+
<% if current_user && current_user.admin? %>
|
145
|
+
<!-- Sidebar - Sidebar Navigation - PHCAccounts Admin Options -->
|
146
|
+
<li class="nav-header">User Administration</li>
|
129
147
|
<li class="has-sub">
|
130
148
|
<a href="javascript:;">
|
131
149
|
<b class="caret"></b>
|
132
150
|
<i class="fas fa-user"></i>
|
133
|
-
<span>
|
151
|
+
<span>Admin</span>
|
134
152
|
</a>
|
135
153
|
<ul class="sub-menu">
|
136
|
-
<li class="<%= phc_menus_active_controller('phcaccounts/admin/
|
137
|
-
<li class="<%= phc_menus_active_controller('phcaccounts/admin/new') %>"><%= link_to('Logout', phcaccounts.destroy_user_session_path, method: :delete) %></li>
|
154
|
+
<li class="<%= phc_menus_active_controller('phcaccounts/admin/users') %>"><%= link_to 'User List', phcaccounts.admin_users_path %></li>
|
138
155
|
</ul>
|
139
156
|
</li>
|
140
|
-
<!-- Sidebar - Sidebar Navigation - PHCAccounts -->
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
157
|
+
<!-- Sidebar - Sidebar Navigation - PHCAccounts Admin Options -->
|
158
|
+
<% end %>
|
159
|
+
|
160
|
+
<% if current_user %>
|
161
|
+
<!-- Sidebar - Sidebar Navigation - PHCAccounts User Options -->
|
162
|
+
<li class="nav-header">Your Account</li>
|
163
|
+
<li class="has-sub">
|
164
|
+
<a href="javascript:;">
|
165
|
+
<b class="caret"></b>
|
166
|
+
<i class="fas fa-user"></i>
|
167
|
+
<span>Accounts Settings</span>
|
145
168
|
</a>
|
169
|
+
<ul class="sub-menu">
|
170
|
+
<li class="<%= phc_menus_active_controller('phcaccounts/user/edit') %>"><%= link_to 'Settings', phcaccounts.edit_user_registration_path %></li>
|
171
|
+
<li class="<%= phc_menus_active_controller('phcaccounts/user/new') %>"><%= link_to 'Logout', phcaccounts.destroy_user_session_path, method: :delete %></li>
|
172
|
+
</ul>
|
146
173
|
</li>
|
147
|
-
<!-- Sidebar - Sidebar
|
174
|
+
<!-- Sidebar - Sidebar Navigation - PHCAccounts User Options -->
|
148
175
|
<% end %>
|
149
176
|
|
177
|
+
<!-- Sidebar - Sidebar Minifier -->
|
178
|
+
<li>
|
179
|
+
<a href="javascript:;" class="sidebar-minify-btn" data-click="sidebar-minify">
|
180
|
+
<i class="fa fa-angle-double-left"></i>
|
181
|
+
</a>
|
182
|
+
</li>
|
183
|
+
<!-- Sidebar - Sidebar Minifier -->
|
184
|
+
|
150
185
|
</ul>
|
151
186
|
<!-- Sidebar - Sidebar Navigation -->
|
152
187
|
|
153
188
|
</div>
|
154
|
-
<!-- Sidebar for
|
189
|
+
<!-- Sidebar for PHCDevworks Engines -->
|
@@ -1,22 +1,23 @@
|
|
1
1
|
<%= form_with(model: script_author, local: true) do |form| %>
|
2
2
|
|
3
3
|
<!-- PHCNotifi Render Validation -->
|
4
|
-
<%= render 'phcnotifi/validations', :object => @script_author %>
|
4
|
+
<%= render 'phcnotifi/default/validations', :object => @script_author %>
|
5
|
+
<!-- PHCNotifi Render Validation -->
|
5
6
|
|
6
7
|
<!-- Form Input Fields -->
|
7
|
-
<div class="form-group
|
8
|
+
<div class="form-group field_with_errors">
|
8
9
|
<%= form.label :author_first_name, "Author First Name" %>
|
9
10
|
<%= form.text_field :author_first_name, placeholder: "Author First Name", class: "form-control" %>
|
10
11
|
</div>
|
11
|
-
<div class="form-group
|
12
|
+
<div class="form-group field_with_errors">
|
12
13
|
<%= form.label :author_last_name, "Author Last Name" %>
|
13
14
|
<%= form.text_field :author_last_name, placeholder: "Author Last Name", class: "form-control" %>
|
14
15
|
</div>
|
15
|
-
<div class="form-group
|
16
|
+
<div class="form-group field_with_errors">
|
16
17
|
<%= form.label :author_website, "Author Website" %>
|
17
18
|
<%= form.text_field :author_website, placeholder: "Author Website", class: "form-control" %>
|
18
19
|
</div>
|
19
|
-
<div class="form-group
|
20
|
+
<div class="form-group field_with_errors">
|
20
21
|
<%= form.label :author_github, "Author Github Address" %>
|
21
22
|
<%= form.text_field :author_github, placeholder: "Author Github Address", class: "form-control" %>
|
22
23
|
</div>
|