phcscriptcdn 49.0.0 → 50.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (48) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/stylesheets/phcscriptcdn/application.scss +1 -1
  3. data/app/controllers/phcscriptcdn/application_controller.rb +10 -5
  4. data/app/controllers/phcscriptcdn/script/authors_controller.rb +2 -7
  5. data/app/controllers/phcscriptcdn/script/extensions_controller.rb +3 -8
  6. data/app/controllers/phcscriptcdn/script/licences_controller.rb +2 -7
  7. data/app/controllers/phcscriptcdn/script/listings_controller.rb +5 -8
  8. data/app/controllers/phcscriptcdn/script/urls_controller.rb +1 -6
  9. data/app/controllers/phcscriptcdn/script/versions_controller.rb +2 -7
  10. data/app/models/phcscriptcdn/script/author.rb +1 -1
  11. data/app/models/phcscriptcdn/script/extension.rb +4 -4
  12. data/app/models/phcscriptcdn/script/licence.rb +3 -3
  13. data/app/models/phcscriptcdn/script/listing.rb +21 -4
  14. data/app/models/phcscriptcdn/script/url.rb +5 -5
  15. data/app/models/phcscriptcdn/script/version.rb +3 -3
  16. data/app/views/layouts/phcscriptcdn/application.html.erb +21 -22
  17. data/app/views/layouts/phcscriptcdn/components/backend/navigation/_top_menu.html.erb +0 -41
  18. data/app/views/phcscriptcdn/script/authors/_form.html.erb +8 -8
  19. data/app/views/phcscriptcdn/script/authors/edit.html.erb +2 -4
  20. data/app/views/phcscriptcdn/script/authors/index.html.erb +10 -8
  21. data/app/views/phcscriptcdn/script/authors/new.html.erb +2 -5
  22. data/app/views/phcscriptcdn/script/extensions/_form.html.erb +6 -6
  23. data/app/views/phcscriptcdn/script/extensions/index.html.erb +8 -7
  24. data/app/views/phcscriptcdn/script/licences/_form.html.erb +16 -16
  25. data/app/views/phcscriptcdn/script/licences/index.html.erb +13 -12
  26. data/app/views/phcscriptcdn/script/listings/_form.html.erb +26 -33
  27. data/app/views/phcscriptcdn/script/listings/edit.html.erb +1 -4
  28. data/app/views/phcscriptcdn/script/listings/index.html.erb +14 -13
  29. data/app/views/phcscriptcdn/script/listings/new.html.erb +2 -4
  30. data/app/views/phcscriptcdn/script/urls/_form.html.erb +8 -8
  31. data/app/views/phcscriptcdn/script/urls/index.html.erb +9 -8
  32. data/app/views/phcscriptcdn/script/versions/_form.html.erb +2 -2
  33. data/app/views/phcscriptcdn/script/versions/index.html.erb +7 -6
  34. data/db/migrate/20160821183652_create_phcscriptcdn_script_listings.rb +10 -12
  35. data/db/migrate/20160821183714_create_phcscriptcdn_script_authors.rb +4 -5
  36. data/db/migrate/20160821183735_create_phcscriptcdn_script_extensions.rb +3 -4
  37. data/db/migrate/20160821183805_create_phcscriptcdn_script_licences.rb +8 -10
  38. data/db/migrate/20160821183830_create_phcscriptcdn_script_urls.rb +4 -5
  39. data/db/migrate/20160821183946_create_phcscriptcdn_script_versions.rb +1 -2
  40. data/db/migrate/20170509002355_create_phcscriptcdn_friendly_id_slugs.rb +2 -2
  41. data/db/migrate/20170517064030_create_phcscriptcdn_extension_versions.rb +1 -1
  42. data/db/migrate/20170517064049_create_phcscriptcdn_listing_versions.rb +1 -1
  43. data/db/migrate/20170517064114_create_phcscriptcdn_scriptversion_versions.rb +1 -1
  44. data/db/migrate/20170517064150_create_phcscriptcdn_url_versions.rb +17 -17
  45. data/db/migrate/20170517064208_create_phcscriptcdn_author_versions.rb +1 -1
  46. data/db/migrate/20170517064427_create_phcscriptcdn_licence_versions.rb +1 -1
  47. data/lib/phcscriptcdn/version.rb +1 -1
  48. metadata +2 -2
@@ -2,15 +2,13 @@
2
2
  <% phc_title "Script Authors" %>
3
3
  <% phc_title_tagline "Author Index" %>
4
4
  <% phc_breadcrumb_one link_to "Script Index", phcscriptcdn.script_listings_path %>
5
- <% phc_breadcrumb_two link_to "Author Index", phcscriptcdn.script_authors_path %>
6
- <% phc_breadcrumb_three yield(:phc_title_tagline) %>
5
+ <% phc_breadcrumb_two yield(:phc_title_tagline) %>
7
6
  <!-- Title System -->
8
7
 
9
8
  <!-- Page Bradcrumbs -->
10
9
  <ol class="breadcrumb pull-right">
11
10
  <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>
11
+ <li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_two) %></li>
14
12
  </ol>
15
13
  <!-- Page Bradcrumbs -->
16
14
 
@@ -43,14 +41,18 @@
43
41
  <tbody>
44
42
  <% @script_authors.each do |script_author| %>
45
43
  <tr>
46
- <td><%= link_to script_author.authorfirstname, script_author %></td>
47
- <td><%= link_to script_author.authorlastname, script_author %></td>
48
- <td><%= link_to script_author.authorwebsite, script_author %></td>
49
- <td><%= link_to script_author.authorgithub, script_author %></td>
44
+ <td><%= link_to script_author.author_first_name, script_author %></td>
45
+ <td><%= link_to script_author.author_last_name, script_author %></td>
46
+ <td><%= link_to script_author.author_website, script_author %></td>
47
+ <td><%= link_to script_author.author_github, script_author %></td>
50
48
  </tr>
51
49
  <% end %>
52
50
  </tbody>
53
51
  </table>
52
+ <%= link_to phcscriptcdn.new_script_author_path, class: "btn btn-primary btn-sm" do %>
53
+ <i class="fas fa-plus-circle"></i>
54
+ <%= "Add a New Script Author" %>
55
+ <% end %>
54
56
  </div>
55
57
  </div>
56
58
  </div>
@@ -29,12 +29,9 @@
29
29
  <h4 class="panel-title"><%= yield(:phc_title_tagline) %></h4>
30
30
  </div>
31
31
  <div class="panel-body">
32
-
33
- <!-- -->
32
+ <!-- Form for Script Author New -->
34
33
  <%= render 'form', script_author: @script_author %>
35
- <!-- -->
36
-
34
+ <!-- Form for Script Author New -->
37
35
  </div>
38
36
  </div>
39
37
  <!-- Page Content -->
40
-
@@ -5,16 +5,16 @@
5
5
 
6
6
  <!-- Form_phc_scriptcdn_extension Input Fields -->
7
7
  <div class="form-group field_with_error">
8
- <%= form_phc_scriptcdn_extension.label :scriptextensionname, "Extension Name" %>
9
- <%= form_phc_scriptcdn_extension.text_field :scriptextensionname, placeholder: "Extension Name", class: "form-control" %>
8
+ <%= form_phc_scriptcdn_extension.label :script_extension_name, "Extension Name" %>
9
+ <%= form_phc_scriptcdn_extension.text_field :script_extension_name, placeholder: "Extension Name", class: "form-control" %>
10
10
  </div>
11
11
  <div class="form-group field_with_error">
12
- <%= form_phc_scriptcdn_extension.label :scriptextensiondes, "Extension Description" %>
13
- <%= form_phc_scriptcdn_extension.text_area :scriptextensiondes, placeholder: "Extension Description", class: "form-control" %>
12
+ <%= form_phc_scriptcdn_extension.label :script_extension_description, "Extension Description" %>
13
+ <%= form_phc_scriptcdn_extension.text_area :script_extension_description, placeholder: "Extension Description", class: "form-control" %>
14
14
  </div>
15
15
  <div class="form-group field_with_error">
16
- <%= form_phc_scriptcdn_extension.label :scriptextension, "Script Extension" %>
17
- <%= form_phc_scriptcdn_extension.text_field :scriptextension, placeholder: "Script Extension (.js/.css)", class: "form-control" %>
16
+ <%= form_phc_scriptcdn_extension.label :script_extension, "Script Extension" %>
17
+ <%= form_phc_scriptcdn_extension.text_field :script_extension, placeholder: "Script Extension (.js/.css)", class: "form-control" %>
18
18
  </div>
19
19
  <!-- Form_phc_scriptcdn_extension Input Fields -->
20
20
 
@@ -2,15 +2,13 @@
2
2
  <% phc_title "Script Listings Manager" %>
3
3
  <% phc_title_tagline "Script Extension Index" %>
4
4
  <% phc_breadcrumb_one link_to "Script Index", phcscriptcdn.script_listings_path %>
5
- <% phc_breadcrumb_two link_to "Script Extension Index", phcscriptcdn.script_extensions_path %>
6
- <% phc_breadcrumb_three yield(:phc_title_tagline) %>
5
+ <% phc_breadcrumb_two yield(:phc_title_tagline) %>
7
6
  <!-- Title System -->
8
7
 
9
8
  <!-- Page Bradcrumbs -->
10
9
  <ol class="breadcrumb pull-right">
11
10
  <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>
11
+ <li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_two) %></li>
14
12
  </ol>
15
13
  <!-- Page Bradcrumbs -->
16
14
 
@@ -41,13 +39,16 @@
41
39
  <tbody>
42
40
  <% @script_extensions.each do |script_extension| %>
43
41
  <tr>
44
- <td><%= link_to script_extension.scriptextensionname, script_extension %></td>
45
- <td><%= link_to script_extension.scriptextension, script_extension %></td>
42
+ <td><%= link_to script_extension.script_extension_name, script_extension %></td>
43
+ <td><%= link_to script_extension.script_extension, script_extension %></td>
46
44
  </tr>
47
45
  <% end %>
48
46
  </tbody>
49
47
  </table>
50
-
48
+ <%= link_to phcscriptcdn.new_script_extension_path, class: "btn btn-primary" do %>
49
+ <i class="fas fa-plus-circle"></i>
50
+ <%= "Add a New Extension" %>
51
+ <% end %>
51
52
  </div>
52
53
  </div>
53
54
  </div>
@@ -5,36 +5,36 @@
5
5
 
6
6
  <!-- Form_phc_scriptcdn_licence Input Fields -->
7
7
  <div class="form-group field_with_error">
8
- <%= form_phc_scriptcdn_licence.label :lcncname, "Licence Name" %>
9
- <%= form_phc_scriptcdn_licence.text_field :lcncname, placeholder: "Licence Name", class: "form-control" %>
8
+ <%= form_phc_scriptcdn_licence.label :licence_name, "Licence Name" %>
9
+ <%= form_phc_scriptcdn_licence.text_field :licence_name, placeholder: "Licence Name", class: "form-control" %>
10
10
  </div>
11
11
  <div class="form-group field_with_error">
12
- <%= form_phc_scriptcdn_licence.label :lcncdescript, "Licence Description" %>
13
- <%= form_phc_scriptcdn_licence.text_area :lcncdescript, placeholder: "Licence Descirption", class: "form-control" %>
12
+ <%= form_phc_scriptcdn_licence.label :licence_description, "Licence Description" %>
13
+ <%= form_phc_scriptcdn_licence.text_area :licence_description, placeholder: "Licence Descirption", class: "form-control" %>
14
14
  </div>
15
15
  <div class="form-group field_with_error">
16
- <%= form_phc_scriptcdn_licence.label :lcnccomgpl, "GPL(v3) Compatible" %>
17
- <%= form_phc_scriptcdn_licence.select( :lcnccomgpl, [['No','No'],['Yes','Yes']], {}, {class: "form-control"}) %>
16
+ <%= form_phc_scriptcdn_licence.label :licence_compatible_gpl, "GPL(v3) Compatible" %>
17
+ <%= form_phc_scriptcdn_licence.select( :licence_compatible_gpl, [['No','No'],['Yes','Yes']], {}, {class: "form-control"}) %>
18
18
  </div>
19
19
  <div class="form-group field_with_error">
20
- <%= form_phc_scriptcdn_licence.label :lcncarvlfsf, "FSF Approval" %>
21
- <%= form_phc_scriptcdn_licence.select( :lcncarvlfsf, [['No','No'],['Yes','Yes']], {}, {class: "form-control"}) %>
20
+ <%= form_phc_scriptcdn_licence.label :licence_approval_fsf, "FSF Approval" %>
21
+ <%= form_phc_scriptcdn_licence.select( :licence_approval_fsf, [['No','No'],['Yes','Yes']], {}, {class: "form-control"}) %>
22
22
  </div>
23
23
  <div class="form-group field_with_error">
24
- <%= form_phc_scriptcdn_licence.label :lcncarvlosi, "OSI Approval" %>
25
- <%= form_phc_scriptcdn_licence.select( :lcncarvlosi, [['No','No'],['Yes','Yes']], {}, {class: "form-control"}) %>
24
+ <%= form_phc_scriptcdn_licence.label :licence_approval_osi, "OSI Approval" %>
25
+ <%= form_phc_scriptcdn_licence.select( :licence_approval_osi, [['No','No'],['Yes','Yes']], {}, {class: "form-control"}) %>
26
26
  </div>
27
27
  <div class="form-group field_with_error">
28
- <%= form_phc_scriptcdn_licence.label :lcncarvlcopyfree, "Copyfree Approval" %>
29
- <%= form_phc_scriptcdn_licence.select( :lcncarvlcopyfree, [['No','No'],['Yes','Yes']], {}, {class: "form-control"}) %>
28
+ <%= form_phc_scriptcdn_licence.label :licence_approval_copyfree, "Copyfree Approval" %>
29
+ <%= form_phc_scriptcdn_licence.select( :licence_approval_copyfree, [['No','No'],['Yes','Yes']], {}, {class: "form-control"}) %>
30
30
  </div>
31
31
  <div class="form-group field_with_error">
32
- <%= form_phc_scriptcdn_licence.label :lcncarvldebian, "Debian Approval" %>
33
- <%= form_phc_scriptcdn_licence.select( :lcncarvldebian, [['No','No'],['Yes','Yes']], {}, {class: "form-control"}) %>
32
+ <%= form_phc_scriptcdn_licence.label :licence_approval_debian, "Debian Approval" %>
33
+ <%= form_phc_scriptcdn_licence.select( :licence_approval_debian, [['No','No'],['Yes','Yes']], {}, {class: "form-control"}) %>
34
34
  </div>
35
35
  <div class="form-group field_with_error">
36
- <%= form_phc_scriptcdn_licence.label :lcncarvlfedora, "Fedora Approval" %>
37
- <%= form_phc_scriptcdn_licence.select( :lcncarvlfedora, [['No','No'],['Yes','Yes']], {}, {class: "form-control"}) %>
36
+ <%= form_phc_scriptcdn_licence.label :licence_approval_fedora, "Fedora Approval" %>
37
+ <%= form_phc_scriptcdn_licence.select( :licence_approval_fedora, [['No','No'],['Yes','Yes']], {}, {class: "form-control"}) %>
38
38
  </div>
39
39
  <!-- Form_phc_scriptcdn_licence Input Fields -->
40
40
 
@@ -2,15 +2,13 @@
2
2
  <% phc_title "Script Listings Manager" %>
3
3
  <% phc_title_tagline "Script Licence Index" %>
4
4
  <% phc_breadcrumb_one link_to "Script Index", phcscriptcdn.script_listings_path %>
5
- <% phc_breadcrumb_two link_to "Script Licence Index", phcscriptcdn.script_licences_path %>
6
- <% phc_breadcrumb_three yield(:phc_title_tagline) %>
5
+ <% phc_breadcrumb_two yield(:phc_title_tagline) %>
7
6
  <!-- Title System -->
8
7
 
9
8
  <!-- Page Bradcrumbs -->
10
9
  <ol class="breadcrumb pull-right">
11
10
  <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>
11
+ <li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_two) %></li>
14
12
  </ol>
15
13
  <!-- Page Bradcrumbs -->
16
14
 
@@ -46,18 +44,21 @@
46
44
  <tbody>
47
45
  <% @script_licences.each do |script_licence| %>
48
46
  <tr>
49
- <td><%= link_to script_licence.lcncname, script_licence %></td>
50
- <td><%= link_to script_licence.lcnccomgpl, script_licence %></td>
51
- <td><%= link_to script_licence.lcncarvlfsf, script_licence %></td>
52
- <td><%= link_to script_licence.lcncarvlosi, script_licence %></td>
53
- <td><%= link_to script_licence.lcncarvlcopyfree, script_licence %></td>
54
- <td><%= link_to script_licence.lcncarvldebian, script_licence %></td>
55
- <td><%= link_to script_licence.lcncarvlfedora, script_licence %></td>
47
+ <td><%= link_to script_licence.licence_name, script_licence %></td>
48
+ <td><%= link_to script_licence.licence_compatible_gpl, script_licence %></td>
49
+ <td><%= link_to script_licence.licence_approval_fsf, script_licence %></td>
50
+ <td><%= link_to script_licence.licence_approval_osi, script_licence %></td>
51
+ <td><%= link_to script_licence.licence_approval_copyfree, script_licence %></td>
52
+ <td><%= link_to script_licence.licence_approval_debian, script_licence %></td>
53
+ <td><%= link_to script_licence.licence_approval_fedora, script_licence %></td>
56
54
  </tr>
57
55
  <% end %>
58
56
  </tbody>
59
57
  </table>
60
-
58
+ <%= link_to phcscriptcdn.new_script_licence_path, class: "btn btn-primary btn-sm" do %>
59
+ <i class="fas fa-plus-circle"></i>
60
+ <%= "Add a New Licence" %>
61
+ <% end %>
61
62
  </div>
62
63
  </div>
63
64
  </div>
@@ -1,67 +1,60 @@
1
- <%= form_with(model: script_listing, local: true) do |form_phc_scriptcdn_listings| %>
1
+ <%= form_with(model: script_listing, local: true) do |phc_scriptcdn_pro_listings| %>
2
2
 
3
- <!-- PHCNotifi Render Validation -->
3
+ <!-- Validation System -->
4
4
  <%= render 'phcnotifi/validations', :object => @script_listing %>
5
+ <!-- Validation System -->
5
6
 
6
- <!-- Form_phc_scriptcdn_listings Input Fields -->
7
7
  <div class="form-group field_with_error">
8
- <%= form_phc_scriptcdn_listings.label :scripttitle, "Script Title" %>
9
- <%= form_phc_scriptcdn_listings.text_field :scripttitle, placeholder: "Script Title", class: "form-control" %>
8
+ <%= phc_scriptcdn_pro_listings.label :script_tittle %>
9
+ <%= phc_scriptcdn_pro_listings.text_field :script_tittle, placeholder: "Script Title", class: "form-control" %>
10
10
  </div>
11
11
  <div class="form-group field_with_error">
12
- <%= form_phc_scriptcdn_listings.label :scriptdescription, "Script Description" %>
13
- <%= form_phc_scriptcdn_listings.text_area :scriptdescription, placeholder: "Script Description", class: "form-control" %>
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" %>
14
14
  </div>
15
15
  <div class="form-group field_with_error">
16
- <%= form_phc_scriptcdn_listings.label :descriptionsource, "Script Source" %>
17
- <%= form_phc_scriptcdn_listings.text_field :descriptionsource, placeholder: "Script Source", class: "form-control" %>
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" %>
18
18
  </div>
19
19
  <div class="form-group field_with_error">
20
- <%= form_phc_scriptcdn_listings.label :scriptwebsite, "Script Website" %>
21
- <%= form_phc_scriptcdn_listings.text_field :scriptwebsite, placeholder: "Script Website", class: "form-control" %>
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" %>
22
22
  </div>
23
23
  <div class="form-group field_with_error">
24
- <%= form_phc_scriptcdn_listings.label :scriptgithub, "Script Github" %>
25
- <%= form_phc_scriptcdn_listings.text_field :scriptgithub, placeholder: "Script Github Address", class: "form-control" %>
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" %>
26
26
  </div>
27
27
  <div class="form-group field_with_error">
28
- <%= form_phc_scriptcdn_listings.label :scriptinitialrelease, "Initial Release" %>
29
- <%= form_phc_scriptcdn_listings.date_select :scriptinitialrelease, start_year: 1981, class: "form-control" %>
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" %>
30
30
  </div>
31
31
  <div class="form-group field_with_error">
32
- <%= form_phc_scriptcdn_listings.label :scriptlastestrelease, "Latest Release" %>
33
- <%= form_phc_scriptcdn_listings.date_select :scriptlastestrelease, start_year: 1981, class: "form-control" %>
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" %>
34
34
  </div>
35
35
  <div class="form-group field_with_error">
36
- <%= form_phc_scriptcdn_listings.label :scriptbetarelease, "Preview Release" %>
37
- <%= form_phc_scriptcdn_listings.date_select :scriptbetarelease, start_year: 1981, class: "form-control" %>
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" %>
38
38
  </div>
39
39
  <div class="form-group field_with_error">
40
- <%= form_phc_scriptcdn_listings.label :scriptlastestreleasecdn, "Script CDN Release" %>
41
- <%= form_phc_scriptcdn_listings.date_select :scriptlastestreleasecdn, start_year: 1981, class: "form-control" %>
42
- </div>
43
- <div class="form-group field_with_errors">
44
- <label>Script Version</label>
45
- <%= collection_select(:script_listing, :version_id, Phcscriptcdn::Script::Version.order('scriptversion'), :id, :scriptversion, {}, {class: "form-control"}) %>
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" %>
46
42
  </div>
47
43
  <div class="form-group field_with_errors">
48
44
  <label>Script Licence</label>
49
- <%= collection_select(:script_listing, :licence_id, Phcscriptcdn::Script::Licence.order('lcncname'), :id, :lcncname, {}, {class: "form-control"}) %>
45
+ <%= collection_select(:script_listing, :licence_id, Phcscriptcdn::Script::Licence.order('licence_name'), :id, :licence_name, {}, {class: "form-control"}) %>
50
46
  </div>
51
47
  <div class="form-group field_with_errors">
52
48
  <label>Script Author</label>
53
- <%= collection_select(:script_listing, :author_id, Phcscriptcdn::Script::Author.order('authorfirstname'), :id, :authorfirstname, {}, {class: "form-control"}) %>
49
+ <%= collection_select(:script_listing, :author_id, Phcscriptcdn::Script::Author.order('author_first_name'), :id, :author_first_name, {}, {class: "form-control"}) %>
54
50
  </div>
55
51
  <div class="form-group field_with_error">
56
- <%= form_phc_scriptcdn_listings.label :scriptstatus, "Script Status" %>
57
- <%= form_phc_scriptcdn_listings.select( :scriptstatus, [['Active','Active'],['Outdated','Out Dated'],['Deactivated','Not Active']], {}, {class: "form-control"}) %>
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"}) %>
58
54
  </div>
59
- <!-- Form_phc_scriptcdn_listings Input Fields -->
60
55
 
61
- <!-- Form_phc_scriptcdn_listings Submition Button -->
62
56
  <div class="actions">
63
- <%= form_phc_scriptcdn_listings.submit class: "btn btn-primary" %>
57
+ <%= phc_scriptcdn_pro_listings.submit class: "btn btn-primary" %>
64
58
  </div>
65
- <!-- For Submition Button -->
66
59
 
67
60
  <% end %>
@@ -27,12 +27,9 @@
27
27
  <h4 class="panel-title"><%= yield(:phc_title_tagline) %></h4>
28
28
  </div>
29
29
  <div class="panel-body">
30
-
31
- <!-- -->
30
+ <!-- Form for Edit Script Listings -->
32
31
  <%= render 'form', script_listing: @script_listing %>
33
32
  <!-- Form for Edit Script Listings -->
34
- <!-- -->
35
-
36
33
  </div>
37
34
  </div>
38
35
  <!-- Page Content -->
@@ -2,13 +2,11 @@
2
2
  <% phc_title "Script Listings Manager" %>
3
3
  <% phc_title_tagline "Script Listing Index" %>
4
4
  <% phc_breadcrumb_one yield(:phc_title_tagline) %>
5
- <% phc_breadcrumb_two link_to "Script Index", phcscriptcdn.script_listings_path %>
6
5
  <!-- Title System -->
7
6
 
8
7
  <!-- Page Bradcrumbs -->
9
8
  <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>
9
+ <li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_one) %></li>
12
10
  </ol>
13
11
  <!-- Page Bradcrumbs -->
14
12
 
@@ -37,19 +35,22 @@
37
35
  <th>Latest Release Date</th>
38
36
  <th>Beta Release Date</th>
39
37
  </tr>
40
- </thead>
41
- <tbody>
42
- <% @script_listings.each do |script_listing| %>
43
- <tr>
44
- <td class="vert-align"><%= link_to script_listing.scripttitle, script_listing_path(script_listing) %></td>
45
- <td class="vert-align"><%= link_to script_listing.scriptinitialrelease, script_listing_path(script_listing) %></td>
46
- <td class="vert-align"><%= link_to script_listing.scriptlastestrelease, script_listing_path(script_listing) %></td>
47
- <td class="vert-align"><%= link_to script_listing.scriptbetarelease, script_listing_path(script_listing) %></td>
48
- </tr>
38
+ </thead>
39
+ <tbody>
40
+ <% @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>
49
47
  <% end %>
50
48
  </tbody>
51
49
  </table>
52
-
50
+ <%= link_to phcscriptcdn.new_script_listing_path, class: "btn btn-primary" do %>
51
+ <i class="fas fa-plus-circle"></i>
52
+ <%= "Add a New Script CDN Listing" %>
53
+ <% end %>
53
54
  </div>
54
55
  </div>
55
56
  </div>
@@ -27,11 +27,9 @@
27
27
  <h4 class="panel-title"><%= yield(:phc_title_tagline) %></h4>
28
28
  </div>
29
29
  <div class="panel-body">
30
-
31
- <!-- -->
30
+ <!-- Form for New Script Listings -->
32
31
  <%= render 'form', script_listing: @script_listing %>
33
- <!-- -->
34
-
32
+ <!-- Form for New Script Listings -->
35
33
  </div>
36
34
  </div>
37
35
  <!-- Page Content -->
@@ -5,24 +5,24 @@
5
5
 
6
6
  <!-- Form Input Fields -->
7
7
  <div class="form-group field_with_error">
8
- <%= form_phc_scriptcdn_urls.label :scripturl, "Script URL" %>
9
- <%= form_phc_scriptcdn_urls.text_field :scripturl, placeholder: "Script URL", class: "form-control" %>
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
10
  </div>
11
11
  <div class="form-group field_with_error">
12
- <%= form_phc_scriptcdn_urls.label :scripturlrelease, "Initial Release" %>
13
- <%= form_phc_scriptcdn_urls.date_select :scripturlrelease, class: "form-control" %>
12
+ <%= form_phc_scriptcdn_urls.label :script_url_release, "Initial Release" %>
13
+ <%= form_phc_scriptcdn_urls.date_select :script_url_release, class: "form-control" %>
14
14
  </div>
15
15
  <div class="form-group field_with_error">
16
- <%= form_phc_scriptcdn_urls.label :scripturlcdnupdate, "Latest Release" %>
17
- <%= form_phc_scriptcdn_urls.date_select :scripturlcdnupdate, class: "form-control" %>
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" %>
18
18
  </div>
19
19
  <div class="form-group field_with_errors">
20
20
  <label>Script Version</label>
21
- <%= collection_select(:script_url, :version_id, Phcscriptcdn::Script::Version.order('scriptversion'), :id, :scriptversion, {}, {class: "form-control"}) %>
21
+ <%= collection_select(:script_url, :version_id, Phcscriptcdn::Script::Version.order('script_version_number'), :id, :script_version_number, {}, {class: "form-control"}) %>
22
22
  </div>
23
23
  <div class="form-group field_with_errors">
24
24
  <label>Script Extensions</label>
25
- <%= collection_select(:script_url, :extension_id, Phcscriptcdn::Script::Extension.order('scriptextensionname'), :id, :scriptextension, {}, {class: "form-control"}) %>
25
+ <%= collection_select(:script_url, :extension_id, Phcscriptcdn::Script::Extension.order('script_extension_name'), :id, :script_extension, {}, {class: "form-control"}) %>
26
26
  </div>
27
27
  <!-- Form Input Fields -->
28
28
 
@@ -2,15 +2,13 @@
2
2
  <% phc_title "Script Listings Manager" %>
3
3
  <% phc_title_tagline "Script URL Index" %>
4
4
  <% phc_breadcrumb_one link_to "Script Index", phcscriptcdn.script_listings_path %>
5
- <% phc_breadcrumb_two link_to "Script Urls", phcscriptcdn.script_listing_urls_path %>
6
- <% phc_breadcrumb_three yield(:phc_title_tagline) %>
5
+ <% phc_breadcrumb_two yield(:phc_title_tagline) %>
7
6
  <!-- Title System -->
8
7
 
9
8
  <!-- Page Bradcrumbs -->
10
9
  <ol class="breadcrumb pull-right">
11
10
  <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>
11
+ <li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_two) %></li>
14
12
  </ol>
15
13
  <!-- Page Bradcrumbs -->
16
14
 
@@ -42,14 +40,17 @@
42
40
  <tbody>
43
41
  <% @script_urls.each do |script_url| %>
44
42
  <tr>
45
- <td><%= link_to script_url.scripturl, script_listing_url_path(script_url.listing, script_url) %></td>
46
- <td><%= link_to script_url.scripturlrelease, script_listing_url_path(script_url.listing, script_url) %></td>
47
- <td><%= link_to script_url.scripturlcdnupdate, script_listing_url_path(script_url.listing, script_url) %></td>
43
+ <td><%= link_to script_url.script_url, script_listing_url_path(script_url.listing, script_url) %></td>
44
+ <td><%= link_to script_url.script_url_release, script_listing_url_path(script_url.listing, script_url) %></td>
45
+ <td><%= link_to script_url.script_url_cdn_update, script_listing_url_path(script_url.listing, script_url) %></td>
48
46
  </tr>
49
47
  <% end %>
50
48
  </tbody>
51
49
  </table>
52
-
50
+ <%= link_to phcscriptcdn.new_script_listing_url_path, class: "btn btn-primary" do %>
51
+ <i class="fas fa-plus-circle"></i>
52
+ <%= "Add a New CDN URL" %>
53
+ <% end %>
53
54
  </div>
54
55
  </div>
55
56
  </div>
@@ -5,8 +5,8 @@
5
5
 
6
6
  <!-- Form Input Fields -->
7
7
  <div class="form-group field_with_error">
8
- <%= form_phc_scriptcdn_versions.label :scriptversion, "Version Number" %>
9
- <%= form_phc_scriptcdn_versions.text_field :scriptversion, placeholder: "Version Number", class: "form-control" %>
8
+ <%= form_phc_scriptcdn_versions.label :script_version_number, "Version Number" %>
9
+ <%= form_phc_scriptcdn_versions.text_field :script_version_number, placeholder: "Version Number", class: "form-control" %>
10
10
  </div>
11
11
  <!-- Form Input Fields -->
12
12
 
@@ -2,15 +2,13 @@
2
2
  <% phc_title "Script Listings Manager" %>
3
3
  <% phc_title_tagline "Script Version Index" %>
4
4
  <% phc_breadcrumb_one link_to "Script Index", phcscriptcdn.script_listings_path %>
5
- <% phc_breadcrumb_two link_to "Script Version Index", phcscriptcdn.script_versions_path %>
6
- <% phc_breadcrumb_three yield(:phc_title_tagline) %>
5
+ <% phc_breadcrumb_two yield(:phc_title_tagline) %>
7
6
  <!-- Title System -->
8
7
 
9
8
  <!-- Page Bradcrumbs -->
10
9
  <ol class="breadcrumb pull-right">
11
10
  <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>
11
+ <li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_two) %></li>
14
12
  </ol>
15
13
  <!-- Page Bradcrumbs -->
16
14
 
@@ -40,12 +38,15 @@
40
38
  <tbody>
41
39
  <% @script_versions.each do |script_version| %>
42
40
  <tr>
43
- <td><%= link_to script_version.scriptversion, script_version %></td>
41
+ <td><%= link_to script_version.script_version_number, script_version %></td>
44
42
  </tr>
45
43
  <% end %>
46
44
  </tbody>
47
45
  </table>
48
-
46
+ <%= link_to phcscriptcdn.new_script_version_path, class: "btn btn-primary" do %>
47
+ <i class="fas fa-plus-circle"></i>
48
+ <%= "Add a New Version Number" %>
49
+ <% end %>
49
50
  </div>
50
51
  </div>
51
52
  </div>
@@ -3,26 +3,24 @@ class CreatePhcscriptcdnScriptListings < ActiveRecord::Migration[5.2]
3
3
 
4
4
  create_table :phcscriptcdn_script_listings do |t|
5
5
 
6
- t.string :scripttitle
7
- t.text :scriptdescription
8
- t.string :descriptionsource
6
+ t.string :script_tittle
7
+ t.text :script_description
8
+ t.string :script_source
9
9
 
10
- t.string :scriptwebsite
11
- t.string :scriptgithub
10
+ t.string :script_website
11
+ t.string :script_github
12
12
 
13
- t.date :scriptinitialrelease
14
- t.date :scriptlastestrelease
15
- t.date :scriptbetarelease
16
- t.date :scriptlastestreleasecdn
13
+ t.date :script_initial_release
14
+ t.date :script_lastest_release
15
+ t.date :script_beta_release
16
+ t.date :script_lastest_release_cdn
17
17
 
18
- t.string :scriptstatus
18
+ t.string :script_status
19
19
 
20
20
  t.string :slug
21
21
 
22
22
  t.string :user_id
23
- t.string :org_id
24
23
 
25
- t.references :version
26
24
  t.references :licence
27
25
  t.references :author
28
26
 
@@ -3,16 +3,15 @@ class CreatePhcscriptcdnScriptAuthors < ActiveRecord::Migration[5.2]
3
3
 
4
4
  create_table :phcscriptcdn_script_authors do |t|
5
5
 
6
- t.string :authorfirstname
7
- t.string :authorlastname
6
+ t.string :author_first_name
7
+ t.string :author_last_name
8
8
 
9
- t.string :authorwebsite
10
- t.string :authorgithub
9
+ t.string :author_website
10
+ t.string :author_github
11
11
 
12
12
  t.string :slug
13
13
 
14
14
  t.string :user_id
15
- t.string :org_id
16
15
 
17
16
  t.timestamps
18
17
 
@@ -3,14 +3,13 @@ class CreatePhcscriptcdnScriptExtensions < ActiveRecord::Migration[5.2]
3
3
 
4
4
  create_table :phcscriptcdn_script_extensions do |t|
5
5
 
6
- t.string :scriptextensionname
7
- t.text :scriptextensiondes
8
- t.string :scriptextension
6
+ t.string :script_extension_name
7
+ t.text :script_extension_description
8
+ t.string :script_extension
9
9
 
10
10
  t.string :slug
11
11
 
12
12
  t.string :user_id
13
- t.string :org_id
14
13
 
15
14
  t.timestamps
16
15
 
@@ -3,21 +3,19 @@ class CreatePhcscriptcdnScriptLicences < ActiveRecord::Migration[5.2]
3
3
 
4
4
  create_table :phcscriptcdn_script_licences do |t|
5
5
 
6
- t.string :lcncname
7
- t.string :lcncdescript
8
- t.text :lcncdescription
6
+ t.string :licence_name
7
+ t.text :licence_description
9
8
 
10
- t.string :lcnccomgpl
11
- t.string :lcncarvlfsf
12
- t.string :lcncarvlosi
13
- t.string :lcncarvlcopyfree
14
- t.string :lcncarvldebian
15
- t.string :lcncarvlfedora
9
+ t.string :licence_compatible_gpl
10
+ t.string :licence_approval_fsf
11
+ t.string :licence_approval_osi
12
+ t.string :licence_approval_copyfree
13
+ t.string :licence_approval_debian
14
+ t.string :licence_approval_fedora
16
15
 
17
16
  t.string :slug
18
17
 
19
18
  t.string :user_id
20
- t.string :org_id
21
19
 
22
20
  t.timestamps
23
21