phcscriptcdn 2.0.4 → 3.0.0.pre.beta

Sign up to get free protection for your applications and to get access to all the features.
Files changed (98) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +7 -3
  3. data/app/assets/javascripts/phcscriptcdn/script/licences.js +2 -0
  4. data/app/assets/stylesheets/phcscriptcdn/_custom.scss +9 -0
  5. data/app/assets/stylesheets/phcscriptcdn/application.scss +14 -15
  6. data/app/controllers/phcscriptcdn/script/authors_controller.rb +74 -0
  7. data/app/controllers/phcscriptcdn/script/extensions_controller.rb +65 -0
  8. data/app/controllers/phcscriptcdn/script/licences_controller.rb +65 -0
  9. data/app/controllers/phcscriptcdn/script/listings_controller.rb +65 -0
  10. data/app/controllers/phcscriptcdn/script/urls_controller.rb +75 -0
  11. data/app/controllers/phcscriptcdn/script/versions_controller.rb +65 -0
  12. data/app/helpers/phcscriptcdn/application_helper.rb +2 -2
  13. data/app/helpers/phcscriptcdn/script/licences_helper.rb +4 -0
  14. data/app/models/phcscriptcdn/script/author.rb +10 -0
  15. data/app/models/phcscriptcdn/script/extension.rb +4 -0
  16. data/app/models/phcscriptcdn/script/licence.rb +4 -0
  17. data/app/models/phcscriptcdn/script/listing.rb +13 -0
  18. data/app/models/phcscriptcdn/script/url.rb +10 -0
  19. data/app/models/phcscriptcdn/script/version.rb +5 -0
  20. data/app/models/phcscriptcdn/{scriptcdn.rb → script.rb} +2 -2
  21. data/app/views/layouts/phcscriptcdn/application.html.erb +3 -5
  22. data/app/views/phcscriptcdn/{scriptcdn → script}/authors/_form.html.erb +14 -12
  23. data/app/views/phcscriptcdn/script/authors/edit.html.erb +32 -0
  24. data/app/views/phcscriptcdn/script/authors/index.html.erb +55 -0
  25. data/app/views/phcscriptcdn/script/authors/new.html.erb +32 -0
  26. data/app/views/phcscriptcdn/script/authors/show.html.erb +4 -0
  27. data/app/views/phcscriptcdn/script/extensions/_form.html.erb +22 -0
  28. data/app/views/phcscriptcdn/script/extensions/edit.html.erb +32 -0
  29. data/app/views/phcscriptcdn/script/extensions/index.html.erb +49 -0
  30. data/app/views/phcscriptcdn/script/extensions/new.html.erb +32 -0
  31. data/app/views/phcscriptcdn/script/extensions/show.html.erb +4 -0
  32. data/app/views/phcscriptcdn/script/licences/_form.html.erb +42 -0
  33. data/app/views/phcscriptcdn/script/licences/edit.html.erb +32 -0
  34. data/app/views/phcscriptcdn/script/licences/index.html.erb +59 -0
  35. data/app/views/phcscriptcdn/script/licences/new.html.erb +32 -0
  36. data/app/views/phcscriptcdn/script/licences/show.html.erb +4 -0
  37. data/app/views/phcscriptcdn/{scriptcdn/informations → script/listings}/_form.html.erb +15 -10
  38. data/app/views/phcscriptcdn/script/listings/edit.html.erb +31 -0
  39. data/app/views/phcscriptcdn/script/listings/index.html.erb +54 -0
  40. data/app/views/phcscriptcdn/script/listings/new.html.erb +31 -0
  41. data/app/views/phcscriptcdn/script/listings/show.html.erb +27 -0
  42. data/app/views/phcscriptcdn/script/urls/_form.html.erb +12 -0
  43. data/app/views/phcscriptcdn/script/urls/edit.html.erb +32 -0
  44. data/app/views/phcscriptcdn/script/urls/index.html.erb +47 -0
  45. data/app/views/phcscriptcdn/script/urls/new.html.erb +32 -0
  46. data/app/views/phcscriptcdn/script/urls/show.html.erb +4 -0
  47. data/app/views/phcscriptcdn/script/versions/_form.html.erb +12 -0
  48. data/app/views/phcscriptcdn/script/versions/edit.html.erb +32 -0
  49. data/app/views/phcscriptcdn/script/versions/index.html.erb +47 -0
  50. data/app/views/phcscriptcdn/script/versions/new.html.erb +32 -0
  51. data/app/views/phcscriptcdn/script/versions/show.html.erb +4 -0
  52. data/config/routes.rb +13 -14
  53. data/db/migrate/20160731205205_create_phcscriptcdn_script_extensions.rb +15 -0
  54. data/db/migrate/20160731205917_create_phcscriptcdn_script_listings.rb +26 -0
  55. data/db/migrate/20160731205954_create_phcscriptcdn_script_versions.rb +13 -0
  56. data/db/migrate/20160731210626_create_phcscriptcdn_script_urls.rb +16 -0
  57. data/db/migrate/20160731210723_create_phcscriptcdn_script_authors.rb +20 -0
  58. data/db/migrate/20160801032225_create_phcscriptcdn_script_licences.rb +21 -0
  59. data/lib/phcscriptcdn/version.rb +1 -1
  60. metadata +172 -74
  61. data/app/controllers/phcscriptcdn/scriptcdn/authors_controller.rb +0 -69
  62. data/app/controllers/phcscriptcdn/scriptcdn/informations_controller.rb +0 -69
  63. data/app/controllers/phcscriptcdn/scriptcdn/mains_controller.rb +0 -62
  64. data/app/controllers/phcscriptcdn/scriptcdn/urls_controller.rb +0 -84
  65. data/app/controllers/phcscriptcdn/scriptcdn/versions_controller.rb +0 -69
  66. data/app/models/phcscriptcdn/scriptcdn/author.rb +0 -8
  67. data/app/models/phcscriptcdn/scriptcdn/information.rb +0 -8
  68. data/app/models/phcscriptcdn/scriptcdn/main.rb +0 -11
  69. data/app/models/phcscriptcdn/scriptcdn/url.rb +0 -8
  70. data/app/models/phcscriptcdn/scriptcdn/version.rb +0 -8
  71. data/app/views/phcscriptcdn/scriptcdn/authors/_formpatch.html.erb +0 -29
  72. data/app/views/phcscriptcdn/scriptcdn/authors/edit.html.erb +0 -3
  73. data/app/views/phcscriptcdn/scriptcdn/authors/index.html.erb +0 -23
  74. data/app/views/phcscriptcdn/scriptcdn/authors/new.html.erb +0 -3
  75. data/app/views/phcscriptcdn/scriptcdn/informations/_formpatch.html.erb +0 -49
  76. data/app/views/phcscriptcdn/scriptcdn/informations/edit.html.erb +0 -3
  77. data/app/views/phcscriptcdn/scriptcdn/informations/index.html.erb +0 -26
  78. data/app/views/phcscriptcdn/scriptcdn/informations/new.html.erb +0 -3
  79. data/app/views/phcscriptcdn/scriptcdn/informations/show.html.erb +0 -58
  80. data/app/views/phcscriptcdn/scriptcdn/mains/_form.html.erb +0 -13
  81. data/app/views/phcscriptcdn/scriptcdn/mains/edit.html.erb +0 -3
  82. data/app/views/phcscriptcdn/scriptcdn/mains/index.html.erb +0 -19
  83. data/app/views/phcscriptcdn/scriptcdn/mains/new.html.erb +0 -3
  84. data/app/views/phcscriptcdn/scriptcdn/urls/_form.html.erb +0 -17
  85. data/app/views/phcscriptcdn/scriptcdn/urls/_formpatch.html.erb +0 -17
  86. data/app/views/phcscriptcdn/scriptcdn/urls/edit.html.erb +0 -3
  87. data/app/views/phcscriptcdn/scriptcdn/urls/index.html.erb +0 -21
  88. data/app/views/phcscriptcdn/scriptcdn/urls/new.html.erb +0 -3
  89. data/app/views/phcscriptcdn/scriptcdn/versions/_form.html.erb +0 -13
  90. data/app/views/phcscriptcdn/scriptcdn/versions/_formpatch.html.erb +0 -13
  91. data/app/views/phcscriptcdn/scriptcdn/versions/edit.html.erb +0 -3
  92. data/app/views/phcscriptcdn/scriptcdn/versions/index.html.erb +0 -20
  93. data/app/views/phcscriptcdn/scriptcdn/versions/new.html.erb +0 -3
  94. data/db/migrate/20160704004828_create_phcscriptcdn_scriptcdn_authors.rb +0 -20
  95. data/db/migrate/20160704005455_create_phcscriptcdn_scriptcdn_information.rb +0 -27
  96. data/db/migrate/20160704011123_create_phcscriptcdn_scriptcdn_urls.rb +0 -19
  97. data/db/migrate/20160704011452_create_phcscriptcdn_scriptcdn_versions.rb +0 -15
  98. data/db/migrate/20160704011727_create_phcscriptcdn_scriptcdn_mains.rb +0 -11
@@ -0,0 +1,55 @@
1
+ <!-- Title System -->
2
+ <% phc_title "Script Authors" %>
3
+ <% phc_title_tagline "Script Author 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 Author Index", script_listing_authors_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>Author Firstname</th>
32
+ <th>Author Lastname</th>
33
+ <th>Author Website</th>
34
+ <th>Author Github</th>
35
+ <th>Author Twitter</th>
36
+ </tr>
37
+ </thead>
38
+
39
+ <tbody>
40
+ <% @script_authors.each do |script_author| %>
41
+ <tr>
42
+ <td><%= link_to script_author.authorfirstname, script_listing_author_path(script_author.listing, script_author) %></td>
43
+ <td><%= link_to script_author.authorlastname, script_listing_author_path(script_author.listing, script_author) %></td>
44
+ <td><%= link_to script_author.authorwebsite, script_listing_author_path(script_author.listing, script_author) %></td>
45
+ <td><%= link_to script_author.authorgithub, script_listing_author_path(script_author.listing, script_author) %></td>
46
+ <td><%= link_to script_author.authortwitter, script_listing_author_path(script_author.listing, script_author) %></td>
47
+ </tr>
48
+ <% end %>
49
+ </tbody>
50
+ </table>
51
+
52
+ <%= link_to 'New Script Author', new_script_listing_author_path, class: "btn btn-primary" %>
53
+
54
+ </div>
55
+ </div>
@@ -0,0 +1,32 @@
1
+ <!-- Title System -->
2
+ <% phc_title "Script Author" %>
3
+ <% phc_title_tagline "Create a New Script Author" %>
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 "Author Index", script_listing_authors_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', { form_url: script_listing_authors_path } %>
30
+
31
+ </div>
32
+ </div>
@@ -0,0 +1,4 @@
1
+ <div class="btn-group" role="group" aria-label="author_button_group">
2
+ <%= link_to 'Edit', edit_script_listing_author_path(@script_author), class: "btn btn-primary" %>
3
+ <%= link_to 'Destroy', script_listing_author_path(@script_author), method: :delete, data: { confirm: 'Are you sure?' }, class: "btn btn-primary" %>
4
+ </div>
@@ -0,0 +1,22 @@
1
+ <%= form_for(script_extension) do |f| %>
2
+
3
+ <div class="form-group field_with_error">
4
+ <%= f.label :scriptextensionname, "Extension Name" %>
5
+ <%= f.text_field :scriptextensionname, placeholder: "Extension Name", class: "form-control" %>
6
+ </div>
7
+
8
+ <div class="form-group field_with_error">
9
+ <%= f.label :scriptextensiondes, "Extension Description" %>
10
+ <%= f.text_area :scriptextensiondes, placeholder: "Extension Description", class: "form-control" %>
11
+ </div>
12
+
13
+ <div class="form-group field_with_error">
14
+ <%= f.label :scriptextension, "Script Extension" %>
15
+ <%= f.text_field :scriptextension, placeholder: "Script Extension (.js/.css)", class: "form-control" %>
16
+ </div>
17
+
18
+ <div class="actions">
19
+ <%= f.submit class: "btn btn-primary" %>
20
+ </div>
21
+
22
+ <% end %>
@@ -0,0 +1,32 @@
1
+ <!-- Title System -->
2
+ <% phc_title "Script Extension Manager" %>
3
+ <% phc_title_tagline "Update Script Extension 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 "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,49 @@
1
+ <!-- Title System -->
2
+ <% phc_title "Script Extension Manager" %>
3
+ <% phc_title_tagline "Script Extension 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>Script Extension Name</th>
32
+ <th>Script Extension</th>
33
+ </tr>
34
+ </thead>
35
+
36
+ <tbody>
37
+ <% @script_extensions.each do |script_extension| %>
38
+ <tr>
39
+ <td><%= link_to script_extension.scriptextensionname, script_extension %></td>
40
+ <td><%= link_to script_extension.scriptextension, script_extension %></td>
41
+ </tr>
42
+ <% end %>
43
+ </tbody>
44
+ </table>
45
+
46
+ <%= link_to 'New Script Extension', new_script_extension_path, class: "btn btn-primary" %>
47
+
48
+ </div>
49
+ </div>
@@ -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,49 @@
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" %>
40
43
  </div>
44
+
41
45
  <div class="form-group field_with_error">
42
46
  <%= f.label :scriptstatus, "Script Status" %>
43
47
  <%= f.select( :scriptstatus, [['Active','Active'],['Outdated','Out Dated'],['Deactivated','Not Active']], {}, {class: "form-control form-control"}) %>
44
48
  </div>
49
+
45
50
  <div class="form-group field_with_error">
46
- <%= f.submit class: "btn blue-hoki" %>
51
+ <%= f.submit class: "btn btn-primary" %>
47
52
  </div>
48
53
 
49
54
  <% 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>Category</th>
34
+ <th>Licence</th>
35
+ <th></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.scriptlastestreleasecdn, script_listing_path(script_listing) %></td>
45
+ <td class="vert-align"><%= link_to 'Destroy', script_listing_path(script_listing), method: :delete, data: { confirm: 'Are you sure?' }, class: "btn btn-danger" %></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,12 @@
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="actions">
9
+ <%= f.submit class: "btn btn-primary" %>
10
+ </div>
11
+
12
+ <% end %>