phcscriptcdnpro 73.1.0 → 74.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (60) hide show
  1. checksums.yaml +4 -4
  2. data/MIT-LICENSE +1 -1
  3. data/README.md +1 -1
  4. data/app/assets/javascripts/phcscriptcdnpro/application.js +1 -1
  5. data/app/assets/stylesheets/phcscriptcdnpro/application.scss +1 -1
  6. data/app/controllers/phcscriptcdnpro/application_controller.rb +15 -20
  7. data/app/controllers/phcscriptcdnpro/script/authors_controller.rb +15 -16
  8. data/app/controllers/phcscriptcdnpro/script/extensions_controller.rb +17 -18
  9. data/app/controllers/phcscriptcdnpro/script/licences_controller.rb +14 -15
  10. data/app/controllers/phcscriptcdnpro/script/listings_controller.rb +12 -13
  11. data/app/controllers/phcscriptcdnpro/script/urls_controller.rb +15 -16
  12. data/app/controllers/phcscriptcdnpro/script/versions_controller.rb +16 -21
  13. data/app/models/phcscriptcdnpro/application_record.rb +0 -2
  14. data/app/models/phcscriptcdnpro/script.rb +0 -2
  15. data/app/models/phcscriptcdnpro/script/author.rb +16 -7
  16. data/app/models/phcscriptcdnpro/script/extension.rb +5 -8
  17. data/app/models/phcscriptcdnpro/script/licence.rb +5 -8
  18. data/app/models/phcscriptcdnpro/script/listing.rb +13 -18
  19. data/app/models/phcscriptcdnpro/script/url.rb +4 -16
  20. data/app/models/phcscriptcdnpro/script/version.rb +6 -9
  21. data/app/views/layouts/phcscriptcdnpro/application.html.erb +6 -5
  22. data/app/views/layouts/phcscriptcdnpro/components/backend/footer/_footer.html.erb +5 -5
  23. data/app/views/layouts/phcscriptcdnpro/components/backend/navigation/_top_menu.html.erb +0 -41
  24. data/app/views/layouts/phcscriptcdnpro/components/backend/sidebars/_side_menu.html.erb +68 -61
  25. data/app/views/phcscriptcdnpro/script/authors/_form.html.erb +19 -18
  26. data/app/views/phcscriptcdnpro/script/authors/edit.html.erb +4 -4
  27. data/app/views/phcscriptcdnpro/script/authors/index.html.erb +19 -15
  28. data/app/views/phcscriptcdnpro/script/authors/new.html.erb +4 -4
  29. data/app/views/phcscriptcdnpro/script/authors/show.html.erb +1 -4
  30. data/app/views/phcscriptcdnpro/script/extensions/_form.html.erb +16 -15
  31. data/app/views/phcscriptcdnpro/script/extensions/edit.html.erb +4 -7
  32. data/app/views/phcscriptcdnpro/script/extensions/index.html.erb +19 -15
  33. data/app/views/phcscriptcdnpro/script/extensions/new.html.erb +4 -6
  34. data/app/views/phcscriptcdnpro/script/extensions/show.html.erb +1 -4
  35. data/app/views/phcscriptcdnpro/script/licences/_form.html.erb +31 -30
  36. data/app/views/phcscriptcdnpro/script/licences/edit.html.erb +4 -6
  37. data/app/views/phcscriptcdnpro/script/licences/index.html.erb +19 -15
  38. data/app/views/phcscriptcdnpro/script/licences/new.html.erb +4 -6
  39. data/app/views/phcscriptcdnpro/script/licences/show.html.erb +1 -4
  40. data/app/views/phcscriptcdnpro/script/listings/_form.html.erb +41 -37
  41. data/app/views/phcscriptcdnpro/script/listings/edit.html.erb +4 -4
  42. data/app/views/phcscriptcdnpro/script/listings/index.html.erb +24 -19
  43. data/app/views/phcscriptcdnpro/script/listings/new.html.erb +6 -5
  44. data/app/views/phcscriptcdnpro/script/listings/show.html.erb +3 -5
  45. data/app/views/phcscriptcdnpro/script/urls/_form.html.erb +17 -16
  46. data/app/views/phcscriptcdnpro/script/urls/edit.html.erb +15 -5
  47. data/app/views/phcscriptcdnpro/script/urls/index.html.erb +19 -15
  48. data/app/views/phcscriptcdnpro/script/urls/new.html.erb +4 -6
  49. data/app/views/phcscriptcdnpro/script/urls/show.html.erb +1 -4
  50. data/app/views/phcscriptcdnpro/script/versions/_form.html.erb +7 -6
  51. data/app/views/phcscriptcdnpro/script/versions/edit.html.erb +4 -6
  52. data/app/views/phcscriptcdnpro/script/versions/index.html.erb +19 -15
  53. data/app/views/phcscriptcdnpro/script/versions/new.html.erb +4 -6
  54. data/app/views/phcscriptcdnpro/script/versions/show.html.erb +1 -4
  55. data/config/routes.rb +19 -20
  56. data/db/migrate/20160821183652_create_phcscriptcdnpro_script_listings.rb +1 -1
  57. data/lib/phcscriptcdnpro.rb +0 -1
  58. data/lib/phcscriptcdnpro/engine.rb +16 -15
  59. data/lib/phcscriptcdnpro/version.rb +1 -1
  60. metadata +62 -62
@@ -7,27 +7,30 @@
7
7
 
8
8
  <!-- Page Bradcrumbs -->
9
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>
10
+ <li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
11
+ <li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_two) %></li>
12
12
  </ol>
13
13
  <!-- Page Bradcrumbs -->
14
14
 
15
15
  <!-- Page Header -->
16
16
  <h1 class="page-header"><%= yield(:phc_title) %></h1>
17
17
  <!-- Page Header -->
18
-
19
- <!-- Page Content -->
18
+
19
+ <!-- Page & Panel Content -->
20
20
  <div class="panel panel-inverse">
21
- <div class="panel-heading">
22
- <div class="panel-heading-btn">
23
- <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-default" data-click="panel-expand"><i class="fa fa-expand"></i></a>
24
- <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-success" data-click="panel-reload"><i class="fa fa-redo"></i></a>
25
- <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-warning" data-click="panel-collapse"><i class="fa fa-minus"></i></a>
26
- </div>
27
- <h4 class="panel-title"><%= yield(:phc_title_tagline) %></h4>
28
- </div>
29
- <div class="panel-body">
30
- <!-- Table - Article Index -->
21
+ <!-- Panel Heading -->
22
+ <div class="panel-heading">
23
+ <div class="panel-heading-btn">
24
+ <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-default" data-click="panel-expand"><i class="fa fa-expand"></i></a>
25
+ <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-success" data-click="panel-reload"><i class="fa fa-redo"></i></a>
26
+ <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-warning" data-click="panel-collapse"><i class="fa fa-minus"></i></a>
27
+ </div>
28
+ <h4 class="panel-title"><%= yield(:phc_title_tagline) %></h4>
29
+ </div>
30
+ <!-- Panel Heading -->
31
+ <!-- Panel Body -->
32
+ <div class="panel-body">
33
+ <!-- Table - Licence Index -->
31
34
  <div class="table-responsive">
32
35
  <table class="table table-striped table-bordered">
33
36
  <thead>
@@ -57,9 +60,10 @@
57
60
  </table>
58
61
  <%= link_to phcscriptcdnpro.new_script_licence_path, class: "btn btn-primary btn-sm" do %>
59
62
  <i class="fas fa-plus-circle"></i>
60
- <%= "Add a New Licence" %>
63
+ Add a New Licence
61
64
  <% end %>
62
65
  </div>
66
+ <!-- Table - Licence Index -->
63
67
  </div>
64
68
  </div>
65
69
  <!-- Page Content -->
@@ -17,7 +17,7 @@
17
17
  <!-- Page Header -->
18
18
  <h1 class="page-header"><%= yield(:phc_title) %></h1>
19
19
  <!-- Page Header -->
20
-
20
+
21
21
  <!-- Page Content -->
22
22
  <div class="panel panel-inverse">
23
23
  <div class="panel-heading">
@@ -26,14 +26,12 @@
26
26
  <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-success" data-click="panel-reload"><i class="fa fa-redo"></i></a>
27
27
  <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-warning" data-click="panel-collapse"><i class="fa fa-minus"></i></a>
28
28
  </div>
29
- <h4 class="panel-title"><%= yield(:phc_title_tagline) %></h4>
29
+ <h4 class="panel-title"><%= yield(:phc_title) %></h4>
30
30
  </div>
31
31
  <div class="panel-body">
32
-
33
- <!-- -->
32
+ <!-- Form for New Licence -->
34
33
  <%= render 'form', script_licence: @script_licence %>
35
- <!-- -->
36
-
34
+ <!-- Form for New Licence -->
37
35
  </div>
38
36
  </div>
39
37
  <!-- Page Content -->
@@ -30,12 +30,10 @@
30
30
  </div>
31
31
  </div>
32
32
  <div class="panel-body">
33
-
34
33
  <div class="btn-group d-flex" role="group">
35
34
  <%= link_to 'Update', phcscriptcdnpro.edit_script_licence_path, class: "btn btn-primary" %>
36
35
  <%= link_to 'Remove', phcscriptcdnpro.script_licence_path, method: :delete, data: { confirm: 'Are you sure?' }, class: "btn btn-danger" %>
37
- </div>
38
-
36
+ </div>
39
37
  </div>
40
38
  </div>
41
39
 
@@ -44,7 +42,6 @@
44
42
 
45
43
  <!-- Main Panel -->
46
44
  <div class="col-lg-8">
47
-
48
45
  </div>
49
46
  <!-- Main Panel -->
50
47
 
@@ -1,60 +1,64 @@
1
- <%= form_with(model: script_listing, local: true) do |phc_scriptcdn_pro_listings| %>
1
+ <%= form_with(model: script_listing, local: true) do |form| %>
2
2
 
3
- <!-- Validation System -->
4
- <%= render 'phcnotifi/validations', :object => @script_listing %>
5
- <!-- Validation System -->
3
+ <!-- PHCNotifi Render Validation -->
4
+ <%= render 'phcnotifi/default/validations', :object => @script_listing %>
5
+ <!-- PHCNotifi Render Validation -->
6
6
 
7
- <div class="form-group field_with_error">
8
- <%= phc_scriptcdn_pro_listings.label :script_tittle %>
9
- <%= phc_scriptcdn_pro_listings.text_field :script_tittle, placeholder: "Script Title", class: "form-control" %>
10
- </div>
11
- <div class="form-group field_with_error">
12
- <%= phc_scriptcdn_pro_listings.label :script_description, "Script Description" %>
13
- <%= phc_scriptcdn_pro_listings.text_area :script_description, placeholder: "Script Description", class: "form-control" %>
7
+ <!-- Form Input Fields -->
8
+ <div class="form-group field_with_errors">
9
+ <%= form.label :script_title, "Script Title" %>
10
+ <%= form.text_field :script_title, placeholder: "Script Title", class: "form-control" %>
14
11
  </div>
15
- <div class="form-group field_with_error">
16
- <%= phc_scriptcdn_pro_listings.label :script_source, "Script Source Code" %>
17
- <%= phc_scriptcdn_pro_listings.text_field :script_source, placeholder: "Script Source", class: "form-control" %>
12
+ <div class="form-group field_with_errors">
13
+ <%= form.label :script_description, "Script Description" %>
14
+ <%= form.text_area :script_description, placeholder: "Script Description", class: "form-control" %>
18
15
  </div>
19
- <div class="form-group field_with_error">
20
- <%= phc_scriptcdn_pro_listings.label :script_website, "Script Website" %>
21
- <%= phc_scriptcdn_pro_listings.text_field :script_website, placeholder: "Script Website", class: "form-control" %>
16
+ <div class="form-group field_with_errors">
17
+ <%= form.label :script_source, "Script Source Code" %>
18
+ <%= form.text_field :script_source, placeholder: "Script Source", class: "form-control" %>
22
19
  </div>
23
- <div class="form-group field_with_error">
24
- <%= phc_scriptcdn_pro_listings.label :script_github, "Script Github" %>
25
- <%= phc_scriptcdn_pro_listings.text_field :script_github, placeholder: "Script Github Address", class: "form-control" %>
20
+ <div class="form-group field_with_errors">
21
+ <%= form.label :script_website, "Script Website" %>
22
+ <%= form.text_field :script_website, placeholder: "Script Website", class: "form-control" %>
26
23
  </div>
27
- <div class="form-group field_with_error">
28
- <%= phc_scriptcdn_pro_listings.label :script_initial_release, "Initial Release" %>
29
- <%= phc_scriptcdn_pro_listings.date_select :script_initial_release, start_year: 1981, class: "form-control" %>
24
+ <div class="form-group field_with_errors">
25
+ <%= form.label :script_github, "Script Github" %>
26
+ <%= form.text_field :script_github, placeholder: "Script Github Address", class: "form-control" %>
30
27
  </div>
31
- <div class="form-group field_with_error">
32
- <%= phc_scriptcdn_pro_listings.label :script_lastest_release, "Latest Release" %>
33
- <%= phc_scriptcdn_pro_listings.date_select :script_lastest_release, start_year: 1981, class: "form-control" %>
28
+ <div class="form-group field_with_errors">
29
+ <%= form.label :script_initial_release, "Initial Release" %>
30
+ <%= form.date_select :script_initial_release, start_year: 1981, class: "form-control" %>
34
31
  </div>
35
- <div class="form-group field_with_error">
36
- <%= phc_scriptcdn_pro_listings.label :script_beta_release, "Preview Release" %>
37
- <%= phc_scriptcdn_pro_listings.date_select :script_beta_release, start_year: 1981, class: "form-control" %>
32
+ <div class="form-group field_with_errors">
33
+ <%= form.label :script_lastest_release, "Latest Release" %>
34
+ <%= form.date_select :script_lastest_release, start_year: 1981, class: "form-control" %>
38
35
  </div>
39
- <div class="form-group field_with_error">
40
- <%= phc_scriptcdn_pro_listings.label :script_lastest_release_cdn, "Script CDN Release" %>
41
- <%= phc_scriptcdn_pro_listings.date_select :script_lastest_release_cdn, start_year: 1981, class: "form-control" %>
36
+ <div class="form-group field_with_errors">
37
+ <%= form.label :script_beta_release, "Preview Release" %>
38
+ <%= form.date_select :script_beta_release, start_year: 1981, class: "form-control" %>
42
39
  </div>
43
40
  <div class="form-group field_with_errors">
41
+ <%= form.label :script_lastest_release_cdn, "Script CDN Release" %>
42
+ <%= form.date_select :script_lastest_release_cdn, start_year: 1981, class: "form-control" %>
43
+ </div>
44
+ <div class="form-group field_with_errorss">
44
45
  <label>Script Licence</label>
45
46
  <%= collection_select(:script_listing, :licence_id, Phcscriptcdnpro::Script::Licence.order('licence_name'), :id, :licence_name, {}, {class: "form-control"}) %>
46
47
  </div>
47
- <div class="form-group field_with_errors">
48
+ <div class="form-group field_with_errorss">
48
49
  <label>Script Author</label>
49
50
  <%= collection_select(:script_listing, :author_id, Phcscriptcdnpro::Script::Author.order('author_first_name'), :id, :author_first_name, {}, {class: "form-control"}) %>
50
51
  </div>
51
- <div class="form-group field_with_error">
52
- <%= phc_scriptcdn_pro_listings.label :script_status, "Script Status" %>
53
- <%= phc_scriptcdn_pro_listings.select( :script_status, [['Active','Active'],['Outdated','Out Dated'],['Deactivated','Not Active']], {}, {class: "form-control"}) %>
52
+ <div class="form-group field_with_errors">
53
+ <%= form.label :script_status, "Script Status" %>
54
+ <%= form.select( :script_status, [['Active','Active'],['Outdated','Out Dated'],['Deactivated','Not Active']], {}, {class: "form-control"}) %>
54
55
  </div>
56
+ <!-- Form Input Fields -->
55
57
 
58
+ <!-- Form Submition Button -->
56
59
  <div class="actions">
57
- <%= phc_scriptcdn_pro_listings.submit class: "btn btn-primary" %>
60
+ <%= form.submit class: "btn btn-primary" %>
58
61
  </div>
62
+ <!-- For Submition Button -->
59
63
 
60
64
  <% end %>
@@ -15,7 +15,7 @@
15
15
  <!-- Page Header -->
16
16
  <h1 class="page-header"><%= yield(:phc_title) %></h1>
17
17
  <!-- Page Header -->
18
-
18
+
19
19
  <!-- Page Content -->
20
20
  <div class="panel panel-inverse">
21
21
  <div class="panel-heading">
@@ -24,12 +24,12 @@
24
24
  <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-success" data-click="panel-reload"><i class="fa fa-redo"></i></a>
25
25
  <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-warning" data-click="panel-collapse"><i class="fa fa-minus"></i></a>
26
26
  </div>
27
- <h4 class="panel-title"><%= yield(:phc_title_tagline) %></h4>
27
+ <h4 class="panel-title"><%= yield(:phc_title) %></h4>
28
28
  </div>
29
29
  <div class="panel-body">
30
- <!-- Form for Edit Script Listings -->
30
+ <!-- Form to Edit Listings -->
31
31
  <%= render 'form', script_listing: @script_listing %>
32
- <!-- Form for Edit Script Listings -->
32
+ <!-- Form to Edit Listings -->
33
33
  </div>
34
34
  </div>
35
35
  <!-- Page Content -->
@@ -6,7 +6,8 @@
6
6
 
7
7
  <!-- Page Bradcrumbs -->
8
8
  <ol class="breadcrumb pull-right">
9
- <li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_one) %></li>
9
+ <li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
10
+ <li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_two) %></li>
10
11
  </ol>
11
12
  <!-- Page Bradcrumbs -->
12
13
 
@@ -14,18 +15,21 @@
14
15
  <h1 class="page-header"><%= yield(:phc_title) %></h1>
15
16
  <!-- Page Header -->
16
17
 
17
- <!-- Page Content -->
18
+ <!-- Page & Panel Content -->
18
19
  <div class="panel panel-inverse">
19
- <div class="panel-heading">
20
- <div class="panel-heading-btn">
21
- <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-default" data-click="panel-expand"><i class="fa fa-expand"></i></a>
22
- <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-success" data-click="panel-reload"><i class="fa fa-redo"></i></a>
23
- <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-warning" data-click="panel-collapse"><i class="fa fa-minus"></i></a>
24
- </div>
25
- <h4 class="panel-title"><%= yield(:phc_title_tagline) %></h4>
26
- </div>
27
- <div class="panel-body">
28
- <!-- Table - Article Index -->
20
+ <!-- Panel Heading -->
21
+ <div class="panel-heading">
22
+ <div class="panel-heading-btn">
23
+ <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-default" data-click="panel-expand"><i class="fa fa-expand"></i></a>
24
+ <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-success" data-click="panel-reload"><i class="fa fa-redo"></i></a>
25
+ <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-warning" data-click="panel-collapse"><i class="fa fa-minus"></i></a>
26
+ </div>
27
+ <h4 class="panel-title"><%= yield(:phc_title_tagline) %></h4>
28
+ </div>
29
+ <!-- Panel Heading -->
30
+ <!-- Panel Body -->
31
+ <div class="panel-body">
32
+ <!-- Table - Listings Index -->
29
33
  <div class="table-responsive">
30
34
  <table class="table table-striped table-bordered">
31
35
  <thead>
@@ -38,20 +42,21 @@
38
42
  </thead>
39
43
  <tbody>
40
44
  <% @script_listings.each do |script_listing| %>
41
- <tr>
42
- <td class="vert-align"><%= link_to script_listing.script_tittle, script_listing_path(script_listing) %></td>
43
- <td class="vert-align"><%= link_to script_listing.script_initial_release, script_listing_path(script_listing) %></td>
44
- <td class="vert-align"><%= link_to script_listing.script_lastest_release, script_listing_path(script_listing) %></td>
45
- <td class="vert-align"><%= link_to script_listing.script_beta_release, script_listing_path(script_listing) %></td>
46
- </tr>
45
+ <tr>
46
+ <td class="vert-align"><%= link_to script_listing.script_title, script_listing_path(script_listing) %></td>
47
+ <td class="vert-align"><%= link_to script_listing.script_initial_release, script_listing_path(script_listing) %></td>
48
+ <td class="vert-align"><%= link_to script_listing.script_lastest_release, script_listing_path(script_listing) %></td>
49
+ <td class="vert-align"><%= link_to script_listing.script_beta_release, script_listing_path(script_listing) %></td>
50
+ </tr>
47
51
  <% end %>
48
52
  </tbody>
49
53
  </table>
50
54
  <%= link_to phcscriptcdnpro.new_script_listing_path, class: "btn btn-primary" do %>
51
55
  <i class="fas fa-plus-circle"></i>
52
- <%= "Add a New Script CDN Listing" %>
56
+ Add a New Script CDN Listing
53
57
  <% end %>
54
58
  </div>
59
+ <!-- Table - Listings Index -->
55
60
  </div>
56
61
  </div>
57
62
  <!-- Page Content -->
@@ -8,14 +8,15 @@
8
8
  <!-- Page Bradcrumbs -->
9
9
  <ol class="breadcrumb pull-right">
10
10
  <li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
11
- <li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_two) %></li>
11
+ <li class="breadcrumb-item"><%= yield(:phc_breadcrumb_two) %></li>
12
+ <li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_three) %></li>
12
13
  </ol>
13
14
  <!-- Page Bradcrumbs -->
14
15
 
15
16
  <!-- Page Header -->
16
17
  <h1 class="page-header"><%= yield(:phc_title) %></h1>
17
18
  <!-- Page Header -->
18
-
19
+
19
20
  <!-- Page Content -->
20
21
  <div class="panel panel-inverse">
21
22
  <div class="panel-heading">
@@ -24,12 +25,12 @@
24
25
  <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-success" data-click="panel-reload"><i class="fa fa-redo"></i></a>
25
26
  <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-warning" data-click="panel-collapse"><i class="fa fa-minus"></i></a>
26
27
  </div>
27
- <h4 class="panel-title"><%= yield(:phc_title_tagline) %></h4>
28
+ <h4 class="panel-title"><%= yield(:phc_title) %></h4>
28
29
  </div>
29
30
  <div class="panel-body">
30
- <!-- Form for New Script Listings -->
31
+ <!-- Form for New Listing -->
31
32
  <%= render 'form', script_listing: @script_listing %>
32
- <!-- Form for New Script Listings -->
33
+ <!-- Form for New Listing -->
33
34
  </div>
34
35
  </div>
35
36
  <!-- Page Content -->
@@ -8,7 +8,8 @@
8
8
  <!-- Page Bradcrumbs -->
9
9
  <ol class="breadcrumb pull-right">
10
10
  <li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
11
- <li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_two) %></li>
11
+ <li class="breadcrumb-item"><%= yield(:phc_breadcrumb_two) %></li>
12
+ <li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_three) %></li>
12
13
  </ol>
13
14
  <!-- Page Bradcrumbs -->
14
15
 
@@ -28,12 +29,10 @@
28
29
  </div>
29
30
  </div>
30
31
  <div class="panel-body">
31
-
32
32
  <div class="btn-group d-flex" role="group">
33
33
  <%= link_to 'Update', phcscriptcdnpro.edit_script_listing_path, class: "btn btn-primary" %>
34
34
  <%= link_to 'Remove', phcscriptcdnpro.script_listing_path, method: :delete, data: { confirm: 'Are you sure?' }, class: "btn btn-danger" %>
35
- </div>
36
-
35
+ </div>
37
36
  </div>
38
37
  </div>
39
38
 
@@ -42,7 +41,6 @@
42
41
 
43
42
  <!-- Main Panel -->
44
43
  <div class="col-lg-8">
45
-
46
44
  </div>
47
45
  <!-- Main Panel -->
48
46
 
@@ -1,34 +1,35 @@
1
- <%= form_for([@script_url.listing, @script_url], url: form_url) do |form_phc_scriptcdn_urls| %>
1
+ <%= form_with(model: [ @script_listing, @script_url], url: form_url, local: true) do |form| %>
2
2
 
3
3
  <!-- PHCNotifi Render Validation -->
4
- <%= render 'phcnotifi/validations', :object => @script_url %>
4
+ <%= render 'phcnotifi/default/validations', :object => @script_url %>
5
+ <!-- PHCNotifi Render Validation -->
5
6
 
6
7
  <!-- Form Input Fields -->
7
- <div class="form-group field_with_error">
8
- <%= form_phc_scriptcdn_urls.label :script_url, "Script URL" %>
9
- <%= form_phc_scriptcdn_urls.text_field :script_url, placeholder: "Script URL", class: "form-control" %>
10
- </div>
11
- <div class="form-group field_with_error">
12
- <%= form_phc_scriptcdn_urls.label :script_url_release, "Initial Release" %>
13
- <%= form_phc_scriptcdn_urls.date_select :script_url_release, class: "form-control" %>
8
+ <div class="form-group field_with_errors">
9
+ <%= form.label :script_url, "Script URL" %>
10
+ <%= form.text_field :script_url, placeholder: "Script URL", class: "form-control" %>
14
11
  </div>
15
- <div class="form-group field_with_error">
16
- <%= form_phc_scriptcdn_urls.label :script_url_cdn_update, "Latest Release" %>
17
- <%= form_phc_scriptcdn_urls.date_select :script_url_cdn_update, class: "form-control" %>
12
+ <div class="form-group field_with_errors">
13
+ <%= form.label :script_url_release, "Initial Release" %>
14
+ <%= form.date_select :script_url_release, class: "form-control" %>
18
15
  </div>
19
16
  <div class="form-group field_with_errors">
17
+ <%= form.label :script_url_cdn_update, "Latest Release" %>
18
+ <%= form.date_select :script_url_cdn_update, class: "form-control" %>
19
+ </div>
20
+ <div class="form-group field_with_errorss">
20
21
  <label>Script Version</label>
21
- <%= collection_select(:script_url, :version_id, Phcscriptcdnpro::Script::Version.order('script_version_number'), :id, :script_version_number, {}, {class: "form-control"}) %>
22
+ <%= collection_select(:script_url, :version_id, Phcscriptcdn::Script::Version.order('script_version_number'), :id, :script_version_number, {}, {class: "form-control"}) %>
22
23
  </div>
23
- <div class="form-group field_with_errors">
24
+ <div class="form-group field_with_errorss">
24
25
  <label>Script Extensions</label>
25
- <%= collection_select(:script_url, :extension_id, Phcscriptcdnpro::Script::Extension.order('script_extension_name'), :id, :script_extension, {}, {class: "form-control"}) %>
26
+ <%= collection_select(:script_url, :extension_id, Phcscriptcdn::Script::Extension.order('script_extension_name'), :id, :script_extension, {}, {class: "form-control"}) %>
26
27
  </div>
27
28
  <!-- Form Input Fields -->
28
29
 
29
30
  <!-- Form Submition Button -->
30
31
  <div class="actions">
31
- <%= form_phc_scriptcdn_urls.submit class: "btn btn-primary" %>
32
+ <%= form.submit class: "btn btn-primary" %>
32
33
  </div>
33
34
  <!-- For Submition Button -->
34
35
 
@@ -5,6 +5,18 @@
5
5
  <% phc_breadcrumb_two yield(:phc_title_tagline) %>
6
6
  <!-- Title System -->
7
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"><%= yield(:phc_breadcrumb_two) %></li>
12
+ <li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_three) %></li>
13
+ </ol>
14
+ <!-- Page Bradcrumbs -->
15
+
16
+ <!-- Page Header -->
17
+ <h1 class="page-header"><%= yield(:phc_title) %></h1>
18
+ <!-- Page Header -->
19
+
8
20
  <!-- Page Content -->
9
21
  <div class="panel panel-inverse">
10
22
  <div class="panel-heading">
@@ -13,14 +25,12 @@
13
25
  <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-success" data-click="panel-reload"><i class="fa fa-redo"></i></a>
14
26
  <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-warning" data-click="panel-collapse"><i class="fa fa-minus"></i></a>
15
27
  </div>
16
- <h4 class="panel-title"><%= yield(:phc_title_tagline) %></h4>
28
+ <h4 class="panel-title"><%= yield(:phc_title) %></h4>
17
29
  </div>
18
30
  <div class="panel-body">
19
-
20
- <!-- -->
31
+ <!-- Form to Edit URL -->
21
32
  <%= render 'form', { form_url: script_listing_url_path } %>
22
- <!-- -->
23
-
33
+ <!-- Form to Edit URL -->
24
34
  </div>
25
35
  </div>
26
36
  <!-- Page Content -->