phcscriptcdnpro 2.1.0 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (119) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/phcscriptcdnpro/application.js +2 -5
  3. data/app/assets/stylesheets/phcscriptcdnpro/application.scss +15 -20
  4. data/app/controllers/phcscriptcdnpro/application_controller.rb +1 -19
  5. data/app/controllers/phcscriptcdnpro/script/authors_controller.rb +74 -0
  6. data/app/controllers/phcscriptcdnpro/script/extensions_controller.rb +65 -0
  7. data/app/controllers/phcscriptcdnpro/script/licences_controller.rb +65 -0
  8. data/app/controllers/phcscriptcdnpro/script/listings_controller.rb +65 -0
  9. data/app/controllers/phcscriptcdnpro/script/urls_controller.rb +74 -0
  10. data/app/controllers/phcscriptcdnpro/script/versions_controller.rb +65 -0
  11. data/app/models/phcscriptcdnpro/application_record.rb +2 -0
  12. data/app/models/phcscriptcdnpro/{scriptcdn.rb → script.rb} +4 -2
  13. data/app/models/phcscriptcdnpro/script/author.rb +10 -0
  14. data/app/models/phcscriptcdnpro/script/extension.rb +8 -0
  15. data/app/models/phcscriptcdnpro/script/licence.rb +4 -0
  16. data/app/models/phcscriptcdnpro/script/listing.rb +17 -0
  17. data/app/models/phcscriptcdnpro/script/url.rb +16 -0
  18. data/app/models/phcscriptcdnpro/script/version.rb +13 -0
  19. data/app/views/phcscriptcdnpro/{scriptcdn → script}/authors/_form.html.erb +14 -11
  20. data/app/views/phcscriptcdnpro/script/authors/edit.html.erb +32 -0
  21. data/app/views/phcscriptcdnpro/script/authors/index.html.erb +55 -0
  22. data/app/views/phcscriptcdnpro/script/authors/new.html.erb +32 -0
  23. data/app/views/phcscriptcdnpro/script/authors/show.html.erb +4 -0
  24. data/app/views/phcscriptcdnpro/script/extensions/_form.html.erb +22 -0
  25. data/app/views/phcscriptcdnpro/script/extensions/edit.html.erb +32 -0
  26. data/app/views/phcscriptcdnpro/script/extensions/index.html.erb +49 -0
  27. data/app/views/phcscriptcdnpro/script/extensions/new.html.erb +32 -0
  28. data/app/views/phcscriptcdnpro/script/extensions/show.html.erb +4 -0
  29. data/app/views/phcscriptcdnpro/script/licences/_form.html.erb +42 -0
  30. data/app/views/phcscriptcdnpro/script/licences/edit.html.erb +32 -0
  31. data/app/views/phcscriptcdnpro/script/licences/index.html.erb +59 -0
  32. data/app/views/phcscriptcdnpro/script/licences/new.html.erb +32 -0
  33. data/app/views/phcscriptcdnpro/script/licences/show.html.erb +4 -0
  34. data/app/views/phcscriptcdnpro/{scriptcdn/informations → script/listings}/_form.html.erb +20 -10
  35. data/app/views/phcscriptcdnpro/script/listings/edit.html.erb +31 -0
  36. data/app/views/phcscriptcdnpro/script/listings/index.html.erb +54 -0
  37. data/app/views/phcscriptcdnpro/script/listings/new.html.erb +31 -0
  38. data/app/views/phcscriptcdnpro/script/listings/show.html.erb +27 -0
  39. data/app/views/phcscriptcdnpro/script/urls/_form.html.erb +32 -0
  40. data/app/views/phcscriptcdnpro/script/urls/edit.html.erb +32 -0
  41. data/app/views/phcscriptcdnpro/script/urls/index.html.erb +51 -0
  42. data/app/views/phcscriptcdnpro/script/urls/new.html.erb +32 -0
  43. data/app/views/phcscriptcdnpro/script/urls/show.html.erb +4 -0
  44. data/app/views/phcscriptcdnpro/script/versions/_form.html.erb +12 -0
  45. data/app/views/phcscriptcdnpro/script/versions/edit.html.erb +32 -0
  46. data/app/views/phcscriptcdnpro/script/versions/index.html.erb +47 -0
  47. data/app/views/phcscriptcdnpro/script/versions/new.html.erb +32 -0
  48. data/app/views/phcscriptcdnpro/script/versions/show.html.erb +4 -0
  49. data/config/routes.rb +14 -16
  50. data/db/migrate/{20160704185337_create_phcscriptcdnpro_scriptcdn_information.rb → 20160821183652_create_phcscriptcdnpro_script_listings.rb} +14 -8
  51. data/db/migrate/{20160704185254_create_phcscriptcdnpro_scriptcdn_authors.rb → 20160821183714_create_phcscriptcdnpro_script_authors.rb} +6 -6
  52. data/db/migrate/20160821183735_create_phcscriptcdnpro_script_extensions.rb +19 -0
  53. data/db/migrate/20160821183805_create_phcscriptcdnpro_script_licences.rb +25 -0
  54. data/db/migrate/20160821183830_create_phcscriptcdnpro_script_urls.rb +23 -0
  55. data/db/migrate/20160821183946_create_phcscriptcdnpro_script_versions.rb +17 -0
  56. data/lib/phcscriptcdnpro/engine.rb +2 -0
  57. data/lib/phcscriptcdnpro/version.rb +1 -1
  58. metadata +73 -84
  59. data/app/assets/javascripts/phcscriptcdnpro/api/mains.js +0 -2
  60. data/app/assets/javascripts/phcscriptcdnpro/cdnsite/cdnpages.js +0 -2
  61. data/app/assets/javascripts/phcscriptcdnpro/scriptcdn/authors.js +0 -2
  62. data/app/assets/javascripts/phcscriptcdnpro/scriptcdn/information.js +0 -2
  63. data/app/assets/javascripts/phcscriptcdnpro/scriptcdn/mains.js +0 -2
  64. data/app/assets/javascripts/phcscriptcdnpro/scriptcdn/urls.js +0 -2
  65. data/app/assets/javascripts/phcscriptcdnpro/scriptcdn/versions.js +0 -2
  66. data/app/assets/stylesheets/phcscriptcdnpro/api/mains.scss +0 -3
  67. data/app/assets/stylesheets/phcscriptcdnpro/cdnsite/cdnpages.scss +0 -3
  68. data/app/assets/stylesheets/phcscriptcdnpro/custom.scss +0 -0
  69. data/app/assets/stylesheets/phcscriptcdnpro/scriptcdn/authors.scss +0 -3
  70. data/app/assets/stylesheets/phcscriptcdnpro/scriptcdn/information.scss +0 -3
  71. data/app/assets/stylesheets/phcscriptcdnpro/scriptcdn/mains.scss +0 -3
  72. data/app/assets/stylesheets/phcscriptcdnpro/scriptcdn/urls.scss +0 -3
  73. data/app/assets/stylesheets/phcscriptcdnpro/scriptcdn/versions.scss +0 -3
  74. data/app/assets/stylesheets/scaffolds.scss +0 -89
  75. data/app/controllers/phcscriptcdnpro/api/mains_controller.rb +0 -17
  76. data/app/controllers/phcscriptcdnpro/scriptcdn/authors_controller.rb +0 -70
  77. data/app/controllers/phcscriptcdnpro/scriptcdn/informations_controller.rb +0 -70
  78. data/app/controllers/phcscriptcdnpro/scriptcdn/mains_controller.rb +0 -63
  79. data/app/controllers/phcscriptcdnpro/scriptcdn/urls_controller.rb +0 -70
  80. data/app/controllers/phcscriptcdnpro/scriptcdn/versions_controller.rb +0 -70
  81. data/app/helpers/phcscriptcdnpro/api/mains_helper.rb +0 -4
  82. data/app/helpers/phcscriptcdnpro/cdnsite/cdnpages_helper.rb +0 -4
  83. data/app/helpers/phcscriptcdnpro/scriptcdn/authors_helper.rb +0 -4
  84. data/app/helpers/phcscriptcdnpro/scriptcdn/information_helper.rb +0 -4
  85. data/app/helpers/phcscriptcdnpro/scriptcdn/mains_helper.rb +0 -4
  86. data/app/helpers/phcscriptcdnpro/scriptcdn/urls_helper.rb +0 -4
  87. data/app/helpers/phcscriptcdnpro/scriptcdn/versions_helper.rb +0 -4
  88. data/app/models/phcscriptcdnpro/scriptcdn/author.rb +0 -8
  89. data/app/models/phcscriptcdnpro/scriptcdn/information.rb +0 -8
  90. data/app/models/phcscriptcdnpro/scriptcdn/main.rb +0 -11
  91. data/app/models/phcscriptcdnpro/scriptcdn/url.rb +0 -8
  92. data/app/models/phcscriptcdnpro/scriptcdn/version.rb +0 -8
  93. data/app/views/phcscriptcdnpro/api/mains/index.json.rabl +0 -18
  94. data/app/views/phcscriptcdnpro/api/mains/show.json.rabl +0 -18
  95. data/app/views/phcscriptcdnpro/scriptcdn/authors/_formpatch.html.erb +0 -29
  96. data/app/views/phcscriptcdnpro/scriptcdn/authors/edit.html.erb +0 -43
  97. data/app/views/phcscriptcdnpro/scriptcdn/authors/index.html.erb +0 -65
  98. data/app/views/phcscriptcdnpro/scriptcdn/authors/new.html.erb +0 -43
  99. data/app/views/phcscriptcdnpro/scriptcdn/informations/_formpatch.html.erb +0 -49
  100. data/app/views/phcscriptcdnpro/scriptcdn/informations/edit.html.erb +0 -43
  101. data/app/views/phcscriptcdnpro/scriptcdn/informations/index.html.erb +0 -69
  102. data/app/views/phcscriptcdnpro/scriptcdn/informations/new.html.erb +0 -43
  103. data/app/views/phcscriptcdnpro/scriptcdn/mains/_form.html.erb +0 -13
  104. data/app/views/phcscriptcdnpro/scriptcdn/mains/edit.html.erb +0 -42
  105. data/app/views/phcscriptcdnpro/scriptcdn/mains/index.html.erb +0 -61
  106. data/app/views/phcscriptcdnpro/scriptcdn/mains/new.html.erb +0 -42
  107. data/app/views/phcscriptcdnpro/scriptcdn/urls/_form.html.erb +0 -17
  108. data/app/views/phcscriptcdnpro/scriptcdn/urls/_formpatch.html.erb +0 -17
  109. data/app/views/phcscriptcdnpro/scriptcdn/urls/edit.html.erb +0 -43
  110. data/app/views/phcscriptcdnpro/scriptcdn/urls/index.html.erb +0 -62
  111. data/app/views/phcscriptcdnpro/scriptcdn/urls/new.html.erb +0 -43
  112. data/app/views/phcscriptcdnpro/scriptcdn/versions/_form.html.erb +0 -13
  113. data/app/views/phcscriptcdnpro/scriptcdn/versions/_formpatch.html.erb +0 -13
  114. data/app/views/phcscriptcdnpro/scriptcdn/versions/edit.html.erb +0 -43
  115. data/app/views/phcscriptcdnpro/scriptcdn/versions/index.html.erb +0 -63
  116. data/app/views/phcscriptcdnpro/scriptcdn/versions/new.html.erb +0 -43
  117. data/db/migrate/20160704185441_create_phcscriptcdnpro_scriptcdn_urls.rb +0 -19
  118. data/db/migrate/20160704185454_create_phcscriptcdnpro_scriptcdn_versions.rb +0 -17
  119. data/db/migrate/20160704190509_create_phcscriptcdnpro_scriptcdn_mains.rb +0 -17
@@ -0,0 +1,32 @@
1
+ <!-- Title System -->
2
+ <% phc_title "Script Extension Manager" %>
3
+ <% phc_title_tagline "Add a Script Extension" %>
4
+
5
+ <!-- Page Header -->
6
+ <div class="row">
7
+ <div class="col-lg-12">
8
+
9
+ <!-- Bread Crumbs -->
10
+ <ol class="breadcrumb">
11
+ <li><%= link_to "Script Listings Index", script_listings_path %></li>
12
+ <li><%= link_to "Extensions Index", script_extensions_path %></li>
13
+ <li class="active"><%= yield(:phc_title_tagline) %></li>
14
+ </ol>
15
+
16
+ <!-- Page Title -->
17
+ <h3 class="page-title">
18
+ <%= yield(:phc_title) %> </br>
19
+ <small><%= yield(:phc_title_tagline) %></small>
20
+ </h3>
21
+
22
+ </div>
23
+ </div>
24
+
25
+ <!-- Main Content -->
26
+ <div class="row">
27
+ <div class="col-lg-12">
28
+
29
+ <%= render 'form', script_extension: @script_extension %>
30
+
31
+ </div>
32
+ </div>
@@ -0,0 +1,4 @@
1
+ <div class="btn-group" role="group" aria-label="extension_button_group">
2
+ <%= link_to 'Edit', edit_script_extension_path(@script_extension), class: "btn btn-primary" %>
3
+ <%= link_to 'Destroy', script_extension_path(@script_extension), method: :delete, data: { confirm: 'Are you sure?' }, class: "btn btn-primary" %>
4
+ </div>
@@ -0,0 +1,42 @@
1
+ <%= form_for(script_licence) do |f| %>
2
+
3
+ <div class="form-group field_with_error">
4
+ <%= f.label :lcncname, "Licence Name" %>
5
+ <%= f.text_field :lcncname, placeholder: "Licence Name", class: "form-control" %>
6
+ </div>
7
+
8
+ <div class="form-group field_with_error">
9
+ <%= f.label :lcnccomgpl, "GPL(v3) Compatible" %>
10
+ <%= f.select( :lcnccomgpl, [['No','No'],['Yes','Yes']], {}, {class: "form-control form-control"}) %>
11
+ </div>
12
+
13
+ <div class="form-group field_with_error">
14
+ <%= f.label :lcncarvlfsf, "FSF Approval" %>
15
+ <%= f.select( :lcncarvlfsf, [['No','No'],['Yes','Yes']], {}, {class: "form-control form-control"}) %>
16
+ </div>
17
+
18
+ <div class="form-group field_with_error">
19
+ <%= f.label :lcncarvlosi, "OSI Approval" %>
20
+ <%= f.select( :lcncarvlosi, [['No','No'],['Yes','Yes']], {}, {class: "form-control form-control"}) %>
21
+ </div>
22
+
23
+ <div class="form-group field_with_error">
24
+ <%= f.label :lcncarvlcopyfree, "Copyfree Approval" %>
25
+ <%= f.select( :lcncarvlcopyfree, [['No','No'],['Yes','Yes']], {}, {class: "form-control form-control"}) %>
26
+ </div>
27
+
28
+ <div class="form-group field_with_error">
29
+ <%= f.label :lcncarvldebian, "Debian Approval" %>
30
+ <%= f.select( :lcncarvldebian, [['No','No'],['Yes','Yes']], {}, {class: "form-control form-control"}) %>
31
+ </div>
32
+
33
+ <div class="form-group field_with_error">
34
+ <%= f.label :lcncarvlfedora, "Fedora Approval" %>
35
+ <%= f.select( :lcncarvlfedora, [['No','No'],['Yes','Yes']], {}, {class: "form-control form-control"}) %>
36
+ </div>
37
+
38
+ <div class="actions">
39
+ <%= f.submit class: "btn btn-primary" %>
40
+ </div>
41
+
42
+ <% end %>
@@ -0,0 +1,32 @@
1
+ <!-- Title System -->
2
+ <% phc_title "Script Licence Manager" %>
3
+ <% phc_title_tagline "Update Script Licence Information" %>
4
+
5
+ <!-- Page Header -->
6
+ <div class="row">
7
+ <div class="col-lg-12">
8
+
9
+ <!-- Bread Crumbs -->
10
+ <ol class="breadcrumb">
11
+ <li><%= link_to "Script Listings Index", script_listings_path %></li>
12
+ <li><%= link_to "Licence Index", script_licences_path %></li>
13
+ <li class="active"><%= yield(:phc_title_tagline) %></li>
14
+ </ol>
15
+
16
+ <!-- Page Title -->
17
+ <h3 class="page-title">
18
+ <%= yield(:phc_title) %> </br>
19
+ <small><%= yield(:phc_title_tagline) %></small>
20
+ </h3>
21
+
22
+ </div>
23
+ </div>
24
+
25
+ <!-- Main Content -->
26
+ <div class="row">
27
+ <div class="col-lg-12">
28
+
29
+ <%= render 'form', script_licence: @script_licence %>
30
+
31
+ </div>
32
+ </div>
@@ -0,0 +1,59 @@
1
+ <!-- Title System -->
2
+ <% phc_title "Script Licence Manager" %>
3
+ <% phc_title_tagline "Licence Index" %>
4
+
5
+ <!-- Page Header -->
6
+ <div class="row">
7
+ <div class="col-lg-12">
8
+
9
+ <!-- Bread Crumbs -->
10
+ <ol class="breadcrumb">
11
+ <li><%= link_to "Script Listings Index", script_listings_path %></li>
12
+ <li class="active"><%= yield(:phc_title_tagline) %></li>
13
+ </ol>
14
+
15
+ <!-- Page Title -->
16
+ <h3 class="page-title">
17
+ <%= yield(:phc_title) %> </br>
18
+ <small><%= yield(:phc_title_tagline) %></small>
19
+ </h3>
20
+
21
+ </div>
22
+ </div>
23
+
24
+ <!-- Main Content -->
25
+ <div class="row">
26
+ <div class="col-lg-12">
27
+
28
+ <table class="table table-striped table-bordered table-advance table-hover">
29
+ <thead>
30
+ <tr>
31
+ <th>Licence Name</th>
32
+ <th>GPLv3 Compatible</th>
33
+ <th>FSF Approval</th>
34
+ <th>OSI Approval</th>
35
+ <th>CopyFree Approval</th>
36
+ <th>Debian Approval</th>
37
+ <th>Fedora Approval</th>
38
+ </tr>
39
+ </thead>
40
+
41
+ <tbody>
42
+ <% @script_licences.each do |script_licence| %>
43
+ <tr>
44
+ <td><%= link_to script_licence.lcncname, script_licence %></td>
45
+ <td><%= link_to script_licence.lcnccomgpl, script_licence %></td>
46
+ <td><%= link_to script_licence.lcncarvlfsf, script_licence %></td>
47
+ <td><%= link_to script_licence.lcncarvlosi, script_licence %></td>
48
+ <td><%= link_to script_licence.lcncarvlcopyfree, script_licence %></td>
49
+ <td><%= link_to script_licence.lcncarvldebian, script_licence %></td>
50
+ <td><%= link_to script_licence.lcncarvlfedora, script_licence %></td>
51
+ </tr>
52
+ <% end %>
53
+ </tbody>
54
+ </table>
55
+
56
+ <%= link_to 'New Script Licence', new_script_licence_path, class: "btn btn-primary" %>
57
+
58
+ </div>
59
+ </div>
@@ -0,0 +1,32 @@
1
+ <!-- Title System -->
2
+ <% phc_title "Script Licence Manager" %>
3
+ <% phc_title_tagline "Add Script Licence Information" %>
4
+
5
+ <!-- Page Header -->
6
+ <div class="row">
7
+ <div class="col-lg-12">
8
+
9
+ <!-- Bread Crumbs -->
10
+ <ol class="breadcrumb">
11
+ <li><%= link_to "Script Listings Index", script_listings_path %></li>
12
+ <li><%= link_to "Licence Index", script_licences_path %></li>
13
+ <li class="active"><%= yield(:phc_title_tagline) %></li>
14
+ </ol>
15
+
16
+ <!-- Page Title -->
17
+ <h3 class="page-title">
18
+ <%= yield(:phc_title) %> </br>
19
+ <small><%= yield(:phc_title_tagline) %></small>
20
+ </h3>
21
+
22
+ </div>
23
+ </div>
24
+
25
+ <!-- Main Content -->
26
+ <div class="row">
27
+ <div class="col-lg-12">
28
+
29
+ <%= render 'form', script_licence: @script_licence %>
30
+
31
+ </div>
32
+ </div>
@@ -0,0 +1,4 @@
1
+ <div class="btn-group" role="group" aria-label="licence_button_group">
2
+ <%= link_to 'Edit', edit_script_licence_path(@script_licence), class: "btn btn-primary" %>
3
+ <%= link_to 'Destroy', script_licence_path(@script_licence), method: :delete, data: { confirm: 'Are you sure?' }, class: "btn btn-primary" %>
4
+ </div>
@@ -1,4 +1,4 @@
1
- <%= form_for([@scriptcdn_information.main, @scriptcdn_information], url: scriptcdn_main_informations_path) do |f| %>
1
+ <%= form_for(script_listing) do |f| %>
2
2
 
3
3
  <%= render 'phcnotifi/validations', :object => @scriptcdn_information %>
4
4
 
@@ -6,44 +6,54 @@
6
6
  <%= f.label :scripttitle, "Script Title" %>
7
7
  <%= f.text_field :scripttitle, placeholder: "Script Information Title", class: "form-control" %>
8
8
  </div>
9
+
9
10
  <div class="form-group field_with_error">
10
11
  <%= f.label :scriptdescription, "Script Description" %>
11
12
  <%= f.text_field :scriptdescription, placeholder: "Script Information Description", class: "form-control" %>
12
13
  </div>
13
- <div class="form-group field_with_error">
14
- <%= f.label :scriptcategory, "Script Category" %>
15
- <%= f.select( :scriptcategory, [['HTML','html'],['CSS','css']], { :multiple => true, :size => 5 }, {class: "form-control form-control"}) %>
16
- </div>
14
+
17
15
  <div class="form-group field_with_error">
18
16
  <%= f.label :scriptwebsite, "Script Website" %>
19
17
  <%= f.text_field :scriptwebsite, placeholder: "Script Information Website", class: "form-control" %>
20
18
  </div>
19
+
21
20
  <div class="form-group field_with_error">
22
21
  <%= f.label :scripttwitter, "Script Twitter" %>
23
22
  <%= f.text_field :scripttwitter, placeholder: "Script Information Twitter Address", class: "form-control" %>
24
23
  </div>
24
+
25
25
  <div class="form-group field_with_error">
26
26
  <%= f.label :scriptgithub, "Script Github" %>
27
27
  <%= f.text_field :scriptgithub, placeholder: "Script Information Github Address", class: "form-control" %>
28
28
  </div>
29
+
29
30
  <div class="form-group field_with_error">
30
31
  <%= f.label :scriptinitialrelease, "Initial Release" %>
31
32
  <%= f.date_select :scriptinitialrelease, class: "form-control" %>
32
33
  </div>
34
+
33
35
  <div class="form-group field_with_error">
34
- <%= f.label :scriptlicence, "Script Licence" %>
35
- <%= f.select( :scriptlicence, [['MIT','MIT'],['Apache 2.0','Apache v2']], {}, {class: "form-control form-control-sm"}) %>
36
+ <%= f.label :scriptlastestrelease, "Latest Release" %>
37
+ <%= f.date_select :scriptlastestrelease, class: "form-control" %>
36
38
  </div>
39
+
37
40
  <div class="form-group field_with_error">
38
- <%= f.label :scriptplatform, "Script Platform" %>
39
- <%= f.select( :scriptplatform, [['Web Engine','Web Engine']], {}, {class: "form-control form-control"}) %>
41
+ <%= f.label :scriptbetarelease, "Next Release" %>
42
+ <%= f.date_select :scriptbetarelease, class: "form-control" %>
43
+ </div>
44
+
45
+ <div class="form-group field_with_errors">
46
+ <label>Script Version</label>
47
+ <%= collection_select(:script_listing, :version_id, Phcscriptcdn::Script::Version.order('scriptversion'), :id, :scriptversion, {}, {class: "form-control"}) %>
40
48
  </div>
49
+
41
50
  <div class="form-group field_with_error">
42
51
  <%= f.label :scriptstatus, "Script Status" %>
43
52
  <%= f.select( :scriptstatus, [['Active','Active'],['Outdated','Out Dated'],['Deactivated','Not Active']], {}, {class: "form-control form-control"}) %>
44
53
  </div>
54
+
45
55
  <div class="form-group field_with_error">
46
- <%= f.submit class: "btn blue-hoki" %>
56
+ <%= f.submit class: "btn btn-primary" %>
47
57
  </div>
48
58
 
49
59
  <% end %>
@@ -0,0 +1,31 @@
1
+ <!-- Title System -->
2
+ <% phc_title "Script URL Manager" %>
3
+ <% phc_title_tagline "Script URL Index" %>
4
+
5
+ <!-- Page Header -->
6
+ <div class="row">
7
+ <div class="col-lg-12">
8
+
9
+ <!-- Bread Crumbs -->
10
+ <ol class="breadcrumb">
11
+ <li><%= link_to "Script Listings Index", script_listings_path %></li>
12
+ <li class="active"><%= yield(:phc_title_tagline) %></li>
13
+ </ol>
14
+
15
+ <!-- Page Title -->
16
+ <h3 class="page-title">
17
+ <%= yield(:phc_title) %> </br>
18
+ <small><%= yield(:phc_title_tagline) %></small>
19
+ </h3>
20
+
21
+ </div>
22
+ </div>
23
+
24
+ <!-- Main Content -->
25
+ <div class="row">
26
+ <div class="col-lg-12">
27
+
28
+ <%= render 'form', script_listing: @script_listing %>
29
+
30
+ </div>
31
+ </div>
@@ -0,0 +1,54 @@
1
+ <!-- Title System -->
2
+ <% phc_title "Script Listing Manager" %>
3
+ <% phc_title_tagline "Create a New Script Listing" %>
4
+
5
+ <!-- Page Header -->
6
+ <div class="row">
7
+ <div class="col-lg-12">
8
+
9
+ <!-- Bread Crumbs -->
10
+ <ol class="breadcrumb">
11
+ <li><%= link_to "Script Listings Index", script_listings_path %></li>
12
+ <li class="active"><%= yield(:phc_title_tagline) %></li>
13
+ </ol>
14
+
15
+ <!-- Page Title -->
16
+ <h3 class="page-title">
17
+ <%= yield(:phc_title) %> </br>
18
+ <small><%= yield(:phc_title_tagline) %></small>
19
+ </h3>
20
+
21
+ </div>
22
+ </div>
23
+
24
+ <!-- Main Content -->
25
+ <div class="row">
26
+ <div class="col-lg-12">
27
+
28
+ <!-- Main Content -->
29
+ <table class="table table-bordered table-striped table-hover">
30
+ <thead>
31
+ <tr>
32
+ <th>Title</th>
33
+ <th>Release Date</th>
34
+ <th>Latest Release Date</th>
35
+ <th>Beta Release Date</th>
36
+ </tr>
37
+ </thead>
38
+
39
+ <tbody>
40
+ <% @script_listings.each do |script_listing| %>
41
+ <tr>
42
+ <td class="vert-align"><%= link_to script_listing.scripttitle, script_listing_path(script_listing) %></td>
43
+ <td class="vert-align"><%= link_to script_listing.scriptinitialrelease, script_listing_path(script_listing) %></td>
44
+ <td class="vert-align"><%= link_to script_listing.scriptlastestrelease, script_listing_path(script_listing) %></td>
45
+ <td class="vert-align"><%= link_to script_listing.scriptbetarelease, script_listing_path(script_listing) %></td>
46
+ </tr>
47
+ <% end %>
48
+ </tbody>
49
+ </table>
50
+
51
+ <%= link_to 'New Script Listing', new_script_listing_path, class: "btn btn-primary" %>
52
+
53
+ </div>
54
+ </div>
@@ -0,0 +1,31 @@
1
+ <!-- Title System -->
2
+ <% phc_title "Script Listing Manager" %>
3
+ <% phc_title_tagline "Create a New Script Listing" %>
4
+
5
+ <!-- Page Header -->
6
+ <div class="row">
7
+ <div class="col-lg-12">
8
+
9
+ <!-- Bread Crumbs -->
10
+ <ol class="breadcrumb">
11
+ <li><%= link_to "Script Listings Index", script_listings_path %></li>
12
+ <li class="active"><%= yield(:phc_title_tagline) %></li>
13
+ </ol>
14
+
15
+ <!-- Page Title -->
16
+ <h3 class="page-title">
17
+ <%= yield(:phc_title) %> </br>
18
+ <small><%= yield(:phc_title_tagline) %></small>
19
+ </h3>
20
+
21
+ </div>
22
+ </div>
23
+
24
+ <!-- Main Content -->
25
+ <div class="row">
26
+ <div class="col-lg-12">
27
+
28
+ <%= render 'form', script_listing: @script_listing %>
29
+
30
+ </div>
31
+ </div>
@@ -0,0 +1,27 @@
1
+ <!-- Title System -->
2
+ <% phc_title "Script Listing Manager" %>
3
+ <% phc_title_tagline "Script Listing" %>
4
+
5
+ <!-- Page Header -->
6
+ <div class="row">
7
+ <div class="col-lg-12">
8
+
9
+ <!-- Bread Crumbs -->
10
+ <ol class="breadcrumb">
11
+ <li><%= link_to "Script Information", script_listings_path %></li>
12
+ <li class="active"><%= yield(:phc_title_tagline) %></li>
13
+ </ol>
14
+
15
+ <!-- Page Title -->
16
+ <h3 class="page-title">
17
+ <%= yield(:phc_title) %> </br>
18
+ <small><%= yield(:phc_title_tagline) %></small>
19
+ </h3>
20
+
21
+ </div>
22
+ </div>
23
+
24
+ <!-- Main Content -->
25
+
26
+ <%= link_to 'Edit', edit_script_listing_path(@script_listing) %> |
27
+ <%= link_to 'Back', script_listings_path %>
@@ -0,0 +1,32 @@
1
+ <%= form_for([@script_url.listing, @script_url], url: form_url) do |f| %>
2
+
3
+ <div class="form-group field_with_error">
4
+ <%= f.label :scripturl, "Script URL" %>
5
+ <%= f.text_field :scripturl, placeholder: "Script URL", class: "form-control" %>
6
+ </div>
7
+
8
+ <div class="form-group field_with_error">
9
+ <%= f.label :scripturlrelease, "Initial Release" %>
10
+ <%= f.date_select :scripturlrelease, class: "form-control" %>
11
+ </div>
12
+
13
+ <div class="form-group field_with_error">
14
+ <%= f.label :scripturlcdnupdate, "Latest Release" %>
15
+ <%= f.date_select :scripturlcdnupdate, class: "form-control" %>
16
+ </div>
17
+
18
+ <div class="form-group field_with_errors">
19
+ <label>Script Version</label>
20
+ <%= collection_select(:script_url, :version_id, Phcscriptcdn::Script::Version.order('scriptversion'), :id, :scriptversion, {}, {class: "form-control"}) %>
21
+ </div>
22
+
23
+ <div class="form-group field_with_errors">
24
+ <label>Script Extensions</label>
25
+ <%= collection_select(:script_url, :extension_id, Phcscriptcdn::Script::Extension.order('scriptextensionname'), :id, :scriptextension, {}, {class: "form-control"}) %>
26
+ </div>
27
+
28
+ <div class="actions">
29
+ <%= f.submit class: "btn btn-primary" %>
30
+ </div>
31
+
32
+ <% end %>