phcdevworks_core_modules 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (34) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.md +28 -0
  4. data/Rakefile +32 -0
  5. data/app/assets/config/phcdevworks_core_modules_manifest.js +2 -0
  6. data/app/assets/javascripts/phcdevworks_core_modules/application.js +2 -0
  7. data/app/assets/stylesheets/phcdevworks_core_modules/application.scss +2 -0
  8. data/app/controllers/phcdevworks_core_modules/application_controller.rb +13 -0
  9. data/app/controllers/phcdevworks_core_modules/modules/categories_controller.rb +81 -0
  10. data/app/helpers/phcdevworks_core_modules/application_helper.rb +4 -0
  11. data/app/helpers/phcdevworks_core_modules/modules/categories_helper.rb +4 -0
  12. data/app/jobs/phcdevworks_core_modules/application_job.rb +4 -0
  13. data/app/mailers/phcdevworks_core_modules/application_mailer.rb +6 -0
  14. data/app/models/phcdevworks_core_modules/application_record.rb +5 -0
  15. data/app/models/phcdevworks_core_modules/core_category_versions.rb +5 -0
  16. data/app/models/phcdevworks_core_modules/modules.rb +7 -0
  17. data/app/models/phcdevworks_core_modules/modules/category.rb +27 -0
  18. data/app/views/layouts/phcdevworks_core_modules/application.html.erb +136 -0
  19. data/app/views/layouts/phcdevworks_core_modules/components/backend/footer/_footer.html.erb +16 -0
  20. data/app/views/layouts/phcdevworks_core_modules/components/backend/navigation/_top_menu.html.erb +40 -0
  21. data/app/views/layouts/phcdevworks_core_modules/components/backend/sidebars/_side_menu.html.erb +291 -0
  22. data/app/views/phcdevworks_core_modules/modules/categories/_form.html.erb +22 -0
  23. data/app/views/phcdevworks_core_modules/modules/categories/edit.html.erb +47 -0
  24. data/app/views/phcdevworks_core_modules/modules/categories/index.html.erb +80 -0
  25. data/app/views/phcdevworks_core_modules/modules/categories/new.html.erb +47 -0
  26. data/app/views/phcdevworks_core_modules/modules/categories/show.html.erb +9 -0
  27. data/config/routes.rb +11 -0
  28. data/db/migrate/20170517064427_create_phcdevworks_core_category_versions.rb +17 -0
  29. data/db/migrate/20200629113153_create_phcdevworks_core_modules_modules_categories.rb +15 -0
  30. data/lib/phcdevworks_core_modules.rb +5 -0
  31. data/lib/phcdevworks_core_modules/engine.rb +36 -0
  32. data/lib/phcdevworks_core_modules/version.rb +3 -0
  33. data/lib/tasks/phcdevworks_core_modules_tasks.rake +4 -0
  34. metadata +319 -0
@@ -0,0 +1,291 @@
1
+ <!-- -PHC- Sidebar for PHCDevworks Engines -->
2
+ <div data-scrollbar="true" data-height="100%">
3
+
4
+ <!-- -PHC- Sidebar - User Profile Menu -->
5
+ <ul class="nav">
6
+ <% if current_user %>
7
+ <li class="nav-profile">
8
+ <a href="javascript:;" data-toggle="nav-profile">
9
+ <div class="cover with-shadow"></div>
10
+ <div class="image">
11
+ <%= image_tag current_user.gravatar_url %>
12
+ </div>
13
+ <div class="info">
14
+ <b class="caret pull-right"></b>
15
+ <%= current_user.firstname + " " + current_user.lastname %>
16
+ <small><%= current_user.username %></small>
17
+ </div>
18
+ </a>
19
+ </li>
20
+ <li>
21
+ <ul class="nav nav-profile">
22
+ <li>
23
+ <%= link_to phcdevworks_accounts.edit_user_registration_path do %>
24
+ <i class="fad fa-cogs"></i> Account Settings
25
+ <% end %>
26
+ </li>
27
+ <li>
28
+ <%= link_to phcdevworks_accounts.destroy_user_session_path do %>
29
+ <i class="fad fa-sign-out-alt"></i> Logout
30
+ <% end %>
31
+ </li>
32
+ </ul>
33
+ </li>
34
+ <% end %>
35
+ </ul>
36
+ <!-- -PHC- Sidebar - User Profile Menu -->
37
+
38
+ <!-- -PHC- Sidebar - Sidebar Navigation -->
39
+ <ul class="nav">
40
+
41
+ <% if defined?phcdevworks_members %>
42
+ <!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks Members -->
43
+ <li class="nav-header">Membership Manager</li>
44
+ <li class="has-sub">
45
+ <a href="javascript:;">
46
+ <b class="caret"></b>
47
+ <i class="fad fa-users"></i>
48
+ <span>Member"s Data</span>
49
+ </a>
50
+ <ul class="sub-menu">
51
+ <li class="<%= phc_menu_active_controller("phcdevworks_members/member/profiles") %>"><%= link_to("Profile Index", phcdevworks_members.member_profiles_path) %></li>
52
+ <li class="<%= phc_menu_active_controller("phcdevworks_members/member/profiles#new") %>"><%= link_to("New Member Profile", phcdevworks_members.new_member_profile_path) %></li>
53
+ </ul>
54
+ </li>
55
+ <li class="nav-header">Member"s Directory</li>
56
+ <li class="has-sub">
57
+ <a href="javascript:;">
58
+ <b class="caret"></b>
59
+ <i class="fad fa-list-alt"></i>
60
+ <span>Member"s Directory</span>
61
+ </a>
62
+ <ul class="sub-menu">
63
+ <li class="<%= phc_menu_active_controller("phcdevworks_members/directory/categories") %>"><%= link_to("Directory Index", phcdevworks_members.directory_categories_path) %></li>
64
+ <li class="<%= phc_menu_active_controller("phcdevworks_members/directory/categories#new") %>"><%= link_to("New Directory Listing", phcdevworks_members.new_directory_category_path) %></li>
65
+ </ul>
66
+ </li>
67
+ <!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks Members -->
68
+ <% end %>
69
+
70
+ <% if defined?phcdevworks_portfolio %>
71
+ <!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks Press -->
72
+ <li class="nav-header">Portfolio</li>
73
+ <li class="has-sub">
74
+ <a href="javascript:;">
75
+ <b class="caret"></b>
76
+ <i class="fad fa-briefcase"></i>
77
+ <span>Project List</span>
78
+ </a>
79
+ <ul class="sub-menu">
80
+ <li class="<%= phc_menu_active_controller("phcdevworks_portfolio/project/posts") %>"><%= link_to("Project Index", phcdevworks_portfolio.project_posts_path) %></li>
81
+ <li class="<%= phc_menu_active_controller("phcdevworks_portfolio/project/posts#new") %>"><%= link_to("New Project", phcdevworks_portfolio.new_project_post_path) %></li>
82
+ </ul>
83
+ </li>
84
+ <li class="has-sub">
85
+ <a href="javascript:;">
86
+ <b class="caret"></b>
87
+ <i class="fad fa-sitemap"></i>
88
+ <span>Project Categories</span>
89
+ </a>
90
+ <ul class="sub-menu">
91
+ <li class="<%= phc_menu_active_controller("phcdevworks_portfolio/project/posts") %>"><%= link_to("Project Category", phcdevworks_portfolio.project_categories_path) %></li>
92
+ <li class="<%= phc_menu_active_controller("phcdevworks_portfolio/project/posts#new") %>"><%= link_to("New Category", phcdevworks_portfolio.new_project_category_path) %></li>
93
+ </ul>
94
+ </li>
95
+ <li class="has-sub">
96
+ <a href="javascript:;">
97
+ <b class="caret"></b>
98
+ <i class="fad fa-folders"></i>
99
+ <span>Project Types</span>
100
+ </a>
101
+ <ul class="sub-menu">
102
+ <li class="<%= phc_menu_active_controller("phcdevworks_portfolio/project/posts") %>"><%= link_to("Project Type", phcdevworks_portfolio.project_types_path) %></li>
103
+ <li class="<%= phc_menu_active_controller("phcdevworks_portfolio/project/posts#new") %>"><%= link_to("New Types", phcdevworks_portfolio.new_project_type_path) %></li>
104
+ </ul>
105
+ </li>
106
+ <!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks Press -->
107
+ <% end %>
108
+
109
+ <% if defined?phcdevworks_press %>
110
+ <!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks Press -->
111
+ <li class="nav-header">Articles & Blogging</li>
112
+ <li class="has-sub">
113
+ <a href="javascript:;">
114
+ <b class="caret"></b>
115
+ <i class="fad fa-newspaper"></i>
116
+ <span>Article Posts</span>
117
+ </a>
118
+ <ul class="sub-menu">
119
+ <li class="<%= phc_menu_active_controller("phcdevworks_press/article/posts") %>"><%= link_to("Article Index", phcdevworks_press.article_posts_path) %></li>
120
+ <li class="<%= phc_menu_active_controller("phcdevworks_press/article/posts#new") %>"><%= link_to("New Aritcle", phcdevworks_press.new_article_post_path) %></li>
121
+ </ul>
122
+ </li>
123
+ <li class="has-sub">
124
+ <a href="javascript:;">
125
+ <b class="caret"></b>
126
+ <i class="fad fa-sitemap"></i>
127
+ <span>Article Categories</span>
128
+ </a>
129
+ <ul class="sub-menu">
130
+ <li class="<%= phc_menu_active_controller("phcdevworks_press/article/categories") %>"><%= link_to("Category Index", phcdevworks_press.article_categories_path) %></li>
131
+ <li class="<%= phc_menu_active_controller("phcdevworks_press/article/categories#new") %>"><%= link_to("New Category", phcdevworks_press.new_article_category_path) %></li>
132
+ </ul>
133
+ </li>
134
+ <!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks Press -->
135
+ <% end %>
136
+
137
+ <% if defined?phcdevworks_scripts %>
138
+ <!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks Scripts -->
139
+ <li class="nav-header">Script CDN Listings</li>
140
+ <li class="has-sub">
141
+ <a href="javascript:;">
142
+ <b class="caret"></b>
143
+ <i class="fad fa-laptop-code"></i>
144
+ <span>Script Posts</span>
145
+ </a>
146
+ <ul class="sub-menu">
147
+ <li class="<%= phc_menu_active_controller("phcdevworks_scripts/script/listings") %>"><%= link_to "All Script Listings", phcdevworks_scripts.script_listings_path %></li>
148
+ <li class="<%= phc_menu_active_controller("phcdevworks_scripts/script/listings#new") %>"><%= link_to "Add a New Listing", phcdevworks_scripts.new_script_listing_path %></li>
149
+ </ul>
150
+ </li>
151
+ <li class="has-sub">
152
+ <a href="javascript:;">
153
+ <b class="caret"></b>
154
+ <i class="fad fa-sitemap"></i>
155
+ <span>Script Extras</span>
156
+ </a>
157
+ <ul class="sub-menu">
158
+ <li class="<%= phc_menu_active_controller("phcdevworks_scripts/script/authors") %>"><%= link_to "Script Authors", phcdevworks_scripts.script_authors_path %></li>
159
+ <li class="<%= phc_menu_active_controller("phcdevworks_scripts/script/extensions") %>"><%= link_to "Script Extensions", phcdevworks_scripts.script_extensions_path %></li>
160
+ <li class="<%= phc_menu_active_controller("phcdevworks_scripts/script/versions") %>"><%= link_to "Script Versions", phcdevworks_scripts.script_versions_path %></li>
161
+ </ul>
162
+ </li>
163
+ <li class="nav-header">Code Snippets</li>
164
+ <li class="has-sub">
165
+ <a href="javascript:;">
166
+ <b class="caret"></b>
167
+ <i class="fad fa-code"></i>
168
+ <span>Code Snippets</span>
169
+ </a>
170
+ <ul class="sub-menu">
171
+ <li class="<%= phc_menu_active_controller("phcdevworks_scripts/script/posts") %>"><%= link_to "Snippet Index", phcdevworks_scripts.snippet_posts_path %></li>
172
+ <li class="<%= phc_menu_active_controller("phcdevworks_scripts/script/posts#new") %>"><%= link_to "New Snippet", phcdevworks_scripts.new_snippet_post_path %></li>
173
+ </ul>
174
+ </li>
175
+ <!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks Scripts -->
176
+ <% end %>
177
+
178
+ <% if defined?phcdevworks_real_estate %>
179
+ <!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks RealEstate -->
180
+ <li class="nav-header">Property Listings</li>
181
+ <li class="has-sub">
182
+ <a href="javascript:;">
183
+ <b class="caret"></b>
184
+ <i class="fad fa-home-lg"></i>
185
+ <span>Property Listings</span>
186
+ </a>
187
+ <ul class="sub-menu">
188
+ <li class="<%= phc_menu_active_controller("phcdevworks_real_estate/property/listings") %>"><%= link_to "Listing Index", phcdevworks_real_estate.property_listings_path %></li>
189
+ <li class="<%= phc_menu_active_controller("phcdevworks_real_estate/property/listings#new") %>"><%= link_to "New Listing", phcdevworks_real_estate.new_property_listing_path %></li>
190
+ </ul>
191
+ </li>
192
+ <li class="has-sub">
193
+ <a href="javascript:;">
194
+ <b class="caret"></b>
195
+ <i class="fad fa-list-alt"></i>
196
+ <span>Listing Features</span>
197
+ </a>
198
+ <ul class="sub-menu">
199
+ <li class="<%= phc_menu_active_controller("phcdevworks_real_estate/property/listings") %>"><%= link_to "Features Index", phcdevworks_real_estate.property_features_path %></li>
200
+ <li class="<%= phc_menu_active_controller("phcdevworks_real_estate/property/listings#new") %>"><%= link_to "New Features", phcdevworks_real_estate.new_property_feature_path %></li>
201
+ </ul>
202
+ </li>
203
+ <!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks RealEstate -->
204
+ <% end %>
205
+
206
+ <% if defined?phcdevworks_tutorials %>
207
+ <!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks Tutorials -->
208
+ <li class="nav-header">Tutorial Posts</li>
209
+ <li class="has-sub">
210
+ <a href="javascript:;">
211
+ <b class="caret"></b>
212
+ <i class="fad fa-chalkboard-teacher"></i>
213
+ <span>Tutorial Posts</span>
214
+ </a>
215
+ <ul class="sub-menu">
216
+ <li class="<%= phc_menu_active_controller("phcdevworks_tutorials/tutorials/posts") %>"><%= link_to "Tutorial Index", phcdevworks_tutorials.tutorial_posts_path %></li>
217
+ <li class="<%= phc_menu_active_controller("phcdevworks_tutorials/tutorials/posts#new") %>"><%= link_to "New Tutorial", phcdevworks_tutorials.new_tutorial_post_path %></li>
218
+ </ul>
219
+ </li>
220
+ <li class="has-sub">
221
+ <a href="javascript:;">
222
+ <b class="caret"></b>
223
+ <i class="fad fa-sitemap"></i>
224
+ <span>Tutorial Categories</span>
225
+ </a>
226
+ <ul class="sub-menu">
227
+ <li class="<%= phc_menu_active_controller("phcdevworks_tutorials/tutorials/categories") %>"><%= link_to "Category Index", phcdevworks_tutorials.tutorial_categories_path %></li>
228
+ <li class="<%= phc_menu_active_controller("phcdevworks_tutorials/tutorials/categories#new") %>"><%= link_to "New Category", phcdevworks_tutorials.new_tutorial_category_path %></li>
229
+ </ul>
230
+ </li>
231
+ <li class="nav-header">Command Lists & Items</li>
232
+ <li class="has-sub">
233
+ <a href="javascript:;">
234
+ <b class="caret"></b>
235
+ <i class="fad fa-terminal"></i>
236
+ <span>Command Lists</span>
237
+ </a>
238
+ <ul class="sub-menu">
239
+ <li class="<%= phc_menu_active_controller("phcdevworks_tutorials/command/posts") %>"><%= link_to "List Index", phcdevworks_tutorials.command_posts_path %></li>
240
+ <li class="<%= phc_menu_active_controller("phcdevworks_tutorials/command/posts#new") %>"><%= link_to "New List", phcdevworks_tutorials.new_command_post_path %></li>
241
+ </ul>
242
+ </li>
243
+ <!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks Tutorials -->
244
+ <% end %>
245
+
246
+ <% if current_user && current_user.admin? %>
247
+ <!-- -PHC- Sidebar - Sidebar Navigation - PHCAccounts Admin Options -->
248
+ <li class="nav-header">User Administration</li>
249
+ <li class="has-sub">
250
+ <a href="javascript:;">
251
+ <b class="caret"></b>
252
+ <i class="fad fa-user"></i>
253
+ <span>Admin</span>
254
+ </a>
255
+ <ul class="sub-menu">
256
+ <li class="<%= phc_menu_active_controller("phcdevworks_accounts/admin/users") %>"><%= link_to "User List", phcdevworks_accounts.admin_users_index_path %></li>
257
+ </ul>
258
+ </li>
259
+ <!-- -PHC- Sidebar - Sidebar Navigation - PHCAccounts Admin Options -->
260
+ <% end %>
261
+
262
+ <% if current_user %>
263
+ <!-- -PHC- Sidebar - Sidebar Navigation - PHCAccounts User Options -->
264
+ <li class="nav-header">Your Account</li>
265
+ <li class="has-sub">
266
+ <a href="javascript:;">
267
+ <b class="caret"></b>
268
+ <i class="fad fa-user"></i>
269
+ <span>Accounts Settings</span>
270
+ </a>
271
+ <ul class="sub-menu">
272
+ <li class="<%= phc_menu_active_controller("phcdevworks_accounts/user/edit") %>"><%= link_to "Settings", phcdevworks_accounts.edit_user_registration_path %></li>
273
+ <li class="<%= phc_menu_active_controller("phcdevworks_accounts/user/new") %>"><%= link_to "Logout", phcdevworks_accounts.destroy_user_session_path, method: :delete %></li>
274
+ </ul>
275
+ </li>
276
+ <!-- -PHC- Sidebar - Sidebar Navigation - PHCAccounts User Options -->
277
+ <% end %>
278
+
279
+ <!-- -PHC- Sidebar - Sidebar Minifier -->
280
+ <li>
281
+ <a href="javascript:;" class="sidebar-minify-btn" data-click="sidebar-minify">
282
+ <i class="fa fa-angle-double-left"></i>
283
+ </a>
284
+ </li>
285
+ <!-- -PHC- Sidebar - Sidebar Minifier -->
286
+
287
+ </ul>
288
+ <!-- -PHC- Sidebar - Sidebar Navigation -->
289
+
290
+ </div>
291
+ <!-- -PHC- Sidebar for PHCDevworks Engines -->
@@ -0,0 +1,22 @@
1
+ <!-- Form - Command - Post -->
2
+ <%= form_with(model: modules_category, local: true) do |form| %>
3
+
4
+ <!-- PHCNotifi Render Validation -->
5
+ <%= render "phcdevworks_notifications/bootstrap/validations", :object => @modules_category %>
6
+ <!-- PHCNotifi Render Validation -->
7
+
8
+ <!-- Form Input Fields -->
9
+ <div class="form-group">
10
+ <%= form.label :category_name, "Category Name" %>
11
+ <%= form.text_field :category_name, class: "form-control" %>
12
+ </div>
13
+ <!-- Form Input Fields -->
14
+
15
+ <!-- Form Submition Button -->
16
+ <div class="actions">
17
+ <%= form.submit class: "btn btn-primary" %>
18
+ </div>
19
+ <!-- For Submition Button -->
20
+
21
+ <% end %>
22
+ <!-- Form - Command - Post -->
@@ -0,0 +1,47 @@
1
+ <!-- PHCTitleSEO Title Variables -->
2
+ <% phc_title "Category Manager" %>
3
+ <% phc_title_tagline "Update Category" %>
4
+ <% phc_breadcrumb_one yield(:phc_title_tagline) %>
5
+ <% phc_breadcrumb_two link_to "Category Index", phcdevworks_core_modules.modules_categories_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', modules_category: @modules_category %>
37
+ <!-- Edit Form -->
38
+
39
+ </div>
40
+ <!-- Panel - Body -->
41
+
42
+ </div>
43
+ <!-- Panel -->
44
+
45
+ </div>
46
+ </div>
47
+ <!-- Page Content -->
@@ -0,0 +1,80 @@
1
+ <!-- PHCTitleSEO Title Variables -->
2
+ <% phc_title "Category Manager" %>
3
+ <% phc_title_tagline "Category Index" %>
4
+ <% phc_breadcrumb_one yield(:phc_title_tagline) %>
5
+ <% phc_breadcrumb_two link_to "Category Index", phcdevworks_core_modules.modules_categories_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
+ <!-- Index - Table -->
36
+ <div class="table-responsive">
37
+ <table class="table table-striped table-bordered">
38
+
39
+ <thead>
40
+ <tr>
41
+ <th>Category</th>
42
+ <th></th>
43
+ </tr>
44
+ </thead>
45
+
46
+ <tbody>
47
+ <% @modules_categories.each do |modules_category| %>
48
+ <tr>
49
+ <td><%= modules_category.category_name %></td>
50
+ <td>
51
+ <div class="btn-group d-flex" role="group">
52
+ <%= link_to "Category Details", modules_category, class: "btn btn-purple btn-xs" %>
53
+ <%= link_to "Update Category", edit_modules_category_path(modules_category), class: "btn btn-primary btn-xs" %>
54
+ <%= link_to "Remove Category", modules_category, method: :delete, data: { confirm: "Are you sure? This action cannot be reversed." }, class: "btn btn-danger btn-xs" %>
55
+ </div>
56
+ </td>
57
+ </tr>
58
+ <% end %>
59
+ </tbody>
60
+
61
+ </table>
62
+ </div>
63
+ <!-- Index - Table -->
64
+
65
+ <!-- New Button -->
66
+ <%= link_to phcdevworks_core_modules.new_modules_category_path, class: "btn btn-primary btn-sm" do %>
67
+ <i class="fad fa-plus-circle"></i>
68
+ Add a New Category
69
+ <% end %>
70
+ <!-- New Button -->
71
+
72
+ </div>
73
+ <!-- Panel - Body -->
74
+
75
+ </div>
76
+ <!-- Panel -->
77
+
78
+ </div>
79
+ </div>
80
+ <!-- Page Content -->
@@ -0,0 +1,47 @@
1
+ <!-- PHCTitleSEO Title Variables -->
2
+ <% phc_title "Category Manager" %>
3
+ <% phc_title_tagline "Add a New Category" %>
4
+ <% phc_breadcrumb_one yield(:phc_title_tagline) %>
5
+ <% phc_breadcrumb_two link_to "Category Index", phcdevworks_core_modules.modules_categories_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
+ <!-- New Form -->
36
+ <%= render 'form', modules_category: @modules_category %>
37
+ <!-- Edit Form -->
38
+
39
+ </div>
40
+ <!-- Panel - Body -->
41
+
42
+ </div>
43
+ <!-- Panel -->
44
+
45
+ </div>
46
+ </div>
47
+ <!-- Page Content -->