phcscriptcdn 51.0.0 → 52.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (56) hide show
  1. checksums.yaml +4 -4
  2. data/MIT-LICENSE +1 -1
  3. data/app/assets/javascripts/phcscriptcdn/application.js +1 -1
  4. data/app/controllers/phcscriptcdn/application_controller.rb +15 -20
  5. data/app/controllers/phcscriptcdn/script/authors_controller.rb +13 -13
  6. data/app/controllers/phcscriptcdn/script/extensions_controller.rb +15 -15
  7. data/app/controllers/phcscriptcdn/script/licences_controller.rb +13 -13
  8. data/app/controllers/phcscriptcdn/script/listings_controller.rb +11 -11
  9. data/app/controllers/phcscriptcdn/script/urls_controller.rb +14 -14
  10. data/app/controllers/phcscriptcdn/script/versions_controller.rb +15 -15
  11. data/app/models/phcscriptcdn/application_record.rb +0 -2
  12. data/app/models/phcscriptcdn/script.rb +0 -2
  13. data/app/models/phcscriptcdn/script/author.rb +16 -7
  14. data/app/models/phcscriptcdn/script/extension.rb +5 -8
  15. data/app/models/phcscriptcdn/script/licence.rb +5 -8
  16. data/app/models/phcscriptcdn/script/listing.rb +12 -17
  17. data/app/models/phcscriptcdn/script/url.rb +4 -16
  18. data/app/models/phcscriptcdn/script/version.rb +6 -9
  19. data/app/views/layouts/phcscriptcdn/application.html.erb +6 -5
  20. data/app/views/layouts/phcscriptcdn/components/backend/footer/_footer.html.erb +5 -5
  21. data/app/views/layouts/phcscriptcdn/components/backend/sidebars/_side_menu.html.erb +60 -25
  22. data/app/views/phcscriptcdn/script/authors/_form.html.erb +6 -5
  23. data/app/views/phcscriptcdn/script/authors/edit.html.erb +4 -4
  24. data/app/views/phcscriptcdn/script/authors/index.html.erb +19 -15
  25. data/app/views/phcscriptcdn/script/authors/new.html.erb +4 -4
  26. data/app/views/phcscriptcdn/script/authors/show.html.erb +1 -4
  27. data/app/views/phcscriptcdn/script/extensions/_form.html.erb +5 -4
  28. data/app/views/phcscriptcdn/script/extensions/edit.html.erb +4 -7
  29. data/app/views/phcscriptcdn/script/extensions/index.html.erb +19 -15
  30. data/app/views/phcscriptcdn/script/extensions/new.html.erb +4 -6
  31. data/app/views/phcscriptcdn/script/extensions/show.html.erb +1 -4
  32. data/app/views/phcscriptcdn/script/licences/_form.html.erb +10 -9
  33. data/app/views/phcscriptcdn/script/licences/edit.html.erb +4 -6
  34. data/app/views/phcscriptcdn/script/licences/index.html.erb +19 -15
  35. data/app/views/phcscriptcdn/script/licences/new.html.erb +4 -6
  36. data/app/views/phcscriptcdn/script/licences/show.html.erb +1 -4
  37. data/app/views/phcscriptcdn/script/listings/_form.html.erb +21 -17
  38. data/app/views/phcscriptcdn/script/listings/edit.html.erb +4 -4
  39. data/app/views/phcscriptcdn/script/listings/index.html.erb +24 -19
  40. data/app/views/phcscriptcdn/script/listings/new.html.erb +6 -5
  41. data/app/views/phcscriptcdn/script/listings/show.html.erb +3 -5
  42. data/app/views/phcscriptcdn/script/urls/_form.html.erb +7 -6
  43. data/app/views/phcscriptcdn/script/urls/edit.html.erb +15 -5
  44. data/app/views/phcscriptcdn/script/urls/index.html.erb +19 -15
  45. data/app/views/phcscriptcdn/script/urls/new.html.erb +4 -6
  46. data/app/views/phcscriptcdn/script/urls/show.html.erb +1 -4
  47. data/app/views/phcscriptcdn/script/versions/_form.html.erb +3 -2
  48. data/app/views/phcscriptcdn/script/versions/edit.html.erb +4 -6
  49. data/app/views/phcscriptcdn/script/versions/index.html.erb +19 -15
  50. data/app/views/phcscriptcdn/script/versions/new.html.erb +4 -6
  51. data/app/views/phcscriptcdn/script/versions/show.html.erb +1 -4
  52. data/config/routes.rb +19 -20
  53. data/db/migrate/20160821183652_create_phcscriptcdn_script_listings.rb +1 -1
  54. data/lib/phcscriptcdn/engine.rb +16 -15
  55. data/lib/phcscriptcdn/version.rb +1 -1
  56. metadata +8 -8
@@ -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', phcscriptcdn.edit_script_licence_path, class: "btn btn-primary" %>
36
35
  <%= link_to 'Remove', phcscriptcdn.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
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
- <%= form.label :script_tittle %>
9
- <%= form.text_field :script_tittle, placeholder: "Script Title", 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" %>
10
11
  </div>
11
- <div class="form-group field_with_error">
12
+ <div class="form-group field_with_errors">
12
13
  <%= form.label :script_description, "Script Description" %>
13
14
  <%= form.text_area :script_description, placeholder: "Script Description", class: "form-control" %>
14
15
  </div>
15
- <div class="form-group field_with_error">
16
+ <div class="form-group field_with_errors">
16
17
  <%= form.label :script_source, "Script Source Code" %>
17
18
  <%= form.text_field :script_source, placeholder: "Script Source", class: "form-control" %>
18
19
  </div>
19
- <div class="form-group field_with_error">
20
+ <div class="form-group field_with_errors">
20
21
  <%= form.label :script_website, "Script Website" %>
21
22
  <%= form.text_field :script_website, placeholder: "Script Website", class: "form-control" %>
22
23
  </div>
23
- <div class="form-group field_with_error">
24
+ <div class="form-group field_with_errors">
24
25
  <%= form.label :script_github, "Script Github" %>
25
26
  <%= form.text_field :script_github, placeholder: "Script Github Address", class: "form-control" %>
26
27
  </div>
27
- <div class="form-group field_with_error">
28
+ <div class="form-group field_with_errors">
28
29
  <%= form.label :script_initial_release, "Initial Release" %>
29
30
  <%= form.date_select :script_initial_release, start_year: 1981, class: "form-control" %>
30
31
  </div>
31
- <div class="form-group field_with_error">
32
+ <div class="form-group field_with_errors">
32
33
  <%= form.label :script_lastest_release, "Latest Release" %>
33
34
  <%= form.date_select :script_lastest_release, start_year: 1981, class: "form-control" %>
34
35
  </div>
35
- <div class="form-group field_with_error">
36
+ <div class="form-group field_with_errors">
36
37
  <%= form.label :script_beta_release, "Preview Release" %>
37
38
  <%= form.date_select :script_beta_release, start_year: 1981, class: "form-control" %>
38
39
  </div>
39
- <div class="form-group field_with_error">
40
+ <div class="form-group field_with_errors">
40
41
  <%= form.label :script_lastest_release_cdn, "Script CDN Release" %>
41
42
  <%= form.date_select :script_lastest_release_cdn, start_year: 1981, class: "form-control" %>
42
43
  </div>
43
- <div class="form-group field_with_errors">
44
+ <div class="form-group field_with_errorss">
44
45
  <label>Script Licence</label>
45
46
  <%= collection_select(:script_listing, :licence_id, Phcscriptcdn::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, Phcscriptcdn::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
+ <div class="form-group field_with_errors">
52
53
  <%= form.label :script_status, "Script Status" %>
53
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
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 phcscriptcdn.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', phcscriptcdn.edit_script_listing_path, class: "btn btn-primary" %>
34
34
  <%= link_to 'Remove', phcscriptcdn.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,26 +1,27 @@
1
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
+ <div class="form-group field_with_errors">
8
9
  <%= form.label :script_url, "Script URL" %>
9
10
  <%= form.text_field :script_url, placeholder: "Script URL", class: "form-control" %>
10
11
  </div>
11
- <div class="form-group field_with_error">
12
+ <div class="form-group field_with_errors">
12
13
  <%= form.label :script_url_release, "Initial Release" %>
13
14
  <%= form.date_select :script_url_release, class: "form-control" %>
14
15
  </div>
15
- <div class="form-group field_with_error">
16
+ <div class="form-group field_with_errors">
16
17
  <%= form.label :script_url_cdn_update, "Latest Release" %>
17
18
  <%= form.date_select :script_url_cdn_update, class: "form-control" %>
18
19
  </div>
19
- <div class="form-group field_with_errors">
20
+ <div class="form-group field_with_errorss">
20
21
  <label>Script Version</label>
21
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
26
  <%= collection_select(:script_url, :extension_id, Phcscriptcdn::Script::Extension.order('script_extension_name'), :id, :script_extension, {}, {class: "form-control"}) %>
26
27
  </div>
@@ -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 -->
@@ -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 - URL Index -->
31
34
  <div class="table-responsive">
32
35
  <table class="table table-striped table-bordered">
33
36
  <thead>
@@ -49,9 +52,10 @@
49
52
  </table>
50
53
  <%= link_to phcscriptcdn.new_script_listing_url_path, class: "btn btn-primary" do %>
51
54
  <i class="fas fa-plus-circle"></i>
52
- <%= "Add a New CDN URL" %>
55
+ Add a New CDN URL
53
56
  <% end %>
54
57
  </div>
58
+ <!-- Table - URL Index -->
55
59
  </div>
56
60
  </div>
57
61
  <!-- 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 URL -->
34
33
  <%= render 'form', { form_url: script_listing_urls_path } %>
35
- <!-- -->
36
-
34
+ <!-- Form for New URL -->
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', edit_script_listing_url_path, class: "btn btn-primary" %>
36
35
  <%= link_to 'Remove', script_listing_url_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,10 +1,11 @@
1
1
  <%= form_with(model: script_version, local: true) do |form| %>
2
2
 
3
3
  <!-- PHCNotifi Render Validation -->
4
- <%= render 'phcnotifi/validations', :object => @script_version %>
4
+ <%= render 'phcnotifi/default/validations', :object => @script_version %>
5
+ <!-- PHCNotifi Render Validation -->
5
6
 
6
7
  <!-- Form Input Fields -->
7
- <div class="form-group field_with_error">
8
+ <div class="form-group field_with_errors">
8
9
  <%= form.label :script_version_number, "Version Number" %>
9
10
  <%= form.text_field :script_version_number, placeholder: "Version Number", class: "form-control" %>
10
11
  </div>