phcscriptcdnpro 1.5.5 → 1.5.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/phcscriptcdnpro/scriptcdn/authors_controller.rb +1 -1
- data/app/views/phcscriptcdnpro/scriptcdn/authors/_form.html.erb +6 -6
- data/app/views/phcscriptcdnpro/scriptcdn/authors/_formpatch.html.erb +6 -7
- data/app/views/phcscriptcdnpro/scriptcdn/authors/index.html.erb +1 -1
- data/app/views/phcscriptcdnpro/scriptcdn/mains/_form.html.erb +2 -2
- data/app/views/phcscriptcdnpro/scriptcdn/mains/edit.html.erb +1 -1
- data/app/views/phcscriptcdnpro/scriptcdn/mains/new.html.erb +1 -1
- data/app/views/phcscriptcdnpro/scriptcdn/mains/show.html.erb +0 -3
- data/lib/phcscriptcdnpro/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 77b880530c42fb10372e8d48a1c3c80ef9186752
|
4
|
+
data.tar.gz: 1664871b1380bec69126a1f38e48d6ef91e09046
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 35ae750b244b79e122ce54e9b8acdf7d68eeb8486a5a6ab9328947cca85b79fe728cfa6fe4a242273f40f4a340178cfd00ff4878554eeb4d7272de06c2a22c9d
|
7
|
+
data.tar.gz: 97025c21293195aec5c781d05488cc0772db47e064194f1e8a02f52d9b5503d327c81aec778b83b870594187e66a12eb0510d9162e7cac69b72cde9489eb83bd
|
@@ -63,7 +63,7 @@ module Phcscriptcdnpro
|
|
63
63
|
|
64
64
|
# Whitelist
|
65
65
|
def scriptcdn_author_params
|
66
|
-
params.require(:scriptcdn_author).permit(:authorfirstname, :authorlastname, :authoremail, :authorgithub, :authortwitter, :
|
66
|
+
params.require(:scriptcdn_author).permit(:authorfirstname, :authorlastname, :authoremail, :authorgithub, :authortwitter, :main_id)
|
67
67
|
end
|
68
68
|
|
69
69
|
end
|
@@ -1,26 +1,26 @@
|
|
1
|
-
<%= form_for([@scriptcdn_author.
|
1
|
+
<%= form_for([@scriptcdn_author.main, @scriptcdn_author], url: scriptcdn_main_authors_path) do |f| %>
|
2
2
|
|
3
3
|
<%= render 'phcnotifi/validations', :object => @scriptcdn_author %>
|
4
4
|
|
5
5
|
<div class="form-group field_with_error">
|
6
6
|
<%= f.label :authorfirstname, "First Name" %>
|
7
|
-
<%= f.text_field :authorfirstname, class: "form-control" %>
|
7
|
+
<%= f.text_field :authorfirstname, placeholder: "Author First Name", class: "form-control" %>
|
8
8
|
</div>
|
9
9
|
<div class="form-group field_with_error">
|
10
10
|
<%= f.label :authorlastname, "Last Name" %>
|
11
|
-
<%= f.text_field :authorlastname, class: "form-control" %>
|
11
|
+
<%= f.text_field :authorlastname, placeholder: "Author Last Name", class: "form-control" %>
|
12
12
|
</div>
|
13
13
|
<div class="form-group field_with_error">
|
14
14
|
<%= f.label :authoremail, "Last Name" %>
|
15
|
-
<%= f.text_field :authoremail, class: "form-control" %>
|
15
|
+
<%= f.text_field :authoremail, placeholder: "Author Email", class: "form-control" %>
|
16
16
|
</div>
|
17
17
|
<div class="form-group field_with_error">
|
18
18
|
<%= f.label :authorgithub, "Last Name" %>
|
19
|
-
<%= f.text_field :authorgithub, class: "form-control" %>
|
19
|
+
<%= f.text_field :authorgithub, placeholder: "Author Github", class: "form-control" %>
|
20
20
|
</div>
|
21
21
|
<div class="form-group field_with_error">
|
22
22
|
<%= f.label :authortwitter, "Last Name" %>
|
23
|
-
<%= f.text_field :authortwitter, class: "form-control" %>
|
23
|
+
<%= f.text_field :authortwitter, placeholder: "Author Twitter", class: "form-control" %>
|
24
24
|
</div>
|
25
25
|
<div class="actions">
|
26
26
|
<%= f.submit class: "btn blue-hoki" %>
|
@@ -1,29 +1,28 @@
|
|
1
|
-
<%= form_for([@scriptcdn_author.
|
1
|
+
<%= form_for([@scriptcdn_author.main, @scriptcdn_author], url: scriptcdn_main_author_path, method: :patch) do |f| %>
|
2
2
|
|
3
3
|
<%= render 'phcnotifi/validations', :object => @scriptcdn_author %>
|
4
4
|
|
5
5
|
<div class="form-group field_with_error">
|
6
6
|
<%= f.label :authorfirstname, "First Name" %>
|
7
|
-
<%= f.text_field :authorfirstname, class: "form-control" %>
|
7
|
+
<%= f.text_field :authorfirstname, placeholder: "Author First Name", class: "form-control" %>
|
8
8
|
</div>
|
9
9
|
<div class="form-group field_with_error">
|
10
10
|
<%= f.label :authorlastname, "Last Name" %>
|
11
|
-
<%= f.text_field :authorlastname, class: "form-control" %>
|
11
|
+
<%= f.text_field :authorlastname, placeholder: "Author Last Name", class: "form-control" %>
|
12
12
|
</div>
|
13
13
|
<div class="form-group field_with_error">
|
14
14
|
<%= f.label :authoremail, "Last Name" %>
|
15
|
-
<%= f.text_field :authoremail, class: "form-control" %>
|
15
|
+
<%= f.text_field :authoremail, placeholder: "Author Email", class: "form-control" %>
|
16
16
|
</div>
|
17
17
|
<div class="form-group field_with_error">
|
18
18
|
<%= f.label :authorgithub, "Last Name" %>
|
19
|
-
<%= f.text_field :authorgithub, class: "form-control" %>
|
19
|
+
<%= f.text_field :authorgithub, placeholder: "Author Github", class: "form-control" %>
|
20
20
|
</div>
|
21
21
|
<div class="form-group field_with_error">
|
22
22
|
<%= f.label :authortwitter, "Last Name" %>
|
23
|
-
<%= f.text_field :authortwitter, class: "form-control" %>
|
23
|
+
<%= f.text_field :authortwitter, placeholder: "Author Twitter", class: "form-control" %>
|
24
24
|
</div>
|
25
25
|
<div class="actions">
|
26
26
|
<%= f.submit class: "btn blue-hoki" %>
|
27
27
|
</div>
|
28
|
-
|
29
28
|
<% end %>
|
@@ -6,7 +6,7 @@
|
|
6
6
|
<div class="page-bar">
|
7
7
|
|
8
8
|
<ul class="page-breadcrumb">
|
9
|
-
<li><%= link_to "Script Versions",
|
9
|
+
<li><%= link_to "Script Versions", scriptcdn_main_authors_path %><i class="fa fa-circle"></i></li>
|
10
10
|
<li class="active"><%= yield(:phc_title_tagline) %></li>
|
11
11
|
</ul>
|
12
12
|
|
@@ -8,8 +8,8 @@
|
|
8
8
|
<%= f.text_field :scriptname, placeholder: "Script Name", class: "form-control" %>
|
9
9
|
</div>
|
10
10
|
<div class="form-group field_with_error">
|
11
|
-
<%= f.label :scriptdescription, "Script Description"
|
12
|
-
<%= f.text_area :scriptdescription %>
|
11
|
+
<%= f.label :scriptdescription, "Script Description" %>
|
12
|
+
<%= f.text_area :scriptdescription, placeholder: "Script Description", class: "form-control" %>
|
13
13
|
</div>
|
14
14
|
<div class="form-group field_with_error">
|
15
15
|
<%= f.submit class: "btn blue-hoki" %>
|
@@ -6,7 +6,7 @@
|
|
6
6
|
<div class="page-bar">
|
7
7
|
|
8
8
|
<ul class="page-breadcrumb">
|
9
|
-
<li><%= link_to "Scripts Main", scriptcdn_mains_path %><i class="fa fa-circle"></i></li>
|
9
|
+
<li><%= link_to "Scripts Main", phcscriptcdnpro.scriptcdn_mains_path %><i class="fa fa-circle"></i></li>
|
10
10
|
<li class="active"><%= yield(:phc_title_tagline) %></li>
|
11
11
|
</ul>
|
12
12
|
|
@@ -6,7 +6,7 @@
|
|
6
6
|
<div class="page-bar">
|
7
7
|
|
8
8
|
<ul class="page-breadcrumb">
|
9
|
-
<li><%= link_to "Scripts Main", scriptcdn_mains_path %><i class="fa fa-circle"></i></li>
|
9
|
+
<li><%= link_to "Scripts Main", phcscriptcdnpro.scriptcdn_mains_path %><i class="fa fa-circle"></i></li>
|
10
10
|
<li class="active"><%= yield(:phc_title_tagline) %></li>
|
11
11
|
</ul>
|
12
12
|
|