phcscriptcdnpro 64.1.0 → 65.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (60) hide show
  1. checksums.yaml +4 -4
  2. data/MIT-LICENSE +1 -1
  3. data/README.md +1 -1
  4. data/app/assets/stylesheets/phcscriptcdnpro/application.scss +1 -1
  5. data/app/controllers/phcscriptcdnpro/application_controller.rb +1 -2
  6. data/app/helpers/phcscriptcdnpro/script/authors_helper.rb +4 -0
  7. data/app/helpers/phcscriptcdnpro/script/extensions_helper.rb +4 -0
  8. data/app/helpers/phcscriptcdnpro/script/licences_helper.rb +4 -0
  9. data/app/helpers/phcscriptcdnpro/script/listings_helper.rb +4 -0
  10. data/app/helpers/phcscriptcdnpro/script/urls_helper.rb +4 -0
  11. data/app/helpers/phcscriptcdnpro/script/versions_helper.rb +4 -0
  12. data/app/mailers/phcscriptcdnpro/application_mailer.rb +1 -3
  13. data/app/views/layouts/phcscriptcdnpro/application.html.erb +54 -27
  14. data/app/views/layouts/phcscriptcdnpro/components/backend/footer/_footer.html.erb +1 -8
  15. data/app/views/layouts/phcscriptcdnpro/components/backend/navigation/_top_menu.html.erb +143 -0
  16. data/app/views/layouts/phcscriptcdnpro/components/backend/sidebars/_side_menu.html.erb +146 -0
  17. data/app/views/phcscriptcdnpro/script/authors/_form.html.erb +12 -12
  18. data/app/views/phcscriptcdnpro/script/authors/edit.html.erb +13 -44
  19. data/app/views/phcscriptcdnpro/script/authors/index.html.erb +33 -65
  20. data/app/views/phcscriptcdnpro/script/authors/new.html.erb +14 -44
  21. data/app/views/phcscriptcdnpro/script/extensions/_form.html.erb +8 -8
  22. data/app/views/phcscriptcdnpro/script/extensions/edit.html.erb +14 -44
  23. data/app/views/phcscriptcdnpro/script/extensions/index.html.erb +27 -58
  24. data/app/views/phcscriptcdnpro/script/extensions/new.html.erb +13 -44
  25. data/app/views/phcscriptcdnpro/script/licences/_form.html.erb +18 -18
  26. data/app/views/phcscriptcdnpro/script/licences/edit.html.erb +13 -44
  27. data/app/views/phcscriptcdnpro/script/licences/index.html.erb +37 -68
  28. data/app/views/phcscriptcdnpro/script/licences/new.html.erb +13 -44
  29. data/app/views/phcscriptcdnpro/script/listings/_form.html.erb +22 -22
  30. data/app/views/phcscriptcdnpro/script/listings/edit.html.erb +14 -44
  31. data/app/views/phcscriptcdnpro/script/listings/index.html.erb +31 -62
  32. data/app/views/phcscriptcdnpro/script/listings/new.html.erb +14 -45
  33. data/app/views/phcscriptcdnpro/script/urls/_form.html.erb +7 -7
  34. data/app/views/phcscriptcdnpro/script/urls/edit.html.erb +13 -44
  35. data/app/views/phcscriptcdnpro/script/urls/index.html.erb +29 -60
  36. data/app/views/phcscriptcdnpro/script/urls/new.html.erb +13 -44
  37. data/app/views/phcscriptcdnpro/script/versions/_form.html.erb +4 -4
  38. data/app/views/phcscriptcdnpro/script/versions/edit.html.erb +13 -44
  39. data/app/views/phcscriptcdnpro/script/versions/index.html.erb +25 -56
  40. data/app/views/phcscriptcdnpro/script/versions/new.html.erb +13 -46
  41. data/config/routes.rb +21 -27
  42. data/lib/phcscriptcdnpro/engine.rb +61 -3
  43. data/lib/phcscriptcdnpro/version.rb +1 -1
  44. metadata +11 -19
  45. data/app/controllers/phcscriptcdnpro/frontend/listings_controller.rb +0 -20
  46. data/app/models/phcscriptcdnpro/frontend.rb +0 -9
  47. data/app/models/phcscriptcdnpro/frontend/listing.rb +0 -8
  48. data/app/views/layouts/phcscriptcdnpro/components/backend/navigation/_top_bar.html.erb +0 -8
  49. data/app/views/layouts/phcscriptcdnpro/components/backend/sidebars/_left_sidebar.html.erb +0 -45
  50. data/app/views/layouts/phcscriptcdnpro/components/backend/sidebars/_right_sidebar.html.erb +0 -0
  51. data/app/views/layouts/phcscriptcdnpro/components/frontend/footer/_footer.html.erb +0 -14
  52. data/app/views/layouts/phcscriptcdnpro/components/frontend/footer/_footer_copyright.html.erb +0 -19
  53. data/app/views/layouts/phcscriptcdnpro/components/frontend/header/_slideout.html.erb +0 -24
  54. data/app/views/layouts/phcscriptcdnpro/components/frontend/header/_topbar.html.erb +0 -17
  55. data/app/views/layouts/phcscriptcdnpro/components/frontend/navigation/_navigation.html.erb +0 -27
  56. data/app/views/layouts/phcscriptcdnpro/components/frontend/pages/_titlebars.html.erb +0 -14
  57. data/app/views/layouts/phcscriptcdnpro/components/frontend/seo/_seo_main.html.erb +0 -5
  58. data/app/views/layouts/phcscriptcdnpro/frontend.html.erb +0 -70
  59. data/app/views/phcscriptcdnpro/frontend/listings/index.html.erb +0 -52
  60. data/app/views/phcscriptcdnpro/frontend/listings/show.html.erb +0 -65
@@ -5,53 +5,22 @@
5
5
  <% phc_breadcrumb_two yield(:phc_title_tagline) %>
6
6
  <!-- Title System -->
7
7
 
8
- <!-- Page Header -->
9
- <div class="row wrapper border-bottom white-bg page-heading">
10
- <div class="col-sm-8">
11
- <h2><%= yield(:phc_title) %></h2>
12
- <!-- Bread Crumb -->
13
- <ol class="breadcrumb">
14
- <li><%= yield(:phc_breadcrumb_one) %></li>
15
- <li class="active"><%= yield(:phc_breadcrumb_two) %></li>
16
- </ol>
17
- <!-- Bread Crumb -->
18
- </div>
19
- <div class="col-sm-4">
20
- <div class="title-action">
21
- <%= link_to phcscriptcdnpro.script_extensions_path, class: "btn btn-primary" do %>
22
- <i class="fa fa-plus"></i> Back to Script Licence Index
23
- <% end %>
8
+ <!-- Page Content -->
9
+ <div class="panel panel-inverse">
10
+ <div class="panel-heading">
11
+ <div class="panel-heading-btn">
12
+ <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-default" data-click="panel-expand"><i class="fa fa-expand"></i></a>
13
+ <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-success" data-click="panel-reload"><i class="fa fa-redo"></i></a>
14
+ <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-warning" data-click="panel-collapse"><i class="fa fa-minus"></i></a>
24
15
  </div>
16
+ <h4 class="panel-title"><%= yield(:phc_title_tagline) %></h4>
25
17
  </div>
26
- </div>
27
- <!-- Page Header -->
28
-
29
- <!-- Page Content -->
30
- <div class="wrapper wrapper-content animated fadeInRight">
31
- <div class="row">
32
- <div class="col-lg-12">
18
+ <div class="panel-body">
33
19
 
34
- <div class="ibox float-e-margins">
35
- <div class="ibox-title">
36
- <h5><%= yield(:phc_title_tagline) %></h5>
37
- <div class="ibox-tools">
38
- <a class="collapse-link">
39
- <i class="fa fa-chevron-up"></i>
40
- </a>
41
- <a class="close-link">
42
- <i class="fa fa-times"></i>
43
- </a>
44
- </div>
45
- </div>
46
- <div class="ibox-content">
47
-
48
- <!-- Form Requries URL to Function Properly -->
49
- <%= render 'form', script_extension: @script_extension %>
50
-
51
- </div>
52
- </div>
53
-
54
- </div>
20
+ <!-- -->
21
+ <%= render 'form', script_extension: @script_extension %>
22
+ <!-- -->
23
+
55
24
  </div>
56
25
  </div>
57
26
  <!-- Page Content -->
@@ -1,46 +1,46 @@
1
- <%= form_for(script_licence) do |f| %>
1
+ <%= form_with(model: script_licence, local: true) do |form| %>
2
2
 
3
3
  <!-- PHCNotifi Render Validation -->
4
4
  <%= render 'phcnotifi/validations', :object => @script_licence %>
5
5
 
6
6
  <!-- Form Input Fields -->
7
7
  <div class="form-group field_with_error">
8
- <%= f.label :lcncname, "Licence Name" %>
9
- <%= f.text_field :lcncname, placeholder: "Licence Name", class: "form-control" %>
8
+ <%= form.label :lcncname, "Licence Name" %>
9
+ <%= form.text_field :lcncname, placeholder: "Licence Name", class: "form-control" %>
10
10
  </div>
11
11
  <div class="form-group field_with_error">
12
- <%= f.label :lcncdescript, "Licence Description" %>
13
- <%= f.text_area :lcncdescript, placeholder: "Licence Descirption", class: "form-control" %>
12
+ <%= form.label :lcncdescript, "Licence Description" %>
13
+ <%= form.text_area :lcncdescript, placeholder: "Licence Descirption", class: "form-control" %>
14
14
  </div>
15
15
  <div class="form-group field_with_error">
16
- <%= f.label :lcnccomgpl, "GPL(v3) Compatible" %>
17
- <%= f.select( :lcnccomgpl, [['No','No'],['Yes','Yes']], {}, {class: "form-control"}) %>
16
+ <%= form.label :lcnccomgpl, "GPL(v3) Compatible" %>
17
+ <%= form.select( :lcnccomgpl, [['No','No'],['Yes','Yes']], {}, {class: "form-control"}) %>
18
18
  </div>
19
19
  <div class="form-group field_with_error">
20
- <%= f.label :lcncarvlfsf, "FSF Approval" %>
21
- <%= f.select( :lcncarvlfsf, [['No','No'],['Yes','Yes']], {}, {class: "form-control"}) %>
20
+ <%= form.label :lcncarvlfsf, "FSF Approval" %>
21
+ <%= form.select( :lcncarvlfsf, [['No','No'],['Yes','Yes']], {}, {class: "form-control"}) %>
22
22
  </div>
23
23
  <div class="form-group field_with_error">
24
- <%= f.label :lcncarvlosi, "OSI Approval" %>
25
- <%= f.select( :lcncarvlosi, [['No','No'],['Yes','Yes']], {}, {class: "form-control"}) %>
24
+ <%= form.label :lcncarvlosi, "OSI Approval" %>
25
+ <%= form.select( :lcncarvlosi, [['No','No'],['Yes','Yes']], {}, {class: "form-control"}) %>
26
26
  </div>
27
27
  <div class="form-group field_with_error">
28
- <%= f.label :lcncarvlcopyfree, "Copyfree Approval" %>
29
- <%= f.select( :lcncarvlcopyfree, [['No','No'],['Yes','Yes']], {}, {class: "form-control"}) %>
28
+ <%= form.label :lcncarvlcopyfree, "Copyfree Approval" %>
29
+ <%= form.select( :lcncarvlcopyfree, [['No','No'],['Yes','Yes']], {}, {class: "form-control"}) %>
30
30
  </div>
31
31
  <div class="form-group field_with_error">
32
- <%= f.label :lcncarvldebian, "Debian Approval" %>
33
- <%= f.select( :lcncarvldebian, [['No','No'],['Yes','Yes']], {}, {class: "form-control"}) %>
32
+ <%= form.label :lcncarvldebian, "Debian Approval" %>
33
+ <%= form.select( :lcncarvldebian, [['No','No'],['Yes','Yes']], {}, {class: "form-control"}) %>
34
34
  </div>
35
35
  <div class="form-group field_with_error">
36
- <%= f.label :lcncarvlfedora, "Fedora Approval" %>
37
- <%= f.select( :lcncarvlfedora, [['No','No'],['Yes','Yes']], {}, {class: "form-control"}) %>
36
+ <%= form.label :lcncarvlfedora, "Fedora Approval" %>
37
+ <%= form.select( :lcncarvlfedora, [['No','No'],['Yes','Yes']], {}, {class: "form-control"}) %>
38
38
  </div>
39
39
  <!-- Form Input Fields -->
40
40
 
41
41
  <!-- Form Submition Button -->
42
42
  <div class="actions">
43
- <%= f.submit class: "btn btn-primary" %>
43
+ <%= form.submit class: "btn btn-primary" %>
44
44
  </div>
45
45
  <!-- For Submition Button -->
46
46
 
@@ -5,53 +5,22 @@
5
5
  <% phc_breadcrumb_two yield(:phc_title_tagline) %>
6
6
  <!-- Title System -->
7
7
 
8
- <!-- Page Header -->
9
- <div class="row wrapper border-bottom white-bg page-heading">
10
- <div class="col-sm-8">
11
- <h2><%= yield(:phc_title) %></h2>
12
- <!-- Bread Crumb -->
13
- <ol class="breadcrumb">
14
- <li><%= yield(:phc_breadcrumb_one) %></li>
15
- <li class="active"><%= yield(:phc_breadcrumb_two) %></li>
16
- </ol>
17
- <!-- Bread Crumb -->
18
- </div>
19
- <div class="col-sm-4">
20
- <div class="title-action">
21
- <%= link_to phcscriptcdnpro.script_licences_path, class: "btn btn-primary" do %>
22
- <i class="fa fa-plus"></i> Back to Script Licence Index
23
- <% end %>
8
+ <!-- Page Content -->
9
+ <div class="panel panel-inverse">
10
+ <div class="panel-heading">
11
+ <div class="panel-heading-btn">
12
+ <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-default" data-click="panel-expand"><i class="fa fa-expand"></i></a>
13
+ <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-success" data-click="panel-reload"><i class="fa fa-redo"></i></a>
14
+ <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-warning" data-click="panel-collapse"><i class="fa fa-minus"></i></a>
24
15
  </div>
16
+ <h4 class="panel-title"><%= yield(:phc_title_tagline) %></h4>
25
17
  </div>
26
- </div>
27
- <!-- Page Header -->
28
-
29
- <!-- Page Content -->
30
- <div class="wrapper wrapper-content animated fadeInRight">
31
- <div class="row">
32
- <div class="col-lg-12">
18
+ <div class="panel-body">
33
19
 
34
- <div class="ibox float-e-margins">
35
- <div class="ibox-title">
36
- <h5><%= yield(:phc_title_tagline) %></h5>
37
- <div class="ibox-tools">
38
- <a class="collapse-link">
39
- <i class="fa fa-chevron-up"></i>
40
- </a>
41
- <a class="close-link">
42
- <i class="fa fa-times"></i>
43
- </a>
44
- </div>
45
- </div>
46
- <div class="ibox-content">
47
-
48
- <!-- Form Requries URL to Function Properly -->
49
- <%= render 'form', script_licence: @script_licence %>
50
-
51
- </div>
52
- </div>
53
-
54
- </div>
20
+ <!-- -->
21
+ <%= render 'form', script_licence: @script_licence %>
22
+ <!-- -->
23
+
55
24
  </div>
56
25
  </div>
57
26
  <!-- Page Content -->
@@ -4,76 +4,45 @@
4
4
  <% phc_breadcrumb_one yield(:phc_title_tagline) %>
5
5
  <!-- Title System -->
6
6
 
7
- <!-- Page Header -->
8
- <div class="row wrapper border-bottom white-bg page-heading">
9
- <div class="col-sm-8">
10
- <h2><%= yield(:phc_title) %></h2>
11
- <!-- Bread Crumb -->
12
- <ol class="breadcrumb">
13
- <li class="active"><%= yield(:phc_breadcrumb_one) %></li>
14
- </ol>
15
- <!-- Bread Crumb -->
16
- </div>
17
- <div class="col-sm-4">
18
- <div class="title-action">
19
- <%= link_to phcscriptcdnpro.new_script_licence_path, class: "btn btn-primary" do %>
20
- <i class="fa fa-plus"></i> Create a New Script Licence
21
- <% end %>
7
+ <!-- Page Content -->
8
+ <div class="panel panel-inverse">
9
+ <div class="panel-heading">
10
+ <div class="panel-heading-btn">
11
+ <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-default" data-click="panel-expand"><i class="fa fa-expand"></i></a>
12
+ <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-success" data-click="panel-reload"><i class="fa fa-redo"></i></a>
13
+ <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-warning" data-click="panel-collapse"><i class="fa fa-minus"></i></a>
22
14
  </div>
15
+ <h4 class="panel-title"><%= yield(:phc_title_tagline) %></h4>
23
16
  </div>
24
- </div>
25
- <!-- Page Header -->
26
-
27
- <!-- Page Content -->
28
- <div class="wrapper wrapper-content animated fadeInRight">
29
- <div class="row">
30
- <div class="col-lg-12">
31
-
32
- <div class="ibox float-e-margins">
33
- <div class="ibox-title">
34
- <h5><%= yield(:phc_title_tagline) %></h5>
35
- <div class="ibox-tools">
36
- <a class="collapse-link">
37
- <i class="fa fa-chevron-up"></i>
38
- </a>
39
- <a class="close-link">
40
- <i class="fa fa-times"></i>
41
- </a>
42
- </div>
43
- </div>
44
- <div class="ibox-content">
45
-
46
- <div class="table-responsive">
47
- <table class="table table-striped table-bordered table-hover dataTables-example">
48
- <thead>
49
- <tr>
50
- <th>Licence Name</th>
51
- <th>GPLv3 Compatible</th>
52
- <th>FSF Approval</th>
53
- <th>OSI Approval</th>
54
- <th>CopyFree Approval</th>
55
- <th>Debian Approval</th>
56
- <th>Fedora Approval</th>
57
- </tr>
58
- </thead>
59
- <tbody>
60
- <% @script_licences.each do |script_licence| %>
61
- <tr>
62
- <td><%= link_to script_licence.lcncname, script_licence %></td>
63
- <td><%= link_to script_licence.lcnccomgpl, script_licence %></td>
64
- <td><%= link_to script_licence.lcncarvlfsf, script_licence %></td>
65
- <td><%= link_to script_licence.lcncarvlosi, script_licence %></td>
66
- <td><%= link_to script_licence.lcncarvlcopyfree, script_licence %></td>
67
- <td><%= link_to script_licence.lcncarvldebian, script_licence %></td>
68
- <td><%= link_to script_licence.lcncarvlfedora, script_licence %></td>
69
- </tr>
70
- <% end %>
71
- </tbody>
72
- </table>
73
- </div>
74
-
75
- </div>
76
- </div>
17
+ <div class="panel-body">
18
+ <!-- Table - Article Index -->
19
+ <div class="table-responsive">
20
+ <table class="table table-striped table-bordered">
21
+ <thead>
22
+ <tr>
23
+ <th>Licence Name</th>
24
+ <th>GPLv3 Compatible</th>
25
+ <th>FSF Approval</th>
26
+ <th>OSI Approval</th>
27
+ <th>CopyFree Approval</th>
28
+ <th>Debian Approval</th>
29
+ <th>Fedora Approval</th>
30
+ </tr>
31
+ </thead>
32
+ <tbody>
33
+ <% @script_licences.each do |script_licence| %>
34
+ <tr>
35
+ <td><%= link_to script_licence.lcncname, script_licence %></td>
36
+ <td><%= link_to script_licence.lcnccomgpl, script_licence %></td>
37
+ <td><%= link_to script_licence.lcncarvlfsf, script_licence %></td>
38
+ <td><%= link_to script_licence.lcncarvlosi, script_licence %></td>
39
+ <td><%= link_to script_licence.lcncarvlcopyfree, script_licence %></td>
40
+ <td><%= link_to script_licence.lcncarvldebian, script_licence %></td>
41
+ <td><%= link_to script_licence.lcncarvlfedora, script_licence %></td>
42
+ </tr>
43
+ <% end %>
44
+ </tbody>
45
+ </table>
77
46
 
78
47
  </div>
79
48
  </div>
@@ -5,53 +5,22 @@
5
5
  <% phc_breadcrumb_two yield(:phc_title_tagline) %>
6
6
  <!-- Title System -->
7
7
 
8
- <!-- Page Header -->
9
- <div class="row wrapper border-bottom white-bg page-heading">
10
- <div class="col-sm-8">
11
- <h2><%= yield(:phc_title) %></h2>
12
- <!-- Bread Crumb -->
13
- <ol class="breadcrumb">
14
- <li><%= yield(:phc_breadcrumb_one) %></li>
15
- <li class="active"><%= yield(:phc_breadcrumb_two) %></li>
16
- </ol>
17
- <!-- Bread Crumb -->
18
- </div>
19
- <div class="col-sm-4">
20
- <div class="title-action">
21
- <%= link_to phcscriptcdnpro.script_licences_path, class: "btn btn-primary" do %>
22
- <i class="fa fa-plus"></i> Back to Script Licence Index
23
- <% end %>
8
+ <!-- Page Content -->
9
+ <div class="panel panel-inverse">
10
+ <div class="panel-heading">
11
+ <div class="panel-heading-btn">
12
+ <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-default" data-click="panel-expand"><i class="fa fa-expand"></i></a>
13
+ <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-success" data-click="panel-reload"><i class="fa fa-redo"></i></a>
14
+ <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-warning" data-click="panel-collapse"><i class="fa fa-minus"></i></a>
24
15
  </div>
16
+ <h4 class="panel-title"><%= yield(:phc_title_tagline) %></h4>
25
17
  </div>
26
- </div>
27
- <!-- Page Header -->
28
-
29
- <!-- Page Content -->
30
- <div class="wrapper wrapper-content animated fadeInRight">
31
- <div class="row">
32
- <div class="col-lg-12">
18
+ <div class="panel-body">
33
19
 
34
- <div class="ibox float-e-margins">
35
- <div class="ibox-title">
36
- <h5><%= yield(:phc_title_tagline) %></h5>
37
- <div class="ibox-tools">
38
- <a class="collapse-link">
39
- <i class="fa fa-chevron-up"></i>
40
- </a>
41
- <a class="close-link">
42
- <i class="fa fa-times"></i>
43
- </a>
44
- </div>
45
- </div>
46
- <div class="ibox-content">
47
-
48
- <!-- Form Requries URL to Function Properly -->
49
- <%= render 'form', script_licence: @script_licence %>
50
-
51
- </div>
52
- </div>
53
-
54
- </div>
20
+ <!-- -->
21
+ <%= render 'form', script_licence: @script_licence %>
22
+ <!-- -->
23
+
55
24
  </div>
56
25
  </div>
57
26
  <!-- Page Content -->
@@ -1,44 +1,44 @@
1
- <%= form_for(script_listing) do |f| %>
1
+ <%= form_with(model: script_listing, local: true) do |form| %>
2
2
 
3
3
  <!-- PHCNotifi Render Validation -->
4
4
  <%= render 'phcnotifi/validations', :object => @script_listing %>
5
5
 
6
6
  <!-- Form Input Fields -->
7
7
  <div class="form-group field_with_error">
8
- <%= f.label :scripttitle, "Script Title" %>
9
- <%= f.text_field :scripttitle, placeholder: "Script Title", class: "form-control" %>
8
+ <%= form.label :scripttitle, "Script Title" %>
9
+ <%= form.text_field :scripttitle, placeholder: "Script Title", class: "form-control" %>
10
10
  </div>
11
11
  <div class="form-group field_with_error">
12
- <%= f.label :scriptdescription, "Script Description" %>
13
- <%= f.text_area :scriptdescription, placeholder: "Script Description", class: "form-control" %>
12
+ <%= form.label :scriptdescription, "Script Description" %>
13
+ <%= form.text_area :scriptdescription, placeholder: "Script Description", class: "form-control" %>
14
14
  </div>
15
15
  <div class="form-group field_with_error">
16
- <%= f.label :descriptionsource, "Script Source" %>
17
- <%= f.text_field :descriptionsource, placeholder: "Script Source", class: "form-control" %>
16
+ <%= form.label :descriptionsource, "Script Source" %>
17
+ <%= form.text_field :descriptionsource, placeholder: "Script Source", class: "form-control" %>
18
18
  </div>
19
19
  <div class="form-group field_with_error">
20
- <%= f.label :scriptwebsite, "Script Website" %>
21
- <%= f.text_field :scriptwebsite, placeholder: "Script Website", class: "form-control" %>
20
+ <%= form.label :scriptwebsite, "Script Website" %>
21
+ <%= form.text_field :scriptwebsite, placeholder: "Script Website", class: "form-control" %>
22
22
  </div>
23
23
  <div class="form-group field_with_error">
24
- <%= f.label :scripttwitter, "Script Twitter" %>
25
- <%= f.text_field :scripttwitter, placeholder: "Script Twitter Address", class: "form-control" %>
24
+ <%= form.label :scripttwitter, "Script Twitter" %>
25
+ <%= form.text_field :scripttwitter, placeholder: "Script Twitter Address", class: "form-control" %>
26
26
  </div>
27
27
  <div class="form-group field_with_error">
28
- <%= f.label :scriptgithub, "Script Github" %>
29
- <%= f.text_field :scriptgithub, placeholder: "Script Github Address", class: "form-control" %>
28
+ <%= form.label :scriptgithub, "Script Github" %>
29
+ <%= form.text_field :scriptgithub, placeholder: "Script Github Address", class: "form-control" %>
30
30
  </div>
31
31
  <div class="form-group field_with_error">
32
- <%= f.label :scriptinitialrelease, "Initial Release" %>
33
- <%= f.date_select :scriptinitialrelease, start_year: 1981, class: "form-control" %>
32
+ <%= form.label :scriptinitialrelease, "Initial Release" %>
33
+ <%= form.date_select :scriptinitialrelease, start_year: 1981, class: "form-control" %>
34
34
  </div>
35
35
  <div class="form-group field_with_error">
36
- <%= f.label :scriptlastestrelease, "Latest Release" %>
37
- <%= f.date_select :scriptlastestrelease, start_year: 1981, class: "form-control" %>
36
+ <%= form.label :scriptlastestrelease, "Latest Release" %>
37
+ <%= form.date_select :scriptlastestrelease, start_year: 1981, class: "form-control" %>
38
38
  </div>
39
39
  <div class="form-group field_with_error">
40
- <%= f.label :scriptbetarelease, "Preview Release" %>
41
- <%= f.date_select :scriptbetarelease, start_year: 1981, class: "form-control" %>
40
+ <%= form.label :scriptbetarelease, "Preview Release" %>
41
+ <%= form.date_select :scriptbetarelease, start_year: 1981, class: "form-control" %>
42
42
  </div>
43
43
  <div class="form-group field_with_errors">
44
44
  <label>Script Version</label>
@@ -53,14 +53,14 @@
53
53
  <%= collection_select(:script_listing, :author_id, Phcscriptcdnpro::Script::Author.order('authorfirstname'), :id, :authorfirstname, {}, {class: "form-control"}) %>
54
54
  </div>
55
55
  <div class="form-group field_with_error">
56
- <%= f.label :scriptstatus, "Script Status" %>
57
- <%= f.select( :scriptstatus, [['Active','Active'],['Outdated','Out Dated'],['Deactivated','Not Active']], {}, {class: "form-control"}) %>
56
+ <%= form.label :scriptstatus, "Script Status" %>
57
+ <%= form.select( :scriptstatus, [['Active','Active'],['Outdated','Out Dated'],['Deactivated','Not Active']], {}, {class: "form-control"}) %>
58
58
  </div>
59
59
  <!-- Form Input Fields -->
60
60
 
61
61
  <!-- Form Submition Button -->
62
62
  <div class="actions">
63
- <%= f.submit class: "btn btn-primary" %>
63
+ <%= form.submit class: "btn btn-primary" %>
64
64
  </div>
65
65
  <!-- For Submition Button -->
66
66