phcscriptcdn 3.3.3 → 4.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (51) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/phcscriptcdn/script/authors_controller.rb +14 -23
  3. data/app/controllers/phcscriptcdn/script/extensions_controller.rb +1 -1
  4. data/app/controllers/phcscriptcdn/script/licences_controller.rb +2 -2
  5. data/app/controllers/phcscriptcdn/script/listings_controller.rb +5 -5
  6. data/app/controllers/phcscriptcdn/script/urls_controller.rb +1 -1
  7. data/app/controllers/phcscriptcdn/script/versions_controller.rb +4 -4
  8. data/app/models/phcscriptcdn/script/author.rb +2 -2
  9. data/app/models/phcscriptcdn/script/extension.rb +4 -1
  10. data/app/models/phcscriptcdn/script/licence.rb +5 -0
  11. data/app/models/phcscriptcdn/script/listing.rb +7 -5
  12. data/app/models/phcscriptcdn/script/url.rb +3 -3
  13. data/app/models/phcscriptcdn/script/version.rb +5 -5
  14. data/app/views/phcscriptcdn/script/authors/_form.html.erb +3 -5
  15. data/app/views/phcscriptcdn/script/authors/edit.html.erb +10 -5
  16. data/app/views/phcscriptcdn/script/authors/index.html.erb +19 -14
  17. data/app/views/phcscriptcdn/script/authors/new.html.erb +10 -5
  18. data/app/views/phcscriptcdn/script/authors/show.html.erb +27 -0
  19. data/app/views/phcscriptcdn/script/extensions/_form.html.erb +2 -2
  20. data/app/views/phcscriptcdn/script/extensions/edit.html.erb +9 -4
  21. data/app/views/phcscriptcdn/script/extensions/index.html.erb +8 -3
  22. data/app/views/phcscriptcdn/script/extensions/new.html.erb +8 -3
  23. data/app/views/phcscriptcdn/script/extensions/show.html.erb +28 -0
  24. data/app/views/phcscriptcdn/script/licences/_form.html.erb +12 -13
  25. data/app/views/phcscriptcdn/script/licences/edit.html.erb +9 -4
  26. data/app/views/phcscriptcdn/script/licences/index.html.erb +7 -4
  27. data/app/views/phcscriptcdn/script/licences/new.html.erb +9 -4
  28. data/app/views/phcscriptcdn/script/licences/show.html.erb +27 -0
  29. data/app/views/phcscriptcdn/script/listings/_form.html.erb +23 -20
  30. data/app/views/phcscriptcdn/script/listings/edit.html.erb +9 -3
  31. data/app/views/phcscriptcdn/script/listings/index.html.erb +9 -7
  32. data/app/views/phcscriptcdn/script/listings/new.html.erb +8 -2
  33. data/app/views/phcscriptcdn/script/listings/show.html.erb +15 -5
  34. data/app/views/phcscriptcdn/script/urls/_form.html.erb +4 -6
  35. data/app/views/phcscriptcdn/script/urls/edit.html.erb +9 -3
  36. data/app/views/phcscriptcdn/script/urls/index.html.erb +7 -3
  37. data/app/views/phcscriptcdn/script/urls/new.html.erb +10 -4
  38. data/app/views/phcscriptcdn/script/urls/show.html.erb +39 -3
  39. data/app/views/phcscriptcdn/script/versions/_form.html.erb +2 -0
  40. data/app/views/phcscriptcdn/script/versions/edit.html.erb +8 -3
  41. data/app/views/phcscriptcdn/script/versions/index.html.erb +7 -3
  42. data/app/views/phcscriptcdn/script/versions/new.html.erb +9 -4
  43. data/app/views/phcscriptcdn/script/versions/show.html.erb +38 -3
  44. data/db/migrate/20160731205205_create_phcscriptcdn_script_extensions.rb +3 -0
  45. data/db/migrate/20160731205917_create_phcscriptcdn_script_listings.rb +6 -1
  46. data/db/migrate/20160731205954_create_phcscriptcdn_script_versions.rb +3 -0
  47. data/db/migrate/20160731210626_create_phcscriptcdn_script_urls.rb +3 -1
  48. data/db/migrate/20160731210723_create_phcscriptcdn_script_authors.rb +3 -2
  49. data/db/migrate/20160801032225_create_phcscriptcdn_script_licences.rb +4 -0
  50. data/lib/phcscriptcdn/version.rb +1 -1
  51. metadata +2 -2
@@ -1,6 +1,7 @@
1
1
  <!-- Title System -->
2
- <% phc_title "Script URL Manager" %>
3
- <% phc_title_tagline "Script URL Index" %>
2
+ <% phc_title "Script Listings Manager" %>
3
+ <% phc_title_tagline "Update Script Listing" %>
4
+ <!-- Title System -->
4
5
 
5
6
  <!-- Page Header -->
6
7
  <div class="row">
@@ -8,24 +9,29 @@
8
9
 
9
10
  <!-- Bread Crumbs -->
10
11
  <ol class="breadcrumb">
11
- <li><%= link_to "Script Listings Index", script_listings_path %></li>
12
+ <li><%= link_to "Listing Index", phcscriptcdn.script_listings_path %></li>
12
13
  <li class="active"><%= yield(:phc_title_tagline) %></li>
13
14
  </ol>
15
+ <!-- Bread Crumbs -->
14
16
 
15
17
  <!-- Page Title -->
16
18
  <h3 class="page-title">
17
19
  <%= yield(:phc_title) %> </br>
18
20
  <small><%= yield(:phc_title_tagline) %></small>
19
21
  </h3>
22
+ <!-- Page Title -->
20
23
 
21
24
  </div>
22
25
  </div>
26
+ <!-- Page Header -->
23
27
 
24
28
  <!-- Main Content -->
25
29
  <div class="row">
26
30
  <div class="col-lg-12">
27
31
 
32
+ <!-- Form Requries URL to Function Properly -->
28
33
  <%= render 'form', script_listing: @script_listing %>
29
34
 
30
35
  </div>
31
36
  </div>
37
+ <!-- Main Content -->
@@ -1,6 +1,7 @@
1
1
  <!-- Title System -->
2
- <% phc_title "Script Listing Manager" %>
3
- <% phc_title_tagline "Create a New Script Listing" %>
2
+ <% phc_title "Script Listings Manager" %>
3
+ <% phc_title_tagline "Script Listing Index" %>
4
+ <!-- Title System -->
4
5
 
5
6
  <!-- Page Header -->
6
7
  <div class="row">
@@ -8,25 +9,26 @@
8
9
 
9
10
  <!-- Bread Crumbs -->
10
11
  <ol class="breadcrumb">
11
- <li><%= link_to "Script Listings Index", script_listings_path %></li>
12
12
  <li class="active"><%= yield(:phc_title_tagline) %></li>
13
13
  </ol>
14
+ <!-- Bread Crumbs -->
14
15
 
15
16
  <!-- Page Title -->
16
17
  <h3 class="page-title">
17
18
  <%= yield(:phc_title) %> </br>
18
19
  <small><%= yield(:phc_title_tagline) %></small>
19
20
  </h3>
21
+ <!-- Page Title -->
20
22
 
21
23
  </div>
22
24
  </div>
25
+ <!-- Page Header -->
23
26
 
24
27
  <!-- Main Content -->
25
28
  <div class="row">
26
29
  <div class="col-lg-12">
27
30
 
28
- <!-- Main Content -->
29
- <table class="table table-bordered table-striped table-hover">
31
+ <table class="table table-striped table-bordered table-advance table-hover">
30
32
  <thead>
31
33
  <tr>
32
34
  <th>Title</th>
@@ -35,7 +37,6 @@
35
37
  <th>Beta Release Date</th>
36
38
  </tr>
37
39
  </thead>
38
-
39
40
  <tbody>
40
41
  <% @script_listings.each do |script_listing| %>
41
42
  <tr>
@@ -51,4 +52,5 @@
51
52
  <%= link_to 'New Script Listing', new_script_listing_path, class: "btn btn-primary" %>
52
53
 
53
54
  </div>
54
- </div>
55
+ </div>
56
+ <!-- Main Content -->
@@ -1,6 +1,7 @@
1
1
  <!-- Title System -->
2
- <% phc_title "Script Listing Manager" %>
2
+ <% phc_title "Script Listings Manager" %>
3
3
  <% phc_title_tagline "Create a New Script Listing" %>
4
+ <!-- Title System -->
4
5
 
5
6
  <!-- Page Header -->
6
7
  <div class="row">
@@ -8,24 +9,29 @@
8
9
 
9
10
  <!-- Bread Crumbs -->
10
11
  <ol class="breadcrumb">
11
- <li><%= link_to "Script Listings Index", script_listings_path %></li>
12
+ <li><%= link_to "Listing Index", phcscriptcdn.script_listings_path %></li>
12
13
  <li class="active"><%= yield(:phc_title_tagline) %></li>
13
14
  </ol>
15
+ <!-- Bread Crumbs -->
14
16
 
15
17
  <!-- Page Title -->
16
18
  <h3 class="page-title">
17
19
  <%= yield(:phc_title) %> </br>
18
20
  <small><%= yield(:phc_title_tagline) %></small>
19
21
  </h3>
22
+ <!-- Page Title -->
20
23
 
21
24
  </div>
22
25
  </div>
26
+ <!-- Page Header -->
23
27
 
24
28
  <!-- Main Content -->
25
29
  <div class="row">
26
30
  <div class="col-lg-12">
27
31
 
32
+ <!-- Form Requries URL to Function Properly -->
28
33
  <%= render 'form', script_listing: @script_listing %>
29
34
 
30
35
  </div>
31
36
  </div>
37
+ <!-- Main Content -->
@@ -1,6 +1,7 @@
1
1
  <!-- Title System -->
2
- <% phc_title "Script Listing Manager" %>
3
- <% phc_title_tagline "Script Listing" %>
2
+ <% phc_title "Script Listings Manager" %>
3
+ <% phc_title_tagline "Script Listings" %>
4
+ <!-- Title System -->
4
5
 
5
6
  <!-- Page Header -->
6
7
  <div class="row">
@@ -8,20 +9,29 @@
8
9
 
9
10
  <!-- Bread Crumbs -->
10
11
  <ol class="breadcrumb">
11
- <li><%= link_to "Script Information", script_listings_path %></li>
12
+ <li><%= link_to "Listing Index", phcscriptcdn.script_listings_path %></li>
12
13
  <li class="active"><%= yield(:phc_title_tagline) %></li>
13
14
  </ol>
15
+ <!-- Bread Crumbs -->
14
16
 
15
17
  <!-- Page Title -->
16
18
  <h3 class="page-title">
17
19
  <%= yield(:phc_title) %> </br>
18
20
  <small><%= yield(:phc_title_tagline) %></small>
19
21
  </h3>
22
+ <!-- Page Title -->
20
23
 
21
24
  </div>
22
25
  </div>
26
+ <!-- Page Header -->
23
27
 
24
28
  <!-- Main Content -->
29
+ <div class="row">
30
+ <div class="col-lg-12">
31
+
32
+ <%= link_to 'Edit', edit_script_listing_path(@script_listing) %> |
33
+ <%= link_to 'Back', script_listings_path %>
25
34
 
26
- <%= link_to 'Edit', edit_script_listing_path(@script_listing) %> |
27
- <%= link_to 'Back', script_listings_path %>
35
+ </div>
36
+ </div>
37
+ <!-- Main Content -->
@@ -1,28 +1,26 @@
1
1
  <%= form_for([@script_url.listing, @script_url], url: form_url) do |f| %>
2
2
 
3
+ <%= render 'phcnotifi/validations', :object => @script_url %>
4
+
3
5
  <div class="form-group field_with_error">
4
6
  <%= f.label :scripturl, "Script URL" %>
5
7
  <%= f.text_field :scripturl, placeholder: "Script URL", class: "form-control" %>
6
8
  </div>
7
-
8
9
  <div class="form-group field_with_error">
9
10
  <%= f.label :scripturlrelease, "Initial Release" %>
10
11
  <%= f.date_select :scripturlrelease, class: "form-control" %>
11
12
  </div>
12
-
13
13
  <div class="form-group field_with_error">
14
14
  <%= f.label :scripturlcdnupdate, "Latest Release" %>
15
15
  <%= f.date_select :scripturlcdnupdate, class: "form-control" %>
16
16
  </div>
17
-
18
17
  <div class="form-group field_with_errors">
19
18
  <label>Script Version</label>
20
- <%= collection_select(:script_url, :version_id, Phcscriptcdn::Script::Version.order('scriptversion'), :id, :scriptversion, {}, {class: "form-control"}) %>
19
+ <%= collection_select(:script_url, :version_id, Phcscriptcdnpro::Script::Version.order('scriptversion'), :id, :scriptversion, {}, {class: "form-control"}) %>
21
20
  </div>
22
-
23
21
  <div class="form-group field_with_errors">
24
22
  <label>Script Extensions</label>
25
- <%= collection_select(:script_url, :extension_id, Phcscriptcdn::Script::Extension.order('scriptextensionname'), :id, :scriptextension, {}, {class: "form-control"}) %>
23
+ <%= collection_select(:script_url, :extension_id, Phcscriptcdnpro::Script::Extension.order('scriptextensionname'), :id, :scriptextension, {}, {class: "form-control"}) %>
26
24
  </div>
27
25
 
28
26
  <div class="actions">
@@ -1,6 +1,7 @@
1
1
  <!-- Title System -->
2
- <% phc_title "Script URL Manager" %>
2
+ <% phc_title "Script Listings Manager" %>
3
3
  <% phc_title_tagline "Update Script URL Information" %>
4
+ <!-- Title System -->
4
5
 
5
6
  <!-- Page Header -->
6
7
  <div class="row">
@@ -8,25 +9,30 @@
8
9
 
9
10
  <!-- Bread Crumbs -->
10
11
  <ol class="breadcrumb">
11
- <li><%= link_to "Script Listings Index", script_listings_path %></li>
12
- <li><%= link_to "URL Index", script_listing_urls_path %></li>
12
+ <li><%= link_to "Script Listing Index", phcscriptcdn.script_listings_path %></li>
13
+ <li><%= link_to "Script URLs", phcscriptcdn.script_listing_urls_path %></li>
13
14
  <li class="active"><%= yield(:phc_title_tagline) %></li>
14
15
  </ol>
16
+ <!-- Bread Crumbs -->
15
17
 
16
18
  <!-- Page Title -->
17
19
  <h3 class="page-title">
18
20
  <%= yield(:phc_title) %> </br>
19
21
  <small><%= yield(:phc_title_tagline) %></small>
20
22
  </h3>
23
+ <!-- Page Title -->
21
24
 
22
25
  </div>
23
26
  </div>
27
+ <!-- Page Header -->
24
28
 
25
29
  <!-- Main Content -->
26
30
  <div class="row">
27
31
  <div class="col-lg-12">
28
32
 
33
+ <!-- Form Requries URL to Function Properly -->
29
34
  <%= render 'form', { form_url: script_listing_url_path } %>
30
35
 
31
36
  </div>
32
37
  </div>
38
+ <!-- Main Content -->
@@ -1,6 +1,7 @@
1
1
  <!-- Title System -->
2
- <% phc_title "Script URL Manager" %>
2
+ <% phc_title "Script Listings Manager" %>
3
3
  <% phc_title_tagline "Script URL Index" %>
4
+ <!-- Title System -->
4
5
 
5
6
  <!-- Page Header -->
6
7
  <div class="row">
@@ -8,18 +9,21 @@
8
9
 
9
10
  <!-- Bread Crumbs -->
10
11
  <ol class="breadcrumb">
11
- <li><%= link_to "Script Listings Index", script_listing_urls_path %></li>
12
+ <li><%= link_to "Script Listing Index", phcscriptcdn.script_listings_path %></li>
12
13
  <li class="active"><%= yield(:phc_title_tagline) %></li>
13
14
  </ol>
15
+ <!-- Bread Crumbs -->
14
16
 
15
17
  <!-- Page Title -->
16
18
  <h3 class="page-title">
17
19
  <%= yield(:phc_title) %> </br>
18
20
  <small><%= yield(:phc_title_tagline) %></small>
19
21
  </h3>
22
+ <!-- Page Title -->
20
23
 
21
24
  </div>
22
25
  </div>
26
+ <!-- Page Header -->
23
27
 
24
28
  <!-- Main Content -->
25
29
  <div class="row">
@@ -33,7 +37,6 @@
33
37
  <th>CDN Update Date</th>
34
38
  </tr>
35
39
  </thead>
36
-
37
40
  <tbody>
38
41
  <% @script_urls.each do |script_url| %>
39
42
  <tr>
@@ -49,3 +52,4 @@
49
52
 
50
53
  </div>
51
54
  </div>
55
+ <!-- Main Content -->
@@ -1,6 +1,7 @@
1
1
  <!-- Title System -->
2
- <% phc_title "Script URL Manager" %>
2
+ <% phc_title "Script Listings Manager" %>
3
3
  <% phc_title_tagline "Create a New Script URL" %>
4
+ <!-- Title System -->
4
5
 
5
6
  <!-- Page Header -->
6
7
  <div class="row">
@@ -8,25 +9,30 @@
8
9
 
9
10
  <!-- Bread Crumbs -->
10
11
  <ol class="breadcrumb">
11
- <li><%= link_to "Script Listings Index", script_listings_path %></li>
12
- <li><%= link_to "URL Index", script_listing_urls_path %></li>
12
+ <li><%= link_to "Script Listing Index", phcscriptcdn.script_listings_path %></li>
13
+ <li><%= link_to "Script URLs", phcscriptcdn.script_listing_urls_path %></li>
13
14
  <li class="active"><%= yield(:phc_title_tagline) %></li>
14
15
  </ol>
16
+ <!-- Bread Crumbs -->
15
17
 
16
18
  <!-- Page Title -->
17
19
  <h3 class="page-title">
18
20
  <%= yield(:phc_title) %> </br>
19
21
  <small><%= yield(:phc_title_tagline) %></small>
20
22
  </h3>
23
+ <!-- Page Title -->
21
24
 
22
25
  </div>
23
26
  </div>
27
+ <!-- Page Header -->
24
28
 
25
29
  <!-- Main Content -->
26
30
  <div class="row">
27
31
  <div class="col-lg-12">
28
32
 
29
- <%= render 'form', { form_url: script_listing_urls_path } %>
33
+ <!-- Form Requries URL to Function Properly -->
34
+ <%= render 'form', { form_url: script_listing_url_path } %>
30
35
 
31
36
  </div>
32
37
  </div>
38
+ <!-- Main Content -->
@@ -1,4 +1,40 @@
1
- <div class="btn-group" role="group" aria-label="url_button_group">
2
- <%= link_to 'Edit', edit_script_listing_url_path, class: "btn btn-primary" %>
3
- <%= link_to 'Destroy', script_listing_url_path, method: :delete, data: { confirm: 'Are you sure?' }, class: "btn btn-primary" %>
1
+ <!-- Title System -->
2
+ <% phc_title "Script Listings Manager" %>
3
+ <% phc_title_tagline "Script URL Details" %>
4
+ <!-- Title System -->
5
+
6
+ <!-- Page Header -->
7
+ <div class="row">
8
+ <div class="col-lg-12">
9
+
10
+ <!-- Bread Crumbs -->
11
+ <ol class="breadcrumb">
12
+ <li><%= link_to "Script Listing Index", phcscriptcdnpro.script_listings_path %></li>
13
+ <li><%= link_to "Script URLs", phcscriptcdnpro.script_listing_urls_path %></li>
14
+ <li class="active"><%= yield(:phc_title_tagline) %></li>
15
+ </ol>
16
+ <!-- Bread Crumbs -->
17
+
18
+ <!-- Page Title -->
19
+ <h3 class="page-title">
20
+ <%= yield(:phc_title) %> </br>
21
+ <small><%= yield(:phc_title_tagline) %></small>
22
+ </h3>
23
+ <!-- Page Title -->
24
+
25
+ </div>
4
26
  </div>
27
+ <!-- Page Header -->
28
+
29
+ <!-- Main Content -->
30
+ <div class="row">
31
+ <div class="col-lg-12">
32
+
33
+ <div class="btn-group" role="group" aria-label="url_button_group">
34
+ <%= link_to 'Edit', edit_script_listing_url_path, class: "btn btn-primary" %>
35
+ <%= link_to 'Destroy', script_listing_url_path, method: :delete, data: { confirm: 'Are you sure?' }, class: "btn btn-primary" %>
36
+ </div>
37
+
38
+ </div>
39
+ </div>
40
+ <!-- Main Content -->
@@ -1,5 +1,7 @@
1
1
  <%= form_for(script_version) do |f| %>
2
2
 
3
+ <%= render 'phcnotifi/validations', :object => @script_version %>
4
+
3
5
  <div class="form-group field_with_error">
4
6
  <%= f.label :scriptversion, "Version Number" %>
5
7
  <%= f.text_field :scriptversion, placeholder: "Version Number", class: "form-control" %>
@@ -1,6 +1,7 @@
1
1
  <!-- Title System -->
2
- <% phc_title "Script Version" %>
2
+ <% phc_title "Script Listings Manager" %>
3
3
  <% phc_title_tagline "Update Script Version Information" %>
4
+ <!-- Title System -->
4
5
 
5
6
  <!-- Page Header -->
6
7
  <div class="row">
@@ -8,25 +9,29 @@
8
9
 
9
10
  <!-- Bread Crumbs -->
10
11
  <ol class="breadcrumb">
11
- <li><%= link_to "Script Listings Index", script_listings_path %></li>
12
- <li><%= link_to "Versions Index", script_versions_path %></li>
12
+ <li><%= link_to "Script Version Index", phcscriptcdn.script_versions_path %></li>
13
13
  <li class="active"><%= yield(:phc_title_tagline) %></li>
14
14
  </ol>
15
+ <!-- Bread Crumbs -->
15
16
 
16
17
  <!-- Page Title -->
17
18
  <h3 class="page-title">
18
19
  <%= yield(:phc_title) %> </br>
19
20
  <small><%= yield(:phc_title_tagline) %></small>
20
21
  </h3>
22
+ <!-- Page Title -->
21
23
 
22
24
  </div>
23
25
  </div>
26
+ <!-- Page Header -->
24
27
 
25
28
  <!-- Main Content -->
26
29
  <div class="row">
27
30
  <div class="col-lg-12">
28
31
 
32
+ <!-- Form Requries URL to Function Properly -->
29
33
  <%= render 'form', script_version: @script_version %>
30
34
 
31
35
  </div>
32
36
  </div>
37
+ <!-- Main Content -->
@@ -1,6 +1,7 @@
1
1
  <!-- Title System -->
2
- <% phc_title "Script Version" %>
2
+ <% phc_title "Script Listings Manager" %>
3
3
  <% phc_title_tagline "Script Version Index" %>
4
+ <!-- Title System -->
4
5
 
5
6
  <!-- Page Header -->
6
7
  <div class="row">
@@ -8,18 +9,21 @@
8
9
 
9
10
  <!-- Bread Crumbs -->
10
11
  <ol class="breadcrumb">
11
- <li><%= link_to "Script Listings Index", script_listings_path %></li>
12
+ <li><%= link_to "Script Version Index", phcscriptcdn.script_versions_path %></li>
12
13
  <li class="active"><%= yield(:phc_title_tagline) %></li>
13
14
  </ol>
15
+ <!-- Bread Crumbs -->
14
16
 
15
17
  <!-- Page Title -->
16
18
  <h3 class="page-title">
17
19
  <%= yield(:phc_title) %> </br>
18
20
  <small><%= yield(:phc_title_tagline) %></small>
19
21
  </h3>
22
+ <!-- Page Title -->
20
23
 
21
24
  </div>
22
25
  </div>
26
+ <!-- Page Header -->
23
27
 
24
28
  <!-- Main Content -->
25
29
  <div class="row">
@@ -31,7 +35,6 @@
31
35
  <th>Script Version</th>
32
36
  </tr>
33
37
  </thead>
34
-
35
38
  <tbody>
36
39
  <% @script_versions.each do |script_version| %>
37
40
  <tr>
@@ -45,3 +48,4 @@
45
48
 
46
49
  </div>
47
50
  </div>
51
+ <!-- Main Content -->