phcscriptcdnpro 72.2.0 → 73.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (49) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/phcscriptcdnpro/script/authors_controller.rb +3 -4
  3. data/app/controllers/phcscriptcdnpro/script/extensions_controller.rb +2 -3
  4. data/app/controllers/phcscriptcdnpro/script/licences_controller.rb +2 -3
  5. data/app/controllers/phcscriptcdnpro/script/listings_controller.rb +2 -5
  6. data/app/controllers/phcscriptcdnpro/script/urls_controller.rb +1 -2
  7. data/app/controllers/phcscriptcdnpro/script/versions_controller.rb +2 -3
  8. data/app/helpers/phcscriptcdnpro/application_helper.rb +0 -10
  9. data/app/models/phcscriptcdnpro/script/listing.rb +3 -3
  10. data/app/models/phcscriptcdnpro/script/url.rb +2 -2
  11. data/app/views/layouts/phcscriptcdnpro/application.html.erb +1 -1
  12. data/app/views/layouts/phcscriptcdnpro/components/backend/footer/_footer.html.erb +9 -1
  13. data/app/views/layouts/phcscriptcdnpro/components/backend/navigation/_top_menu.html.erb +0 -1
  14. data/app/views/layouts/phcscriptcdnpro/components/backend/sidebars/_side_menu.html.erb +16 -16
  15. data/app/views/phcscriptcdnpro/script/authors/_form.html.erb +13 -17
  16. data/app/views/phcscriptcdnpro/script/authors/edit.html.erb +16 -3
  17. data/app/views/phcscriptcdnpro/script/authors/index.html.erb +19 -7
  18. data/app/views/phcscriptcdnpro/script/authors/new.html.erb +16 -3
  19. data/app/views/phcscriptcdnpro/script/authors/show.html.erb +35 -42
  20. data/app/views/phcscriptcdnpro/script/extensions/_form.html.erb +11 -11
  21. data/app/views/phcscriptcdnpro/script/extensions/edit.html.erb +15 -2
  22. data/app/views/phcscriptcdnpro/script/extensions/index.html.erb +15 -1
  23. data/app/views/phcscriptcdnpro/script/extensions/new.html.erb +15 -2
  24. data/app/views/phcscriptcdnpro/script/extensions/show.html.erb +34 -41
  25. data/app/views/phcscriptcdnpro/script/licences/_form.html.erb +21 -21
  26. data/app/views/phcscriptcdnpro/script/licences/edit.html.erb +15 -2
  27. data/app/views/phcscriptcdnpro/script/licences/index.html.erb +15 -1
  28. data/app/views/phcscriptcdnpro/script/licences/new.html.erb +15 -2
  29. data/app/views/phcscriptcdnpro/script/licences/show.html.erb +34 -41
  30. data/app/views/phcscriptcdnpro/script/listings/_form.html.erb +25 -25
  31. data/app/views/phcscriptcdnpro/script/listings/edit.html.erb +12 -1
  32. data/app/views/phcscriptcdnpro/script/listings/index.html.erb +12 -0
  33. data/app/views/phcscriptcdnpro/script/listings/new.html.erb +12 -1
  34. data/app/views/phcscriptcdnpro/script/listings/show.html.erb +31 -40
  35. data/app/views/phcscriptcdnpro/script/urls/_form.html.erb +8 -8
  36. data/app/views/phcscriptcdnpro/script/urls/index.html.erb +15 -1
  37. data/app/views/phcscriptcdnpro/script/urls/new.html.erb +15 -2
  38. data/app/views/phcscriptcdnpro/script/urls/show.html.erb +34 -41
  39. data/app/views/phcscriptcdnpro/script/versions/_form.html.erb +4 -4
  40. data/app/views/phcscriptcdnpro/script/versions/edit.html.erb +15 -2
  41. data/app/views/phcscriptcdnpro/script/versions/index.html.erb +15 -1
  42. data/app/views/phcscriptcdnpro/script/versions/new.html.erb +15 -2
  43. data/app/views/phcscriptcdnpro/script/versions/show.html.erb +34 -43
  44. data/config/routes.rb +2 -2
  45. data/db/migrate/20160821183652_create_phcscriptcdnpro_script_listings.rb +0 -1
  46. data/db/migrate/20160821183714_create_phcscriptcdnpro_script_authors.rb +0 -1
  47. data/db/migrate/20160821183830_create_phcscriptcdnpro_script_urls.rb +4 -4
  48. data/lib/phcscriptcdnpro/version.rb +1 -1
  49. metadata +61 -103
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 435f8aaf0cf66507576a2e18f49235370e162b49f866f5a4e6c51581e16c11aa
4
- data.tar.gz: aeae3724f3024383798ea522a44891fb39613be9b2a50bbcb4c0196136c8be99
3
+ metadata.gz: 3c4d7ab69f247c93c11fbbe719f8f1f946343845daf7fcfa6ba0cbd0d809cd52
4
+ data.tar.gz: a3e2b86aa46a6d8212d541e50560253fcae97f0fc0e696c95cdcd446e34a4d92
5
5
  SHA512:
6
- metadata.gz: 79068fa05eebbee1a333cd99fa32524ae7319c3428ef0d0b7f0b6d32fa914057ce92bfacef5f545ddf43557cb4002ca01f48fa61146d6247bd82f4e30e6c30ee
7
- data.tar.gz: e6e27e4e7edf82e9847dd6cf8134182208d375963d0d327c86b808fc9ba315a9a94a03e08465070dc99b4b3ed47213b9f7194ff8f5039389f5335c7b8741ea32
6
+ metadata.gz: 19af2e0f441396d4c7cbd1ade816e1287cee99e20a4d09fbc28530d3f1dc26b883aee0e7013b34211b6e735780ce3c1bb763cfd48032b73e30bdfbbd090dcb52
7
+ data.tar.gz: ebaa258fbea2b324080d6590a4d6d2830d64fb4e00d31762a95721c038a6f41c4b68bf2a1c8672223c7a6cd3a25b351b107a7c7201ed6dadc1c5e1b5ba858256
@@ -4,9 +4,8 @@ module Phcscriptcdnpro
4
4
  class Script::AuthorsController < ApplicationController
5
5
 
6
6
  # Include Core Helpers, Security & Action Filters
7
- include Phccorehelpers::ApplicationHelper
7
+ include Phccorehelpers::PhcpluginsproHelper
8
8
  before_action :authenticate_user!
9
- before_action :phc_accounts_pro_admin_only
10
9
  before_action :set_paper_trail_whodunnit
11
10
  before_action :set_script_author, only: [:show, :edit, :update, :destroy]
12
11
 
@@ -18,7 +17,7 @@ module Phcscriptcdnpro
18
17
  # DETAILS - Script Author
19
18
  def show
20
19
  @script_authors = Script::Author.friendly.find(params[:id])
21
- @versions = Phcscriptcdnpro::AuthorVersion.where(item_id: params[:id], item_type: 'Phcscriptcdnpro::Script::Author')
20
+ @versions = Phcscriptcdnpro::AuthorVersions.where(item_id: params[:id], item_type: 'Phcscriptcdnpro::Script::Author')
22
21
  end
23
22
 
24
23
  # NEW - Script Author
@@ -70,7 +69,7 @@ module Phcscriptcdnpro
70
69
 
71
70
  # Whitelist
72
71
  def script_author_params
73
- params.require(:script_author).permit(:authorfirstname, :authorlastname, :authorwebsite, :authorgithub, :authortwitter, :slug, :user_id, :org_id)
72
+ params.require(:script_author).permit(:authorfirstname, :authorlastname, :authorwebsite, :authorgithub, :slug, :user_id, :org_id, :listing_id)
74
73
  end
75
74
 
76
75
  end
@@ -4,9 +4,8 @@ module Phcscriptcdnpro
4
4
  class Script::ExtensionsController < ApplicationController
5
5
 
6
6
  # Include Core Helpers, Security & Action Filters
7
- include Phccorehelpers::ApplicationHelper
7
+ include Phccorehelpers::PhcpluginsproHelper
8
8
  before_action :authenticate_user!
9
- before_action :phc_accounts_pro_admin_only
10
9
  before_action :set_paper_trail_whodunnit
11
10
  before_action :set_script_extension, only: [:show, :edit, :update, :destroy]
12
11
 
@@ -70,7 +69,7 @@ module Phcscriptcdnpro
70
69
 
71
70
  # Whitelists
72
71
  def script_extension_params
73
- params.require(:script_extension).permit(:scriptextensionname, :scriptextensiondes, :scriptextension, :slug, :user_id, :org_id)
72
+ params.require(:script_extension).permit(:scriptextensionname, :scriptextensiondes, :scriptextension, :slug, :user_id, :org_id, :listing_id)
74
73
  end
75
74
 
76
75
  end
@@ -4,9 +4,8 @@ module Phcscriptcdnpro
4
4
  class Script::LicencesController < ApplicationController
5
5
 
6
6
  # Include Core Helpers, Security & Action Filters
7
- include Phccorehelpers::ApplicationHelper
7
+ include Phccorehelpers::PhcpluginsproHelper
8
8
  before_action :authenticate_user!
9
- before_action :phc_accounts_pro_admin_only
10
9
  before_action :set_paper_trail_whodunnit
11
10
  before_action :set_script_licence, only: [:show, :edit, :update, :destroy]
12
11
 
@@ -70,7 +69,7 @@ module Phcscriptcdnpro
70
69
 
71
70
  # Whitelists
72
71
  def script_licence_params
73
- params.require(:script_licence).permit(:lcncname, :lcncdescription, :lcncdescript, :lcnccomgpl, :lcncarvlfsf, :lcncarvlosi, :lcncarvlcopyfree, :lcncarvldebian, :lcncarvlfedora, :slug, :user_id, :org_id)
72
+ params.require(:script_licence).permit(:lcncname, :lcncdescription, :lcncdescript, :lcnccomgpl, :lcncarvlfsf, :lcncarvlosi, :lcncarvlcopyfree, :lcncarvldebian, :lcncarvlfedora, :slug, :user_id, :org_id, :listing_id)
74
73
  end
75
74
 
76
75
  end
@@ -4,9 +4,8 @@ module Phcscriptcdnpro
4
4
  class Script::ListingsController < ApplicationController
5
5
 
6
6
  # Include Core Helpers, Security & Action Filters
7
- include Phccorehelpers::ApplicationHelper
7
+ include Phccorehelpers::PhcpluginsproHelper
8
8
  before_action :authenticate_user!
9
- before_action :phc_accounts_pro_admin_only
10
9
  before_action :set_paper_trail_whodunnit
11
10
  before_action :set_script_listing, only: [:show, :edit, :update, :destroy]
12
11
 
@@ -24,8 +23,6 @@ module Phcscriptcdnpro
24
23
  # NEW - Script Listings
25
24
  def new
26
25
  @script_listing = Script::Listing.new
27
- @script_listing.user_id = current_user.id
28
- @script_listing.org_id = current_user.org_id
29
26
  end
30
27
 
31
28
  # EDIT - Script Listings
@@ -70,7 +67,7 @@ module Phcscriptcdnpro
70
67
 
71
68
  # Whitelist
72
69
  def script_listing_params
73
- params.require(:script_listing).permit(:scripttitle, :scriptdescription, :descriptionsource, :scriptwebsite, :scripttwitter, :scriptgithub, :scriptinitialrelease, :scriptlastestrelease, :scriptbetarelease, :scriptstatus, :slug, :user_id, :org_id, :version_id, :author_id, :licence_id)
70
+ params.require(:script_listing).permit(:scripttitle, :scriptdescription, :descriptionsource, :scriptwebsite, :scriptgithub, :scriptinitialrelease, :scriptlastestrelease, :scriptbetarelease, :scriptlastestreleasecdn, :scriptstatus, :slug, :user_id, :org_id, :version_id, :author_id, :licence_id)
74
71
  end
75
72
 
76
73
  end
@@ -4,9 +4,8 @@ module Phcscriptcdnpro
4
4
  class Script::UrlsController < ApplicationController
5
5
 
6
6
  # Include Core Helpers, Security & Action Filters
7
- include Phccorehelpers::ApplicationHelper
7
+ include Phccorehelpers::PhcpluginsproHelper
8
8
  before_action :authenticate_user!
9
- before_action :phc_accounts_pro_admin_only
10
9
  before_action :set_paper_trail_whodunnit
11
10
  before_action :set_script_url, only: [:show, :edit, :update, :destroy]
12
11
 
@@ -4,9 +4,8 @@ module Phcscriptcdnpro
4
4
  class Script::VersionsController < ApplicationController
5
5
 
6
6
  # Include Core Helpers, Security & Action Filters
7
- include Phccorehelpers::ApplicationHelper
7
+ include Phccorehelpers::PhcpluginsproHelper
8
8
  before_action :authenticate_user!
9
- before_action :phc_accounts_pro_admin_only
10
9
  before_action :set_paper_trail_whodunnit
11
10
  before_action :set_script_version, only: [:show, :edit, :update, :destroy]
12
11
 
@@ -70,7 +69,7 @@ module Phcscriptcdnpro
70
69
 
71
70
  # Only allow a trusted parameter "white list" through.
72
71
  def script_version_params
73
- params.require(:script_version).permit(:scriptversion, :slug, :user_id, :org_id)
72
+ params.require(:script_version).permit(:scriptversion, :slug, :user_id, :org_id, :listing_id)
74
73
  end
75
74
 
76
75
  end
@@ -1,14 +1,4 @@
1
1
  module Phcscriptcdnpro
2
2
  module ApplicationHelper
3
-
4
- # Add Active to Menu
5
- def is_active_controller(controller_name)
6
- params[:controller] == controller_name ? "active open selected" : nil
7
- end
8
-
9
- def is_active_action(action_name)
10
- params[:action] == action_name ? "active" : nil
11
- end
12
-
13
3
  end
14
4
  end
@@ -9,9 +9,9 @@ module Phcscriptcdnpro
9
9
 
10
10
  # Relationships
11
11
  has_many :urls, class_name: 'Phcscriptcdnpro::Script::Url'
12
- belongs_to :author, class_name: 'Phcscriptcdnpro::Script::Author'
13
- belongs_to :version, class_name: 'Phcscriptcdnpro::Script::Version'
14
- belongs_to :licence, class_name: 'Phcscriptcdnpro::Script::Licence'
12
+ belongs_to :author, class_name: 'Phcscriptcdnpro::Script::Author', optional: true
13
+ belongs_to :version, class_name: 'Phcscriptcdnpro::Script::Version', optional: true
14
+ belongs_to :licence, class_name: 'Phcscriptcdnpro::Script::Licence', optional: true
15
15
 
16
16
  # Clean URL Define
17
17
  friendly_id :phcscriptcdnpro_listing_slug, use: [:slugged, :finders]
@@ -9,8 +9,8 @@ module Phcscriptcdnpro
9
9
 
10
10
  # Relationships
11
11
  belongs_to :listing, class_name: 'Phcscriptcdnpro::Script::Listing'
12
- belongs_to :version, class_name: 'Phcscriptcdnpro::Script::Version'
13
- belongs_to :extension, class_name: 'Phcscriptcdnpro::Script::Extension'
12
+ belongs_to :version, class_name: 'Phcscriptcdnpro::Script::Version', optional: true
13
+ belongs_to :extension, class_name: 'Phcscriptcdnpro::Script::Extension', optional: true
14
14
 
15
15
  # Validation for Form Fields
16
16
  validates :scripturl,
@@ -2,7 +2,7 @@
2
2
  <html>
3
3
  <head>
4
4
 
5
- <% phc_seo_title "PHCScriptCDN(Pro) CDNMS" %>
5
+ <% phc_seo_title "PHCScriptCDN(Pro) CDNSM" %>
6
6
  <% phc_seo_description "Script CDN Listings Management System by PHCDevworks" %>
7
7
 
8
8
  <!-- -PHC- SEO and Site Description -->
@@ -1 +1,9 @@
1
- <span class="float-left">&copy; 2012-<%= Time.now.year %> - <strong>PHC</strong>ScriptCDN(Pro) Engine v<%= Gem.loaded_specs["phcscriptcdnpro"].version.to_s %></span> <span class="float-right">Developed with <i class="fas fa-heart hanna_hearts"></i> by <strong>PHC</strong>Devworks</span>
1
+ <span class="float-left">
2
+ &copy; 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="<%= is_active_controller('phcpresspro/article/posts') %>"><%= link_to('Article Index', phcpresspro.article_posts_path) %></li>
51
- <li class="<%= is_active_controller('phcpresspro/article/posts#new') %>"><%= link_to('New Aritcle', phcpresspro.new_article_post_path) %></li>
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="<%= is_active_controller('phcpresspro/article/categories') %>"><%= link_to('Category Index', phcpresspro.article_categories_path) %></li>
62
- <li class="<%= is_active_controller('phcpresspro/article/categories#new') %>"><%= link_to('New Category', phcpresspro.new_article_category_path) %></li>
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="<%= is_active_controller('phcmemberspro/member/profiles') %>"><%= link_to('Profile Index', phcmemberspro.member_profiles_path) %></li>
79
- <li class="<%= is_active_controller('phcmemberspro/member/profiles#new') %>"><%= link_to('New Member Profile', phcmemberspro.new_member_profile_path) %></li>
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,8 @@
86
86
  <span>Member's Directory</span>
87
87
  </a>
88
88
  <ul class="sub-menu">
89
- <li class="<%= is_active_controller('phcmemberspro/directory/categories') %>"><%= link_to('Directory Index', phcmemberspro.directory_categories_path) %></li>
90
- <li class="<%= is_active_controller('phcmemberspro/directory/categories#new') %>"><%= link_to('New Directory Listing', phcmemberspro.new_directory_category_path) %></li>
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
91
  </ul>
92
92
  </li>
93
93
  <!-- Sidebar - Sidebar Navigation - PHCPress(Pro) -->
@@ -103,8 +103,8 @@
103
103
  <span>Script Posts</span>
104
104
  </a>
105
105
  <ul class="sub-menu">
106
- <li class="<%= is_active_controller('phcscriptcdnpro/script/listings') %>"><%= link_to "All Script Listings", phcscriptcdnpro.script_listings_path %></li>
107
- <li class="<%= is_active_controller('phcscriptcdnpro/script/listings#new') %>"><%= link_to "Add a New Listing", phcscriptcdnpro.new_script_listing_path %></li>
106
+ <li class="<%= phc_menus_active_controller('phcscriptcdnpro/script/listings') %>"><%= link_to "All Script Listings", phcscriptcdnpro.script_listings_path %></li>
107
+ <li class="<%= phc_menus_active_controller('phcscriptcdnpro/script/listings#new') %>"><%= link_to "Add a New Listing", phcscriptcdnpro.new_script_listing_path %></li>
108
108
  </ul>
109
109
  </li>
110
110
  <li class="has-sub">
@@ -114,10 +114,10 @@
114
114
  <span>Script Extras</span>
115
115
  </a>
116
116
  <ul class="sub-menu">
117
- <li class="<%= is_active_controller('phcscriptcdnpro/script/authors') %>"><%= link_to "Script Authors", phcscriptcdnpro.script_authors_path %></li>
118
- <li class="<%= is_active_controller('phcscriptcdnpro/script/licences') %>"><%= link_to "Script Licences", phcscriptcdnpro.script_licences_path %></li>
119
- <li class="<%= is_active_controller('phcscriptcdnpro/script/extensions') %>"><%= link_to "Script Extensions", phcscriptcdnpro.script_extensions_path %></li>
120
- <li class="<%= is_active_controller('phcscriptcdnpro/script/versions') %>"><%= link_to "Script Versions", phcscriptcdnpro.script_versions_path %></li>
117
+ <li class="<%= phc_menus_active_controller('phcscriptcdnpro/script/authors') %>"><%= link_to "Script Authors", phcscriptcdnpro.script_authors_path %></li>
118
+ <li class="<%= phc_menus_active_controller('phcscriptcdnpro/script/licences') %>"><%= link_to "Script Licences", phcscriptcdnpro.script_licences_path %></li>
119
+ <li class="<%= phc_menus_active_controller('phcscriptcdnpro/script/extensions') %>"><%= link_to "Script Extensions", phcscriptcdnpro.script_extensions_path %></li>
120
+ <li class="<%= phc_menus_active_controller('phcscriptcdnpro/script/versions') %>"><%= link_to "Script Versions", phcscriptcdnpro.script_versions_path %></li>
121
121
  </ul>
122
122
  </li>
123
123
  <!-- Sidebar - Sidebar Navigation - PHCScriptCDN(Pro) -->
@@ -133,8 +133,8 @@
133
133
  <span>Accounts Dashboard</span>
134
134
  </a>
135
135
  <ul class="sub-menu">
136
- <li class="<%= is_active_controller('phcaccountspro/admin/edit') %>"><%= link_to('Settings', phcaccountspro.edit_user_registration_path) %></li>
137
- <li class="<%= is_active_controller('phcaccountspro/admin/new') %>"><%= link_to('Logout', phcaccountspro.destroy_user_session_path, method: :delete) %></li>
136
+ <li class="<%= phc_menus_active_controller('phcaccountspro/admin/edit') %>"><%= link_to('Settings', phcaccountspro.edit_user_registration_path) %></li>
137
+ <li class="<%= phc_menus_active_controller('phcaccountspro/admin/new') %>"><%= link_to('Logout', phcaccountspro.destroy_user_session_path, method: :delete) %></li>
138
138
  </ul>
139
139
  </li>
140
140
  <!-- Sidebar - Sidebar Navigation - PHCAccountsPro -->
@@ -1,34 +1,30 @@
1
- <%= form_with(model: script_author, local: true) do |form| %>
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
- <!-- Form Input Fields -->
6
+ <!-- Form_phc_scriptcdn_author Input Fields -->
7
7
  <div class="form-group field_with_error">
8
- <%= form.label :authorfirstname, "Author First Name" %>
9
- <%= form.text_field :authorfirstname, placeholder: "Author First Name", class: "form-control" %>
8
+ <%= form_phc_scriptcdn_author.label :authorfirstname, "Author First Name" %>
9
+ <%= form_phc_scriptcdn_author.text_field :authorfirstname, placeholder: "Author First Name", class: "form-control" %>
10
10
  </div>
11
11
  <div class="form-group field_with_error">
12
- <%= form.label :authorlastname, "Author Last Name" %>
13
- <%= form.text_field :authorlastname, placeholder: "Author Last Name", class: "form-control" %>
12
+ <%= form_phc_scriptcdn_author.label :authorlastname, "Author Last Name" %>
13
+ <%= form_phc_scriptcdn_author.text_field :authorlastname, placeholder: "Author Last Name", class: "form-control" %>
14
14
  </div>
15
15
  <div class="form-group field_with_error">
16
- <%= form.label :authorwebsite, "Author Website" %>
17
- <%= form.text_field :authorwebsite, placeholder: "Author Website", class: "form-control" %>
16
+ <%= form_phc_scriptcdn_author.label :authorwebsite, "Author Website" %>
17
+ <%= form_phc_scriptcdn_author.text_field :authorwebsite, placeholder: "Author Website", class: "form-control" %>
18
18
  </div>
19
19
  <div class="form-group field_with_error">
20
- <%= form.label :authorgithub, "Author Github Address" %>
21
- <%= form.text_field :authorgithub, placeholder: "Author Github Address", class: "form-control" %>
20
+ <%= form_phc_scriptcdn_author.label :authorgithub, "Author Github Address" %>
21
+ <%= form_phc_scriptcdn_author.text_field :authorgithub, placeholder: "Author Github Address", class: "form-control" %>
22
22
  </div>
23
- <div class="form-group field_with_error">
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
- <!-- Form Submition Button -->
25
+ <!-- Form_phc_scriptcdn_author Submition Button -->
30
26
  <div class="actions">
31
- <%= form.submit class: "btn btn-primary" %>
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 Listings Manager" %>
2
+ <% phc_title "Script Authors" %>
3
3
  <% phc_title_tagline "Update Author Data" %>
4
- <% phc_breadcrumb_one link_to "Author Index", phcscriptcdnpro.script_authors_path %>
5
- <% phc_breadcrumb_two yield(:phc_title_tagline) %>
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">
@@ -1,9 +1,23 @@
1
1
  <!-- Title System -->
2
- <% phc_title "Script Listings Manager" %>
2
+ <% phc_title "Script Authors" %>
3
3
  <% phc_title_tagline "Author Index" %>
4
- <% phc_breadcrumb_one yield(:phc_title_tagline) %>
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) %>
5
7
  <!-- Title System -->
6
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
+
7
21
  <!-- Page Content -->
8
22
  <div class="panel panel-inverse">
9
23
  <div class="panel-heading">
@@ -24,7 +38,6 @@
24
38
  <th>Last Name</th>
25
39
  <th>Website</th>
26
40
  <th>Github</th>
27
- <th>Twitter</th>
28
41
  </tr>
29
42
  </thead>
30
43
  <tbody>
@@ -34,12 +47,11 @@
34
47
  <td><%= link_to script_author.authorlastname, script_author %></td>
35
48
  <td><%= link_to script_author.authorwebsite, script_author %></td>
36
49
  <td><%= link_to script_author.authorgithub, script_author %></td>
37
- <td><%= link_to script_author.authortwitter, script_author %></td>
38
50
  </tr>
39
51
  <% end %>
40
- </tbody>
41
- </table>
42
-
52
+ </tbody>
53
+ </table>
54
+ </div>
43
55
  </div>
44
56
  </div>
45
57
  <!-- Page Content -->
@@ -1,10 +1,23 @@
1
1
  <!-- Title System -->
2
- <% phc_title "Script Listings Manager" %>
2
+ <% phc_title "Script Authors" %>
3
3
  <% phc_title_tagline "Add a New Author" %>
4
- <% phc_breadcrumb_one link_to "Author Index", phcscriptcdnpro.script_authors_path %>
5
- <% phc_breadcrumb_two yield(:phc_title_tagline) %>
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">