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,3 +1,30 @@
1
+ <!-- Title System -->
2
+ <% phc_title "Script Listings Manager" %>
3
+ <% phc_title_tagline "Script Author Profile" %>
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 "Author Index", phcscriptcdn.script_authors_path %></li>
13
+ <li class="active"><%= yield(:phc_title_tagline) %></li>
14
+ </ol>
15
+ <!-- Bread Crumbs -->
16
+
17
+ <!-- Page Title -->
18
+ <h3 class="page-title">
19
+ <%= yield(:phc_title) %> </br>
20
+ <small><%= yield(:phc_title_tagline) %></small>
21
+ </h3>
22
+ <!-- Page Title -->
23
+
24
+ </div>
25
+ </div>
26
+ <!-- Page Header -->
27
+
1
28
  <div class="btn-group" role="group" aria-label="author_button_group">
2
29
  <%= link_to 'Edit', edit_script_listing_author_path(@script_author), class: "btn btn-primary" %>
3
30
  <%= link_to 'Destroy', script_listing_author_path(@script_author), method: :delete, data: { confirm: 'Are you sure?' }, class: "btn btn-primary" %>
@@ -1,15 +1,15 @@
1
1
  <%= form_for(script_extension) do |f| %>
2
2
 
3
+ <%= render 'phcnotifi/validations', :object => @script_extension %>
4
+
3
5
  <div class="form-group field_with_error">
4
6
  <%= f.label :scriptextensionname, "Extension Name" %>
5
7
  <%= f.text_field :scriptextensionname, placeholder: "Extension Name", class: "form-control" %>
6
8
  </div>
7
-
8
9
  <div class="form-group field_with_error">
9
10
  <%= f.label :scriptextensiondes, "Extension Description" %>
10
11
  <%= f.text_area :scriptextensiondes, placeholder: "Extension Description", class: "form-control" %>
11
12
  </div>
12
-
13
13
  <div class="form-group field_with_error">
14
14
  <%= f.label :scriptextension, "Script Extension" %>
15
15
  <%= f.text_field :scriptextension, placeholder: "Script Extension (.js/.css)", class: "form-control" %>
@@ -1,6 +1,7 @@
1
1
  <!-- Title System -->
2
- <% phc_title "Script Extension Manager" %>
3
- <% phc_title_tagline "Update Script Extension Information" %>
2
+ <% phc_title "Script Listings Manager" %>
3
+ <% phc_title_tagline "Update Script Extension" %>
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 "Extensions Index", script_extensions_path %></li>
12
+ <li><%= link_to "Script Extension Index", phcscriptcdn.script_extensions_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_extension: @script_extension %>
30
34
 
31
35
  </div>
32
36
  </div>
37
+ <!-- Main Content -->
@@ -1,6 +1,7 @@
1
1
  <!-- Title System -->
2
- <% phc_title "Script Extension Manager" %>
2
+ <% phc_title "Script Listings Manager" %>
3
3
  <% phc_title_tagline "Script Extension Index" %>
4
+ <!-- Title System -->
4
5
 
5
6
  <!-- Page Header -->
6
7
  <div class="row">
@@ -8,23 +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
 
31
+ <!-- Table Index -->
28
32
  <table class="table table-striped table-bordered table-advance table-hover">
29
33
  <thead>
30
34
  <tr>
@@ -32,7 +36,6 @@
32
36
  <th>Script Extension</th>
33
37
  </tr>
34
38
  </thead>
35
-
36
39
  <tbody>
37
40
  <% @script_extensions.each do |script_extension| %>
38
41
  <tr>
@@ -42,8 +45,10 @@
42
45
  <% end %>
43
46
  </tbody>
44
47
  </table>
48
+ <!-- Table Index -->
45
49
 
46
50
  <%= link_to 'New Script Extension', new_script_extension_path, class: "btn btn-primary" %>
47
51
 
48
52
  </div>
49
53
  </div>
54
+ <!-- Main Content -->
@@ -1,6 +1,7 @@
1
1
  <!-- Title System -->
2
- <% phc_title "Script Extension Manager" %>
2
+ <% phc_title "Script Listings Manager" %>
3
3
  <% phc_title_tagline "Add a Script Extension" %>
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 "Extensions Index", script_extensions_path %></li>
12
+ <li><%= link_to "Script Extension Index", phcscriptcdn.script_extensions_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_extension: @script_extension %>
30
34
 
31
35
  </div>
32
36
  </div>
37
+ <!-- Main Content -->
@@ -1,3 +1,31 @@
1
+ <!-- Title System -->
2
+ <% phc_title "Script Listings Manager" %>
3
+ <% phc_title_tagline "Script Extension 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 Extension Index", phcscriptcdn.script_extensions_path %></li>
13
+ <li class="active"><%= yield(:phc_title_tagline) %></li>
14
+ </ol>
15
+ <!-- Bread Crumbs -->
16
+
17
+ <!-- Page Title -->
18
+ <h3 class="page-title">
19
+ <%= yield(:phc_title) %> </br>
20
+ <small><%= yield(:phc_title_tagline) %></small>
21
+ </h3>
22
+ <!-- Page Title -->
23
+
24
+ </div>
25
+ </div>
26
+ <!-- Page Header -->
27
+
28
+
1
29
  <div class="btn-group" role="group" aria-label="extension_button_group">
2
30
  <%= link_to 'Edit', edit_script_extension_path(@script_extension), class: "btn btn-primary" %>
3
31
  <%= link_to 'Destroy', script_extension_path(@script_extension), method: :delete, data: { confirm: 'Are you sure?' }, class: "btn btn-primary" %>
@@ -1,40 +1,39 @@
1
1
  <%= form_for(script_licence) do |f| %>
2
2
 
3
+ <%= render 'phcnotifi/validations', :object => @script_licence %>
4
+
3
5
  <div class="form-group field_with_error">
4
6
  <%= f.label :lcncname, "Licence Name" %>
5
7
  <%= f.text_field :lcncname, placeholder: "Licence Name", class: "form-control" %>
6
8
  </div>
7
-
9
+ <div class="form-group field_with_error">
10
+ <%= f.label :lcncdescription, "Licence Description" %>
11
+ <%= f.text_area :lcncdescription, placeholder: "Licence Name", class: "form-control" %>
12
+ </div>
8
13
  <div class="form-group field_with_error">
9
14
  <%= f.label :lcnccomgpl, "GPL(v3) Compatible" %>
10
- <%= f.select( :lcnccomgpl, [['No','No'],['Yes','Yes']], {}, {class: "form-control form-control"}) %>
15
+ <%= f.select( :lcnccomgpl, [['No','No'],['Yes','Yes']], {}, {class: "form-control"}) %>
11
16
  </div>
12
-
13
17
  <div class="form-group field_with_error">
14
18
  <%= f.label :lcncarvlfsf, "FSF Approval" %>
15
- <%= f.select( :lcncarvlfsf, [['No','No'],['Yes','Yes']], {}, {class: "form-control form-control"}) %>
19
+ <%= f.select( :lcncarvlfsf, [['No','No'],['Yes','Yes']], {}, {class: "form-control"}) %>
16
20
  </div>
17
-
18
21
  <div class="form-group field_with_error">
19
22
  <%= f.label :lcncarvlosi, "OSI Approval" %>
20
- <%= f.select( :lcncarvlosi, [['No','No'],['Yes','Yes']], {}, {class: "form-control form-control"}) %>
23
+ <%= f.select( :lcncarvlosi, [['No','No'],['Yes','Yes']], {}, {class: "form-control"}) %>
21
24
  </div>
22
-
23
25
  <div class="form-group field_with_error">
24
26
  <%= f.label :lcncarvlcopyfree, "Copyfree Approval" %>
25
- <%= f.select( :lcncarvlcopyfree, [['No','No'],['Yes','Yes']], {}, {class: "form-control form-control"}) %>
27
+ <%= f.select( :lcncarvlcopyfree, [['No','No'],['Yes','Yes']], {}, {class: "form-control"}) %>
26
28
  </div>
27
-
28
29
  <div class="form-group field_with_error">
29
30
  <%= f.label :lcncarvldebian, "Debian Approval" %>
30
- <%= f.select( :lcncarvldebian, [['No','No'],['Yes','Yes']], {}, {class: "form-control form-control"}) %>
31
+ <%= f.select( :lcncarvldebian, [['No','No'],['Yes','Yes']], {}, {class: "form-control"}) %>
31
32
  </div>
32
-
33
33
  <div class="form-group field_with_error">
34
34
  <%= f.label :lcncarvlfedora, "Fedora Approval" %>
35
- <%= f.select( :lcncarvlfedora, [['No','No'],['Yes','Yes']], {}, {class: "form-control form-control"}) %>
35
+ <%= f.select( :lcncarvlfedora, [['No','No'],['Yes','Yes']], {}, {class: "form-control"}) %>
36
36
  </div>
37
-
38
37
  <div class="actions">
39
38
  <%= f.submit class: "btn btn-primary" %>
40
39
  </div>
@@ -1,6 +1,7 @@
1
1
  <!-- Title System -->
2
- <% phc_title "Script Licence Manager" %>
3
- <% phc_title_tagline "Update Script Licence Information" %>
2
+ <% phc_title "Script Listings Manager" %>
3
+ <% phc_title_tagline "Update Author Data" %>
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 "Licence Index", script_licences_path %></li>
12
+ <li><%= link_to "Script Licence Index", phcscriptcdn.script_licences_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_licence: @script_licence %>
30
34
 
31
35
  </div>
32
36
  </div>
37
+ <!-- Main Content -->
@@ -1,6 +1,7 @@
1
1
  <!-- Title System -->
2
- <% phc_title "Script Licence Manager" %>
3
- <% phc_title_tagline "Licence Index" %>
2
+ <% phc_title "Script Listings Manager" %>
3
+ <% phc_title_tagline "Script Licence Index" %>
4
+ <!-- Title System -->
4
5
 
5
6
  <!-- Page Header -->
6
7
  <div class="row">
@@ -8,18 +9,20 @@
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">
@@ -37,7 +40,6 @@
37
40
  <th>Fedora Approval</th>
38
41
  </tr>
39
42
  </thead>
40
-
41
43
  <tbody>
42
44
  <% @script_licences.each do |script_licence| %>
43
45
  <tr>
@@ -57,3 +59,4 @@
57
59
 
58
60
  </div>
59
61
  </div>
62
+ <!-- Main Content -->
@@ -1,6 +1,7 @@
1
1
  <!-- Title System -->
2
- <% phc_title "Script Licence Manager" %>
3
- <% phc_title_tagline "Add Script Licence Information" %>
2
+ <% phc_title "Script Listings Manager" %>
3
+ <% phc_title_tagline "Add a New Author" %>
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 "Licence Index", script_licences_path %></li>
12
+ <li><%= link_to "Script Licence Index", phcscriptcdn.script_licences_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_licence: @script_licence %>
30
34
 
31
35
  </div>
32
36
  </div>
37
+ <!-- Main Content -->
@@ -1,3 +1,30 @@
1
+ <!-- Title System -->
2
+ <% phc_title "Script Listings Manager" %>
3
+ <% phc_title_tagline "Script Licence 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 Licence Index", phcscriptcdn.script_licences_path %></li>
13
+ <li class="active"><%= yield(:phc_title_tagline) %></li>
14
+ </ol>
15
+ <!-- Bread Crumbs -->
16
+
17
+ <!-- Page Title -->
18
+ <h3 class="page-title">
19
+ <%= yield(:phc_title) %> </br>
20
+ <small><%= yield(:phc_title_tagline) %></small>
21
+ </h3>
22
+ <!-- Page Title -->
23
+
24
+ </div>
25
+ </div>
26
+ <!-- Page Header -->
27
+
1
28
  <div class="btn-group" role="group" aria-label="licence_button_group">
2
29
  <%= link_to 'Edit', edit_script_licence_path(@script_licence), class: "btn btn-primary" %>
3
30
  <%= link_to 'Destroy', script_licence_path(@script_licence), method: :delete, data: { confirm: 'Are you sure?' }, class: "btn btn-primary" %>
@@ -1,55 +1,58 @@
1
1
  <%= form_for(script_listing) do |f| %>
2
2
 
3
- <%= render 'phcnotifi/validations', :object => @scriptcdn_information %>
3
+ <%= render 'phcnotifi/validations', :object => @script_listing %>
4
4
 
5
5
  <div class="form-group field_with_error">
6
6
  <%= f.label :scripttitle, "Script Title" %>
7
- <%= f.text_field :scripttitle, placeholder: "Script Information Title", class: "form-control" %>
7
+ <%= f.text_field :scripttitle, placeholder: "Script Title", class: "form-control" %>
8
8
  </div>
9
-
10
9
  <div class="form-group field_with_error">
11
10
  <%= f.label :scriptdescription, "Script Description" %>
12
- <%= f.text_field :scriptdescription, placeholder: "Script Information Description", class: "form-control" %>
11
+ <%= f.text_area :scriptdescription, placeholder: "Script Description", class: "form-control" %>
12
+ </div>
13
+ <div class="form-group field_with_error">
14
+ <%= f.label :descriptionsource, "Script Source" %>
15
+ <%= f.text_field :descriptionsource, placeholder: "Script Source", class: "form-control" %>
13
16
  </div>
14
-
15
17
  <div class="form-group field_with_error">
16
18
  <%= f.label :scriptwebsite, "Script Website" %>
17
- <%= f.text_field :scriptwebsite, placeholder: "Script Information Website", class: "form-control" %>
19
+ <%= f.text_field :scriptwebsite, placeholder: "Script Website", class: "form-control" %>
18
20
  </div>
19
-
20
21
  <div class="form-group field_with_error">
21
22
  <%= f.label :scripttwitter, "Script Twitter" %>
22
- <%= f.text_field :scripttwitter, placeholder: "Script Information Twitter Address", class: "form-control" %>
23
+ <%= f.text_field :scripttwitter, placeholder: "Script Twitter Address", class: "form-control" %>
23
24
  </div>
24
-
25
25
  <div class="form-group field_with_error">
26
26
  <%= f.label :scriptgithub, "Script Github" %>
27
- <%= f.text_field :scriptgithub, placeholder: "Script Information Github Address", class: "form-control" %>
27
+ <%= f.text_field :scriptgithub, placeholder: "Script Github Address", class: "form-control" %>
28
28
  </div>
29
-
30
29
  <div class="form-group field_with_error">
31
30
  <%= f.label :scriptinitialrelease, "Initial Release" %>
32
- <%= f.date_select :scriptinitialrelease, class: "form-control" %>
31
+ <%= f.date_select :scriptinitialrelease, start_year: 1981, class: "form-control" %>
33
32
  </div>
34
-
35
33
  <div class="form-group field_with_error">
36
34
  <%= f.label :scriptlastestrelease, "Latest Release" %>
37
- <%= f.date_select :scriptlastestrelease, class: "form-control" %>
35
+ <%= f.date_select :scriptlastestrelease, start_year: 1981, class: "form-control" %>
38
36
  </div>
39
-
40
37
  <div class="form-group field_with_error">
41
38
  <%= f.label :scriptbetarelease, "Next Release" %>
42
- <%= f.date_select :scriptbetarelease, class: "form-control" %>
39
+ <%= f.date_select :scriptbetarelease, start_year: 1981, class: "form-control" %>
43
40
  </div>
44
-
45
41
  <div class="form-group field_with_errors">
46
42
  <label>Script Version</label>
47
- <%= collection_select(:script_listing, :version_id, Phcscriptcdn::Script::Version.order('scriptversion'), :id, :scriptversion, {}, {class: "form-control"}) %>
43
+ <%= collection_select(:script_listing, :version_id, Phcscriptcdnpro::Script::Version.order('scriptversion'), :id, :scriptversion, {}, {class: "form-control"}) %>
44
+ </div>
45
+ <div class="form-group field_with_errors">
46
+ <label>Script Licence</label>
47
+ <%= collection_select(:script_listing, :licence_id, Phcscriptcdnpro::Script::Licence.order('lcncname'), :id, :lcncname, {}, {class: "form-control"}) %>
48
+ </div>
49
+ <div class="form-group field_with_errors">
50
+ <label>Script Author</label>
51
+ <%= collection_select(:script_listing, :author_id, Phcscriptcdnpro::Script::Author.order('authorfirstname'), :id, :authorfirstname, {}, {class: "form-control"}) %>
48
52
  </div>
49
-
50
53
  <div class="form-group field_with_error">
51
54
  <%= f.label :scriptstatus, "Script Status" %>
52
- <%= f.select( :scriptstatus, [['Active','Active'],['Outdated','Out Dated'],['Deactivated','Not Active']], {}, {class: "form-control form-control"}) %>
55
+ <%= f.select( :scriptstatus, [['Active','Active'],['Outdated','Out Dated'],['Deactivated','Not Active']], {}, {class: "form-control"}) %>
53
56
  </div>
54
57
 
55
58
  <div class="form-group field_with_error">