phcscriptcdnpro 5.0.2 → 5.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (26) hide show
  1. checksums.yaml +4 -4
  2. data/app/views/phcscriptcdnpro/script/authors/_form.html.erb +2 -5
  3. data/app/views/phcscriptcdnpro/script/authors/edit.html.erb +2 -11
  4. data/app/views/phcscriptcdnpro/script/authors/index.html.erb +2 -9
  5. data/app/views/phcscriptcdnpro/script/authors/new.html.erb +3 -12
  6. data/app/views/phcscriptcdnpro/script/authors/show.html.erb +0 -7
  7. data/app/views/phcscriptcdnpro/script/extensions/_form.html.erb +2 -3
  8. data/app/views/phcscriptcdnpro/script/extensions/edit.html.erb +1 -10
  9. data/app/views/phcscriptcdnpro/script/extensions/index.html.erb +1 -8
  10. data/app/views/phcscriptcdnpro/script/extensions/new.html.erb +0 -9
  11. data/app/views/phcscriptcdnpro/script/extensions/show.html.erb +0 -9
  12. data/app/views/phcscriptcdnpro/script/licences/_form.html.erb +2 -7
  13. data/app/views/phcscriptcdnpro/script/licences/edit.html.erb +0 -9
  14. data/app/views/phcscriptcdnpro/script/licences/index.html.erb +1 -8
  15. data/app/views/phcscriptcdnpro/script/licences/new.html.erb +0 -9
  16. data/app/views/phcscriptcdnpro/script/licences/show.html.erb +0 -9
  17. data/app/views/phcscriptcdnpro/script/listings/_form.html.erb +8 -10
  18. data/app/views/phcscriptcdnpro/script/listings/edit.html.erb +0 -9
  19. data/app/views/phcscriptcdnpro/script/listings/index.html.erb +1 -8
  20. data/app/views/phcscriptcdnpro/script/listings/new.html.erb +0 -9
  21. data/app/views/phcscriptcdnpro/script/listings/show.html.erb +1 -7
  22. data/app/views/phcscriptcdnpro/script/urls/_form.html.erb +2 -5
  23. data/app/views/phcscriptcdnpro/script/versions/_form.html.erb +2 -1
  24. data/db/migrate/20160821183652_create_phcscriptcdnpro_script_listings.rb +2 -0
  25. data/lib/phcscriptcdnpro/version.rb +1 -1
  26. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5552096d72a4c91d421b02bd63580c5dab277a9d
4
- data.tar.gz: cb52c99537653addff136df46cd50b0beafc8dca
3
+ metadata.gz: 23a724e858d1e13bc32a94a0b6845fa586fa64d5
4
+ data.tar.gz: dc72090c7d6bcccd5502e525db4c7bacc46374d0
5
5
  SHA512:
6
- metadata.gz: 6b65da3762e8f7f7a94374f8cdfa81d610564ac6004d4865af7cfe97561b1c0c15a0f11bdb21e35f117719e5dfb87742dae1c1da521fda477c58af4421cbc36c
7
- data.tar.gz: f22ab324d4c0bf18e3aba329bb5159edc9048642dc315b1ef1ff9cc32ee899394865a399296f93a38bcd1847f065ca5037f758fedf56a6e6d5602430b797e1bd
6
+ metadata.gz: a90a00daabff41fb496996480a5377331e236175dbce2bcb2e367b840d4471ce230855bf05bdb88870a3505a8bf4a5357846c1dd8a28b50ef361584e012f6961
7
+ data.tar.gz: f0b2edc70d230b4643bd0ec401744dabf4ae46d5e219e89814d9a884e6d9f3eee36586803aaa1153d2028d1d466a428d21bf972785e754f3ca200734aca47f2f
@@ -1,30 +1,27 @@
1
1
  <%= form_for([@script_author.listing, @script_author], url: form_url) do |f| %>
2
2
 
3
+ <%= render 'phcnotifi/validations', :object => @script_author %>
4
+
3
5
  <div class="form-group field_with_error">
4
6
  <%= f.label :authorfirstname, "Author First Name" %>
5
7
  <%= f.text_field :authorfirstname, placeholder: "Author First Name", class: "form-control" %>
6
8
  </div>
7
-
8
9
  <div class="form-group field_with_error">
9
10
  <%= f.label :authorlastname, "Author Last Name" %>
10
11
  <%= f.text_field :authorlastname, placeholder: "Author Last Name", class: "form-control" %>
11
12
  </div>
12
-
13
13
  <div class="form-group field_with_error">
14
14
  <%= f.label :authorwebsite, "Author Website" %>
15
15
  <%= f.text_field :authorwebsite, placeholder: "Author Website", class: "form-control" %>
16
16
  </div>
17
-
18
17
  <div class="form-group field_with_error">
19
18
  <%= f.label :authorgithub, "Author Github Address" %>
20
19
  <%= f.text_field :authorgithub, placeholder: "Author Github Address", class: "form-control" %>
21
20
  </div>
22
-
23
21
  <div class="form-group field_with_error">
24
22
  <%= f.label :authortwitter, "Author Twitter Addresss" %>
25
23
  <%= f.text_field :authortwitter, placeholder: "Author Twitter Addresss", class: "form-control" %>
26
24
  </div>
27
-
28
25
  <div class="actions">
29
26
  <%= f.submit class: "btn btn-primary" %>
30
27
  </div>
@@ -9,14 +9,14 @@
9
9
  <h2><%= yield(:phc_title) %></h2>
10
10
  <!-- Bread Crumb -->
11
11
  <ol class="breadcrumb">
12
- <li><%= link_to "Script Versions", phcscriptcdnpro.script_authors_path %></li>
12
+ <li><%= link_to "Script Authors", phcscriptcdnpro.script_authors_path %></li>
13
13
  <li class="active"><%= yield(:phc_title_tagline) %></li>
14
14
  </ol>
15
15
  </div>
16
16
  <div class="col-sm-8">
17
17
  <div class="title-action">
18
18
  <%= link_to phcscriptcdnpro.script_authors_path, class: "btn btn-primary" do %>
19
- <i class="fa fa-plus"></i> Back to Script Version Index
19
+ <i class="fa fa-plus"></i> Back to Script Author Index
20
20
  <% end %>
21
21
  </div>
22
22
  </div>
@@ -25,12 +25,9 @@
25
25
 
26
26
  <!-- Page Content -->
27
27
  <div class="wrapper wrapper-content animated fadeInRight">
28
-
29
28
  <div class="row">
30
29
  <div class="col-lg-12">
31
-
32
30
  <div class="ibox float-e-margins">
33
-
34
31
  <div class="ibox-title">
35
32
  <h5><%= yield(:phc_title_tagline) %></h5>
36
33
  <div class="ibox-tools">
@@ -42,18 +39,12 @@
42
39
  </a>
43
40
  </div>
44
41
  </div>
45
-
46
42
  <div class="ibox-content">
47
-
48
43
  <!-- Form Requries URL to Function Properly -->
49
44
  <%= render 'form', { form_url: script_listing_author_path } %>
50
-
51
45
  </div>
52
-
53
46
  </div>
54
-
55
47
  </div>
56
48
  </div>
57
-
58
49
  </div>
59
50
  <!-- Page Content -->
@@ -9,14 +9,14 @@
9
9
  <h2><%= yield(:phc_title) %></h2>
10
10
  <!-- Bread Crumb -->
11
11
  <ol class="breadcrumb">
12
- <li><%= link_to "Script Listing Index", phcscriptcdnpro.script_listings_path %></li>
12
+ <li><%= link_to "Author Index", phcscriptcdnpro.script_authors_path %></li>
13
13
  <li class="active"><%= yield(:phc_title_tagline) %></li>
14
14
  </ol>
15
15
  </div>
16
16
  <div class="col-sm-8">
17
17
  <div class="title-action">
18
18
  <%= link_to phcscriptcdnpro.new_script_author_path, class: "btn btn-primary" do %>
19
- <i class="fa fa-plus"></i> Create a New Script Author
19
+ <i class="fa fa-plus"></i> Add a Script Author
20
20
  <% end %>
21
21
  </div>
22
22
  </div>
@@ -25,12 +25,9 @@
25
25
 
26
26
  <!-- Page Content -->
27
27
  <div class="wrapper wrapper-content animated fadeInRight">
28
-
29
28
  <div class="row">
30
29
  <div class="col-lg-12">
31
-
32
30
  <div class="ibox float-e-margins">
33
-
34
31
  <div class="ibox-title">
35
32
  <h5><%= yield(:phc_title_tagline) %></h5>
36
33
  <div class="ibox-tools">
@@ -42,7 +39,6 @@
42
39
  </a>
43
40
  </div>
44
41
  </div>
45
-
46
42
  <div class="ibox-content">
47
43
  <div class="table-responsive">
48
44
  <table class="table table-striped table-bordered table-hover dataTables-example">
@@ -69,11 +65,8 @@
69
65
  </table>
70
66
  </div>
71
67
  </div>
72
-
73
68
  </div>
74
-
75
69
  </div>
76
70
  </div>
77
-
78
71
  </div>
79
72
  <!-- Page Content -->
@@ -1,6 +1,6 @@
1
1
  <!-- Title System -->
2
2
  <% phc_title "Script Listing Manager" %>
3
- <% phc_title_tagline "Create a New Author" %>
3
+ <% phc_title_tagline "Add a New Author" %>
4
4
  <!-- Title System -->
5
5
 
6
6
  <!-- Page Header -->
@@ -25,12 +25,9 @@
25
25
 
26
26
  <!-- Page Content -->
27
27
  <div class="wrapper wrapper-content animated fadeInRight">
28
-
29
28
  <div class="row">
30
29
  <div class="col-lg-12">
31
-
32
30
  <div class="ibox float-e-margins">
33
-
34
31
  <div class="ibox-title">
35
32
  <h5><%= yield(:phc_title_tagline) %></h5>
36
33
  <div class="ibox-tools">
@@ -42,18 +39,12 @@
42
39
  </a>
43
40
  </div>
44
41
  </div>
45
-
46
42
  <div class="ibox-content">
47
-
48
- <!-- Form Requries URL to Function Properly -->
49
- <%= render 'form', { form_url: script_listing_author_path } %>
50
-
43
+ <!-- Form Requries URL to Function Properly -->
44
+ <%= render 'form', { form_url: script_listing_author_path } %>
51
45
  </div>
52
-
53
46
  </div>
54
-
55
47
  </div>
56
48
  </div>
57
-
58
49
  </div>
59
50
  <!-- Page Content -->
@@ -25,12 +25,9 @@
25
25
 
26
26
  <!-- Page Content -->
27
27
  <div class="wrapper wrapper-content animated fadeInRight">
28
-
29
28
  <div class="row">
30
29
  <div class="col-lg-12">
31
-
32
30
  <div class="ibox float-e-margins">
33
-
34
31
  <div class="ibox-title">
35
32
  <h5><%= yield(:phc_title_tagline) %></h5>
36
33
  <div class="ibox-tools">
@@ -42,18 +39,14 @@
42
39
  </a>
43
40
  </div>
44
41
  </div>
45
-
46
42
  <div class="ibox-content">
47
43
  <div class="btn-group" role="group" aria-label="author_button_group">
48
44
  <%= link_to 'Edit', edit_script_listing_author_path, class: "btn btn-primary" %>
49
45
  <%= link_to 'Destroy', script_listing_author_path, method: :delete, data: { confirm: 'Are you sure?' }, class: "btn btn-danger" %>
50
46
  </div>
51
47
  </div>
52
-
53
48
  </div>
54
-
55
49
  </div>
56
50
  </div>
57
-
58
51
  </div>
59
52
  <!-- Page Content -->
@@ -1,20 +1,19 @@
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" %>
16
16
  </div>
17
-
18
17
  <div class="actions">
19
18
  <%= f.submit class: "btn btn-primary" %>
20
19
  </div>
@@ -9,7 +9,7 @@
9
9
  <h2><%= yield(:phc_title) %></h2>
10
10
  <!-- Bread Crumb -->
11
11
  <ol class="breadcrumb">
12
- <li><%= link_to "Script Versions", phcscriptcdnpro.script_versions_path %></li>
12
+ <li><%= link_to "Script Extensions", phcscriptcdnpro.script_extensions_path %></li>
13
13
  <li class="active"><%= yield(:phc_title_tagline) %></li>
14
14
  </ol>
15
15
  </div>
@@ -25,12 +25,9 @@
25
25
 
26
26
  <!-- Page Content -->
27
27
  <div class="wrapper wrapper-content animated fadeInRight">
28
-
29
28
  <div class="row">
30
29
  <div class="col-lg-12">
31
-
32
30
  <div class="ibox float-e-margins">
33
-
34
31
  <div class="ibox-title">
35
32
  <h5><%= yield(:phc_title_tagline) %></h5>
36
33
  <div class="ibox-tools">
@@ -42,18 +39,12 @@
42
39
  </a>
43
40
  </div>
44
41
  </div>
45
-
46
42
  <div class="ibox-content">
47
-
48
43
  <!-- Form Requries URL to Function Properly -->
49
44
  <%= render 'form', script_extension: @script_extension %>
50
-
51
45
  </div>
52
-
53
46
  </div>
54
-
55
47
  </div>
56
48
  </div>
57
-
58
49
  </div>
59
50
  <!-- Page Content -->
@@ -16,7 +16,7 @@
16
16
  <div class="col-sm-8">
17
17
  <div class="title-action">
18
18
  <%= link_to phcscriptcdnpro.new_script_extension_path, class: "btn btn-primary" do %>
19
- <i class="fa fa-plus"></i> Create a New Script Extension
19
+ <i class="fa fa-plus"></i> Add a Script Extension
20
20
  <% end %>
21
21
  </div>
22
22
  </div>
@@ -25,12 +25,9 @@
25
25
 
26
26
  <!-- Page Content -->
27
27
  <div class="wrapper wrapper-content animated fadeInRight">
28
-
29
28
  <div class="row">
30
29
  <div class="col-lg-12">
31
-
32
30
  <div class="ibox float-e-margins">
33
-
34
31
  <div class="ibox-title">
35
32
  <h5><%= yield(:phc_title_tagline) %></h5>
36
33
  <div class="ibox-tools">
@@ -42,7 +39,6 @@
42
39
  </a>
43
40
  </div>
44
41
  </div>
45
-
46
42
  <div class="ibox-content">
47
43
  <div class="table-responsive">
48
44
  <table class="table table-striped table-bordered table-hover dataTables-example">
@@ -63,11 +59,8 @@
63
59
  </table>
64
60
  </div>
65
61
  </div>
66
-
67
62
  </div>
68
-
69
63
  </div>
70
64
  </div>
71
-
72
65
  </div>
73
66
  <!-- Page Content -->
@@ -25,12 +25,9 @@
25
25
 
26
26
  <!-- Page Content -->
27
27
  <div class="wrapper wrapper-content animated fadeInRight">
28
-
29
28
  <div class="row">
30
29
  <div class="col-lg-12">
31
-
32
30
  <div class="ibox float-e-margins">
33
-
34
31
  <div class="ibox-title">
35
32
  <h5><%= yield(:phc_title_tagline) %></h5>
36
33
  <div class="ibox-tools">
@@ -42,18 +39,12 @@
42
39
  </a>
43
40
  </div>
44
41
  </div>
45
-
46
42
  <div class="ibox-content">
47
-
48
43
  <!-- Form Requries URL to Function Properly -->
49
44
  <%= render 'form', script_extension: @script_extension %>
50
-
51
45
  </div>
52
-
53
46
  </div>
54
-
55
47
  </div>
56
48
  </div>
57
-
58
49
  </div>
59
50
  <!-- Page Content -->
@@ -25,12 +25,9 @@
25
25
 
26
26
  <!-- Page Content -->
27
27
  <div class="wrapper wrapper-content animated fadeInRight">
28
-
29
28
  <div class="row">
30
29
  <div class="col-lg-12">
31
-
32
30
  <div class="ibox float-e-margins">
33
-
34
31
  <div class="ibox-title">
35
32
  <h5><%= yield(:phc_title_tagline) %></h5>
36
33
  <div class="ibox-tools">
@@ -42,20 +39,14 @@
42
39
  </a>
43
40
  </div>
44
41
  </div>
45
-
46
42
  <div class="ibox-content">
47
-
48
43
  <div class="btn-group" role="group" aria-label="extension_button_group">
49
44
  <%= link_to 'Edit', edit_script_extension_path, class: "btn btn-primary" %>
50
45
  <%= link_to 'Destroy', script_extension_path, method: :delete, data: { confirm: 'Are you sure?' }, class: "btn btn-danger" %>
51
46
  </div>
52
-
53
47
  </div>
54
-
55
48
  </div>
56
-
57
49
  </div>
58
50
  </div>
59
-
60
51
  </div>
61
52
  <!-- Page Content -->
@@ -1,40 +1,35 @@
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
-
8
9
  <div class="form-group field_with_error">
9
10
  <%= f.label :lcnccomgpl, "GPL(v3) Compatible" %>
10
11
  <%= f.select( :lcnccomgpl, [['No','No'],['Yes','Yes']], {}, {class: "form-control form-control"}) %>
11
12
  </div>
12
-
13
13
  <div class="form-group field_with_error">
14
14
  <%= f.label :lcncarvlfsf, "FSF Approval" %>
15
15
  <%= f.select( :lcncarvlfsf, [['No','No'],['Yes','Yes']], {}, {class: "form-control form-control"}) %>
16
16
  </div>
17
-
18
17
  <div class="form-group field_with_error">
19
18
  <%= f.label :lcncarvlosi, "OSI Approval" %>
20
19
  <%= f.select( :lcncarvlosi, [['No','No'],['Yes','Yes']], {}, {class: "form-control form-control"}) %>
21
20
  </div>
22
-
23
21
  <div class="form-group field_with_error">
24
22
  <%= f.label :lcncarvlcopyfree, "Copyfree Approval" %>
25
23
  <%= f.select( :lcncarvlcopyfree, [['No','No'],['Yes','Yes']], {}, {class: "form-control form-control"}) %>
26
24
  </div>
27
-
28
25
  <div class="form-group field_with_error">
29
26
  <%= f.label :lcncarvldebian, "Debian Approval" %>
30
27
  <%= f.select( :lcncarvldebian, [['No','No'],['Yes','Yes']], {}, {class: "form-control form-control"}) %>
31
28
  </div>
32
-
33
29
  <div class="form-group field_with_error">
34
30
  <%= f.label :lcncarvlfedora, "Fedora Approval" %>
35
31
  <%= f.select( :lcncarvlfedora, [['No','No'],['Yes','Yes']], {}, {class: "form-control form-control"}) %>
36
32
  </div>
37
-
38
33
  <div class="actions">
39
34
  <%= f.submit class: "btn btn-primary" %>
40
35
  </div>
@@ -25,12 +25,9 @@
25
25
 
26
26
  <!-- Page Content -->
27
27
  <div class="wrapper wrapper-content animated fadeInRight">
28
-
29
28
  <div class="row">
30
29
  <div class="col-lg-12">
31
-
32
30
  <div class="ibox float-e-margins">
33
-
34
31
  <div class="ibox-title">
35
32
  <h5><%= yield(:phc_title_tagline) %></h5>
36
33
  <div class="ibox-tools">
@@ -42,18 +39,12 @@
42
39
  </a>
43
40
  </div>
44
41
  </div>
45
-
46
42
  <div class="ibox-content">
47
-
48
43
  <!-- Form Requries URL to Function Properly -->
49
44
  <%= render 'form', script_licence: @script_licence %>
50
-
51
45
  </div>
52
-
53
46
  </div>
54
-
55
47
  </div>
56
48
  </div>
57
-
58
49
  </div>
59
50
  <!-- Page Content -->
@@ -1,6 +1,6 @@
1
1
  <!-- Title System -->
2
2
  <% phc_title "Script Listing Manager" %>
3
- <% phc_title_tagline "Script Version Index" %>
3
+ <% phc_title_tagline "Script Licence Index" %>
4
4
  <!-- Title System -->
5
5
 
6
6
  <!-- Page Header -->
@@ -25,12 +25,9 @@
25
25
 
26
26
  <!-- Page Content -->
27
27
  <div class="wrapper wrapper-content animated fadeInRight">
28
-
29
28
  <div class="row">
30
29
  <div class="col-lg-12">
31
-
32
30
  <div class="ibox float-e-margins">
33
-
34
31
  <div class="ibox-title">
35
32
  <h5><%= yield(:phc_title_tagline) %></h5>
36
33
  <div class="ibox-tools">
@@ -42,7 +39,6 @@
42
39
  </a>
43
40
  </div>
44
41
  </div>
45
-
46
42
  <div class="ibox-content">
47
43
  <div class="table-responsive">
48
44
  <table class="table table-striped table-bordered table-hover dataTables-example">
@@ -73,11 +69,8 @@
73
69
  </table>
74
70
  </div>
75
71
  </div>
76
-
77
72
  </div>
78
-
79
73
  </div>
80
74
  </div>
81
-
82
75
  </div>
83
76
  <!-- Page Content -->
@@ -25,12 +25,9 @@
25
25
 
26
26
  <!-- Page Content -->
27
27
  <div class="wrapper wrapper-content animated fadeInRight">
28
-
29
28
  <div class="row">
30
29
  <div class="col-lg-12">
31
-
32
30
  <div class="ibox float-e-margins">
33
-
34
31
  <div class="ibox-title">
35
32
  <h5><%= yield(:phc_title_tagline) %></h5>
36
33
  <div class="ibox-tools">
@@ -42,18 +39,12 @@
42
39
  </a>
43
40
  </div>
44
41
  </div>
45
-
46
42
  <div class="ibox-content">
47
-
48
43
  <!-- Form Requries URL to Function Properly -->
49
44
  <%= render 'form', script_licence: @script_licence %>
50
-
51
45
  </div>
52
-
53
46
  </div>
54
-
55
47
  </div>
56
48
  </div>
57
-
58
49
  </div>
59
50
  <!-- Page Content -->
@@ -25,12 +25,9 @@
25
25
 
26
26
  <!-- Page Content -->
27
27
  <div class="wrapper wrapper-content animated fadeInRight">
28
-
29
28
  <div class="row">
30
29
  <div class="col-lg-12">
31
-
32
30
  <div class="ibox float-e-margins">
33
-
34
31
  <div class="ibox-title">
35
32
  <h5><%= yield(:phc_title_tagline) %></h5>
36
33
  <div class="ibox-tools">
@@ -42,20 +39,14 @@
42
39
  </a>
43
40
  </div>
44
41
  </div>
45
-
46
42
  <div class="ibox-content">
47
-
48
43
  <div class="btn-group" role="group" aria-label="licence_button_group">
49
44
  <%= link_to 'Edit', edit_script_licence_path, class: "btn btn-primary" %>
50
45
  <%= link_to 'Destroy', script_licence_path, method: :delete, data: { confirm: 'Are you sure?' }, class: "btn btn-danger" %>
51
46
  </div>
52
-
53
47
  </div>
54
-
55
48
  </div>
56
-
57
49
  </div>
58
50
  </div>
59
-
60
51
  </div>
61
52
  <!-- Page Content -->
@@ -6,52 +6,50 @@
6
6
  <%= f.label :scripttitle, "Script Title" %>
7
7
  <%= f.text_field :scripttitle, placeholder: "Script Information 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
11
  <%= f.text_field :scriptdescription, placeholder: "Script Information Description", class: "form-control" %>
13
12
  </div>
14
-
15
13
  <div class="form-group field_with_error">
16
14
  <%= f.label :scriptwebsite, "Script Website" %>
17
15
  <%= f.text_field :scriptwebsite, placeholder: "Script Information Website", class: "form-control" %>
18
16
  </div>
19
-
20
17
  <div class="form-group field_with_error">
21
18
  <%= f.label :scripttwitter, "Script Twitter" %>
22
19
  <%= f.text_field :scripttwitter, placeholder: "Script Information Twitter Address", class: "form-control" %>
23
20
  </div>
24
-
25
21
  <div class="form-group field_with_error">
26
22
  <%= f.label :scriptgithub, "Script Github" %>
27
23
  <%= f.text_field :scriptgithub, placeholder: "Script Information Github Address", class: "form-control" %>
28
24
  </div>
29
-
30
25
  <div class="form-group field_with_error">
31
26
  <%= f.label :scriptinitialrelease, "Initial Release" %>
32
27
  <%= f.date_select :scriptinitialrelease, class: "form-control" %>
33
28
  </div>
34
-
35
29
  <div class="form-group field_with_error">
36
30
  <%= f.label :scriptlastestrelease, "Latest Release" %>
37
31
  <%= f.date_select :scriptlastestrelease, class: "form-control" %>
38
32
  </div>
39
-
40
33
  <div class="form-group field_with_error">
41
34
  <%= f.label :scriptbetarelease, "Next Release" %>
42
35
  <%= f.date_select :scriptbetarelease, class: "form-control" %>
43
36
  </div>
44
-
45
37
  <div class="form-group field_with_errors">
46
38
  <label>Script Version</label>
47
39
  <%= collection_select(:script_listing, :version_id, Phcscriptcdnpro::Script::Version.order('scriptversion'), :id, :scriptversion, {}, {class: "form-control"}) %>
48
40
  </div>
49
-
41
+ <div class="form-group field_with_errors">
42
+ <label>Script Licence</label>
43
+ <%= collection_select(:script_listing, :licence_id, Phcscriptcdnpro::Script::Licence.order('lcncname'), :id, :lcncname, {}, {class: "form-control"}) %>
44
+ </div>
45
+ <div class="form-group field_with_errors">
46
+ <label>Script Licence</label>
47
+ <%= collection_select(:script_listing, :author_id, Phcscriptcdnpro::Script::Author.order('authorfirstname'), :id, :authorfirstname, {}, {class: "form-control"}) %>
48
+ </div>
50
49
  <div class="form-group field_with_error">
51
50
  <%= f.label :scriptstatus, "Script Status" %>
52
51
  <%= f.select( :scriptstatus, [['Active','Active'],['Outdated','Out Dated'],['Deactivated','Not Active']], {}, {class: "form-control form-control"}) %>
53
52
  </div>
54
-
55
53
  <div class="form-group field_with_error">
56
54
  <%= f.submit class: "btn btn-primary" %>
57
55
  </div>
@@ -25,12 +25,9 @@
25
25
 
26
26
  <!-- Page Content -->
27
27
  <div class="wrapper wrapper-content animated fadeInRight">
28
-
29
28
  <div class="row">
30
29
  <div class="col-lg-12">
31
-
32
30
  <div class="ibox float-e-margins">
33
-
34
31
  <div class="ibox-title">
35
32
  <h5><%= yield(:phc_title_tagline) %></h5>
36
33
  <div class="ibox-tools">
@@ -42,18 +39,12 @@
42
39
  </a>
43
40
  </div>
44
41
  </div>
45
-
46
42
  <div class="ibox-content">
47
-
48
43
  <!-- Form Requries URL to Function Properly -->
49
44
  <%= render 'form', script_listing: @script_listing %>
50
-
51
45
  </div>
52
-
53
46
  </div>
54
-
55
47
  </div>
56
48
  </div>
57
-
58
49
  </div>
59
50
  <!-- Page Content -->
@@ -15,7 +15,7 @@
15
15
  <div class="col-sm-8">
16
16
  <div class="title-action">
17
17
  <%= link_to phcscriptcdnpro.new_script_listing_path, class: "btn btn-primary" do %>
18
- <i class="fa fa-plus"></i> Create a New Script Listing
18
+ <i class="fa fa-plus"></i> Create a Script Listing
19
19
  <% end %>
20
20
  </div>
21
21
  </div>
@@ -24,12 +24,9 @@
24
24
 
25
25
  <!-- Page Content -->
26
26
  <div class="wrapper wrapper-content animated fadeInRight">
27
-
28
27
  <div class="row">
29
28
  <div class="col-lg-12">
30
-
31
29
  <div class="ibox float-e-margins">
32
-
33
30
  <div class="ibox-title">
34
31
  <h5><%= yield(:phc_title_tagline) %></h5>
35
32
  <div class="ibox-tools">
@@ -41,7 +38,6 @@
41
38
  </a>
42
39
  </div>
43
40
  </div>
44
-
45
41
  <div class="ibox-content">
46
42
  <div class="table-responsive">
47
43
  <table class="table table-striped table-bordered table-hover dataTables-example">
@@ -66,11 +62,8 @@
66
62
  </table>
67
63
  </div>
68
64
  </div>
69
-
70
65
  </div>
71
-
72
66
  </div>
73
67
  </div>
74
-
75
68
  </div>
76
69
  <!-- Page Content -->
@@ -25,12 +25,9 @@
25
25
 
26
26
  <!-- Page Content -->
27
27
  <div class="wrapper wrapper-content animated fadeInRight">
28
-
29
28
  <div class="row">
30
29
  <div class="col-lg-12">
31
-
32
30
  <div class="ibox float-e-margins">
33
-
34
31
  <div class="ibox-title">
35
32
  <h5><%= yield(:phc_title_tagline) %></h5>
36
33
  <div class="ibox-tools">
@@ -42,18 +39,12 @@
42
39
  </a>
43
40
  </div>
44
41
  </div>
45
-
46
42
  <div class="ibox-content">
47
-
48
43
  <!-- Form Requries URL to Function Properly -->
49
44
  <%= render 'form', script_listing: @script_listing %>
50
-
51
45
  </div>
52
-
53
46
  </div>
54
-
55
47
  </div>
56
48
  </div>
57
-
58
49
  </div>
59
50
  <!-- Page Content -->
@@ -25,12 +25,9 @@
25
25
 
26
26
  <!-- Page Content -->
27
27
  <div class="wrapper wrapper-content animated fadeInRight">
28
-
29
28
  <div class="row">
30
29
  <div class="col-lg-12">
31
-
32
30
  <div class="ibox float-e-margins">
33
-
34
31
  <div class="ibox-title">
35
32
  <h5><%= yield(:phc_title_tagline) %></h5>
36
33
  <div class="ibox-tools">
@@ -42,17 +39,14 @@
42
39
  </a>
43
40
  </div>
44
41
  </div>
45
-
46
42
  <div class="ibox-content">
47
43
  <div class="btn-group" role="group" aria-label="url_button_group">
48
44
  <%= link_to 'Edit', edit_script_listing_path, class: "btn btn-primary" %>
49
45
  <%= link_to 'Destroy', script_listing_path, method: :delete, data: { confirm: 'Are you sure?' }, class: "btn btn-danger" %>
50
46
  </div>
51
47
  </div>
52
-
53
48
  </div>
54
-
55
49
  </div>
56
50
  </div>
57
-
58
51
  </div>
52
+ <!-- Page Content -->
@@ -1,30 +1,27 @@
1
1
  <%= form_for([@script_url.listing, @script_url], url: form_url) do |f| %>
2
2
 
3
+ <%= render 'phcnotifi/validations', :object => @script_url %>
4
+
3
5
  <div class="form-group field_with_error">
4
6
  <%= f.label :scripturl, "Script URL" %>
5
7
  <%= f.text_field :scripturl, placeholder: "Script URL", class: "form-control" %>
6
8
  </div>
7
-
8
9
  <div class="form-group field_with_error">
9
10
  <%= f.label :scripturlrelease, "Initial Release" %>
10
11
  <%= f.date_select :scripturlrelease, class: "form-control" %>
11
12
  </div>
12
-
13
13
  <div class="form-group field_with_error">
14
14
  <%= f.label :scripturlcdnupdate, "Latest Release" %>
15
15
  <%= f.date_select :scripturlcdnupdate, class: "form-control" %>
16
16
  </div>
17
-
18
17
  <div class="form-group field_with_errors">
19
18
  <label>Script Version</label>
20
19
  <%= collection_select(:script_url, :version_id, Phcscriptcdnpro::Script::Version.order('scriptversion'), :id, :scriptversion, {}, {class: "form-control"}) %>
21
20
  </div>
22
-
23
21
  <div class="form-group field_with_errors">
24
22
  <label>Script Extensions</label>
25
23
  <%= collection_select(:script_url, :extension_id, Phcscriptcdnpro::Script::Extension.order('scriptextensionname'), :id, :scriptextension, {}, {class: "form-control"}) %>
26
24
  </div>
27
-
28
25
  <div class="actions">
29
26
  <%= f.submit class: "btn btn-primary" %>
30
27
  </div>
@@ -1,10 +1,11 @@
1
1
  <%= form_for(script_version) do |f| %>
2
2
 
3
+ <%= render 'phcnotifi/validations', :object => @script_version %>
4
+
3
5
  <div class="form-group field_with_error">
4
6
  <%= f.label :scriptversion, "Version Number" %>
5
7
  <%= f.text_field :scriptversion, placeholder: "Version Number", class: "form-control" %>
6
8
  </div>
7
-
8
9
  <div class="actions">
9
10
  <%= f.submit class: "btn btn-primary" %>
10
11
  </div>
@@ -23,6 +23,8 @@ class CreatePhcscriptcdnproScriptListings < ActiveRecord::Migration[5.0]
23
23
  t.string :oganization_id
24
24
 
25
25
  t.references :version
26
+ t.references :licence
27
+ t.references :author
26
28
 
27
29
  t.timestamps
28
30
 
@@ -1,3 +1,3 @@
1
1
  module Phcscriptcdnpro
2
- VERSION = "5.0.2"
2
+ VERSION = "5.0.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phcscriptcdnpro
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.2
4
+ version: 5.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - BradPotts
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-01-31 00:00:00.000000000 Z
11
+ date: 2017-02-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails