phcdevworks_scripts 2.2.0 → 2.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/phcdevworks_scripts/script/authors.coffee +3 -0
- data/app/assets/javascripts/phcdevworks_scripts/script/extensions.coffee +3 -0
- data/app/assets/javascripts/phcdevworks_scripts/script/listings.coffee +3 -0
- data/app/assets/javascripts/phcdevworks_scripts/script/urls.coffee +3 -0
- data/app/assets/javascripts/phcdevworks_scripts/snippet/posts.coffee +3 -0
- data/app/assets/javascripts/phcdevworks_scripts/snippet/urls.coffee +3 -0
- data/app/assets/stylesheets/phcdevworks_scripts/script/authors.scss +3 -0
- data/app/assets/stylesheets/phcdevworks_scripts/script/extensions.scss +3 -0
- data/app/assets/stylesheets/phcdevworks_scripts/script/listings.scss +3 -0
- data/app/assets/stylesheets/phcdevworks_scripts/script/urls.scss +3 -0
- data/app/assets/stylesheets/phcdevworks_scripts/snippet/posts.scss +3 -0
- data/app/assets/stylesheets/phcdevworks_scripts/snippet/urls.scss +3 -0
- data/app/assets/stylesheets/scaffolds.scss +65 -0
- data/app/views/layouts/phcdevworks_scripts/application.html.erb +62 -77
- data/app/views/layouts/phcdevworks_scripts/components/backend/footer/_footer.html.erb +7 -7
- data/app/views/layouts/phcdevworks_scripts/components/backend/navigation/_top_menu.html.erb +37 -37
- data/app/views/layouts/phcdevworks_scripts/components/backend/sidebars/_side_menu.html.erb +257 -239
- data/app/views/phcdevworks_scripts/script/authors/_form.html.erb +4 -2
- data/app/views/phcdevworks_scripts/script/authors/edit.html.erb +27 -15
- data/app/views/phcdevworks_scripts/script/authors/index.html.erb +61 -46
- data/app/views/phcdevworks_scripts/script/authors/new.html.erb +27 -15
- data/app/views/phcdevworks_scripts/script/extensions/_form.html.erb +6 -2
- data/app/views/phcdevworks_scripts/script/extensions/edit.html.erb +27 -15
- data/app/views/phcdevworks_scripts/script/extensions/index.html.erb +56 -42
- data/app/views/phcdevworks_scripts/script/extensions/new.html.erb +27 -15
- data/app/views/phcdevworks_scripts/script/listings/_form.html.erb +13 -3
- data/app/views/phcdevworks_scripts/script/listings/edit.html.erb +29 -17
- data/app/views/phcdevworks_scripts/script/listings/index.html.erb +60 -46
- data/app/views/phcdevworks_scripts/script/listings/new.html.erb +29 -18
- data/app/views/phcdevworks_scripts/script/urls/_form.html.erb +7 -1
- data/app/views/phcdevworks_scripts/script/urls/edit.html.erb +41 -17
- data/app/views/phcdevworks_scripts/script/urls/index.html.erb +59 -44
- data/app/views/phcdevworks_scripts/script/urls/new.html.erb +27 -15
- data/app/views/phcdevworks_scripts/script/versions/_form.html.erb +2 -0
- data/app/views/phcdevworks_scripts/script/versions/edit.html.erb +27 -15
- data/app/views/phcdevworks_scripts/script/versions/index.html.erb +55 -40
- data/app/views/phcdevworks_scripts/script/versions/new.html.erb +27 -15
- data/app/views/phcdevworks_scripts/snippet/posts/_form.html.erb +1 -0
- data/app/views/phcdevworks_scripts/snippet/posts/edit.html.erb +31 -23
- data/app/views/phcdevworks_scripts/snippet/posts/index.html.erb +68 -54
- data/app/views/phcdevworks_scripts/snippet/posts/new.html.erb +31 -23
- data/app/views/phcdevworks_scripts/snippet/urls/_form.html.erb +2 -2
- data/app/views/phcdevworks_scripts/snippet/urls/edit.html.erb +31 -23
- data/app/views/phcdevworks_scripts/snippet/urls/index.html.erb +66 -52
- data/app/views/phcdevworks_scripts/snippet/urls/new.html.erb +31 -23
- data/config/routes.rb +43 -22
- data/lib/phcdevworks_scripts/engine.rb +6 -8
- data/lib/phcdevworks_scripts/version.rb +1 -1
- metadata +35 -16
- data/app/assets/stylesheets/phcdevworks_scripts/script/authors.css +0 -4
- data/app/assets/stylesheets/phcdevworks_scripts/script/extensions.css +0 -4
- data/app/assets/stylesheets/phcdevworks_scripts/script/listings.css +0 -4
- data/app/assets/stylesheets/phcdevworks_scripts/script/urls.css +0 -4
- data/app/assets/stylesheets/phcdevworks_scripts/snippet/posts.css +0 -4
- data/app/assets/stylesheets/phcdevworks_scripts/snippet/urls.css +0 -4
- data/config/initializers/friendly_id.rb +0 -107
@@ -1,63 +1,78 @@
|
|
1
|
-
<!-- Title
|
1
|
+
<!-- PHCTitleSEO Title Variables -->
|
2
2
|
<% phc_title "Script Authors" %>
|
3
3
|
<% phc_title_tagline "Author Index" %>
|
4
4
|
<% phc_breadcrumb_one link_to "Script Index", phcdevworks_scripts.script_listings_path %>
|
5
5
|
<% phc_breadcrumb_two yield(:phc_title_tagline) %>
|
6
|
-
<!-- Title
|
6
|
+
<!-- PHCTitleSEO Title Variables -->
|
7
7
|
|
8
8
|
<!-- Page Bradcrumbs -->
|
9
9
|
<ol class="breadcrumb pull-right">
|
10
|
-
|
11
|
-
|
10
|
+
<li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
|
11
|
+
<li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_two) %></li>
|
12
12
|
</ol>
|
13
13
|
<!-- Page Bradcrumbs -->
|
14
14
|
|
15
15
|
<!-- Page Header -->
|
16
|
-
<
|
16
|
+
<h2 class="page-header"><%= yield(:phc_title) %></h2>
|
17
17
|
<!-- Page Header -->
|
18
18
|
|
19
|
-
<!-- Page
|
20
|
-
<div class="
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
<
|
37
|
-
<
|
38
|
-
|
39
|
-
<
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
19
|
+
<!-- Page Content -->
|
20
|
+
<div class="row">
|
21
|
+
<div class="col-lg-12">
|
22
|
+
|
23
|
+
<!-- Panel -->
|
24
|
+
<div class="panel panel-inverse">
|
25
|
+
|
26
|
+
<!-- Panel - Heading -->
|
27
|
+
<div class="panel-heading">
|
28
|
+
<h4 class="panel-title"><%= yield(:phc_title) %></h4>
|
29
|
+
</div>
|
30
|
+
<!-- Panel - Heading -->
|
31
|
+
|
32
|
+
<!-- Panel - Body -->
|
33
|
+
<div class="panel-body">
|
34
|
+
|
35
|
+
<!-- Index - Table -->
|
36
|
+
<div class="table-responsive">
|
37
|
+
<table class="table table-striped table-bordered">
|
38
|
+
|
39
|
+
<thead>
|
40
|
+
<tr>
|
41
|
+
<th>First Name</th>
|
42
|
+
<th>Last Name</th>
|
43
|
+
<th>Website</th>
|
44
|
+
<th>Github</th>
|
45
|
+
</tr>
|
46
|
+
</thead>
|
47
|
+
|
48
|
+
<tbody>
|
49
|
+
<% @script_authors.each do |script_author| %>
|
50
|
+
<tr>
|
51
|
+
<td><%= link_to script_author.author_first_name, script_author %></td>
|
52
|
+
<td><%= link_to script_author.author_last_name, script_author %></td>
|
53
|
+
<td><%= link_to script_author.author_website, script_author %></td>
|
54
|
+
<td><%= link_to script_author.author_github, script_author %></td>
|
55
|
+
</tr>
|
56
|
+
<% end %>
|
57
|
+
</tbody>
|
58
|
+
|
59
|
+
</table>
|
60
|
+
</div>
|
61
|
+
<!-- Index - Table -->
|
62
|
+
|
63
|
+
<!-- New Button -->
|
64
|
+
<%= link_to phcdevworks_scripts.new_script_author_path, class: "btn btn-primary btn-sm" do %>
|
65
|
+
<i class="fad fa-plus-circle"></i>
|
66
|
+
Add a New Script Author
|
67
|
+
<% end %>
|
68
|
+
<!-- New Button -->
|
69
|
+
|
70
|
+
</div>
|
71
|
+
<!-- Panel - Body -->
|
72
|
+
|
59
73
|
</div>
|
60
|
-
<!--
|
74
|
+
<!-- Panel -->
|
75
|
+
|
61
76
|
</div>
|
62
77
|
</div>
|
63
78
|
<!-- Page Content -->
|
@@ -1,10 +1,10 @@
|
|
1
|
-
<!-- Title
|
1
|
+
<!-- PHCTitleSEO Title Variables -->
|
2
2
|
<% phc_title "Script Authors" %>
|
3
3
|
<% phc_title_tagline "Add a New Author" %>
|
4
4
|
<% phc_breadcrumb_one link_to "Script Index", phcdevworks_scripts.script_listings_path %>
|
5
5
|
<% phc_breadcrumb_two link_to "Author Index", phcdevworks_scripts.script_authors_path %>
|
6
6
|
<% phc_breadcrumb_three yield(:phc_title_tagline) %>
|
7
|
-
<!-- Title
|
7
|
+
<!-- PHCTitleSEO Title Variables -->
|
8
8
|
|
9
9
|
<!-- Page Bradcrumbs -->
|
10
10
|
<ol class="breadcrumb pull-right">
|
@@ -15,23 +15,35 @@
|
|
15
15
|
<!-- Page Bradcrumbs -->
|
16
16
|
|
17
17
|
<!-- Page Header -->
|
18
|
-
<
|
18
|
+
<h2 class="page-header"><%= yield(:phc_title) %></h2>
|
19
19
|
<!-- Page Header -->
|
20
20
|
|
21
21
|
<!-- Page Content -->
|
22
|
-
<div class="
|
23
|
-
<div class="
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
22
|
+
<div class="row">
|
23
|
+
<div class="col-lg-12">
|
24
|
+
|
25
|
+
<!-- Panel -->
|
26
|
+
<div class="panel panel-inverse">
|
27
|
+
|
28
|
+
<!-- Panel - Heading -->
|
29
|
+
<div class="panel-heading">
|
30
|
+
<h4 class="panel-title"><%= yield(:phc_title) %></h4>
|
31
|
+
</div>
|
32
|
+
<!-- Panel - Heading -->
|
33
|
+
|
34
|
+
<!-- Panel - Body -->
|
35
|
+
<div class="panel-body">
|
36
|
+
|
37
|
+
<!-- New Form -->
|
38
|
+
<%= render "form", script_author: @script_author %>
|
39
|
+
<!-- New Form -->
|
40
|
+
|
41
|
+
</div>
|
42
|
+
<!-- Panel - Body -->
|
43
|
+
|
28
44
|
</div>
|
29
|
-
|
30
|
-
|
31
|
-
<div class="panel-body">
|
32
|
-
<!-- Form for New Author -->
|
33
|
-
<%= render 'form', script_author: @script_author %>
|
34
|
-
<!-- Form for New Author -->
|
45
|
+
<!-- Panel -->
|
46
|
+
|
35
47
|
</div>
|
36
48
|
</div>
|
37
49
|
<!-- Page Content -->
|
@@ -1,24 +1,27 @@
|
|
1
|
+
<!-- Form - Script - Extensions -->
|
1
2
|
<%= form_with(model: script_extension, local: true) do |form| %>
|
2
3
|
|
3
4
|
<!-- PHCNotifi Render Validation -->
|
4
5
|
<%= render "phcdevworks_notifications/bootstrap/validations", :object => @script_extension %>
|
5
6
|
<!-- PHCNotifi Render Validation -->
|
6
|
-
|
7
|
+
|
7
8
|
<!-- Form Input Fields -->
|
8
9
|
<div class="form-group field_with_errors">
|
9
10
|
<%= form.label :script_extension_name, "Extension Name" %>
|
10
11
|
<%= form.text_field :script_extension_name, placeholder: "Extension Name", class: "form-control" %>
|
11
12
|
</div>
|
13
|
+
|
12
14
|
<div class="form-group field_with_errors">
|
13
15
|
<%= form.label :script_extension_description, "Extension Description" %>
|
14
16
|
<%= form.text_area :script_extension_description, placeholder: "Extension Description", class: "form-control" %>
|
15
17
|
</div>
|
18
|
+
|
16
19
|
<div class="form-group field_with_errors">
|
17
20
|
<%= form.label :script_extension, "Script Extension" %>
|
18
21
|
<%= form.text_field :script_extension, placeholder: "Script Extension (.js/.css)", class: "form-control" %>
|
19
22
|
</div>
|
20
23
|
<!-- Form Input Fields -->
|
21
|
-
|
24
|
+
|
22
25
|
<!-- Form Submition Button -->
|
23
26
|
<div class="actions">
|
24
27
|
<%= form.submit class: "btn btn-primary" %>
|
@@ -26,3 +29,4 @@
|
|
26
29
|
<!-- For Submition Button -->
|
27
30
|
|
28
31
|
<% end %>
|
32
|
+
<!-- Form - Script - Extensions -->
|
@@ -1,10 +1,10 @@
|
|
1
|
-
<!-- Title
|
1
|
+
<!-- PHCTitleSEO Title Variables -->
|
2
2
|
<% phc_title "Script Extensions" %>
|
3
3
|
<% phc_title_tagline "Update Script Extension" %>
|
4
4
|
<% phc_breadcrumb_one link_to "Script Index", phcdevworks_scripts.script_listings_path %>
|
5
5
|
<% phc_breadcrumb_two link_to "Script Extension Index", phcdevworks_scripts.script_extensions_path %>
|
6
6
|
<% phc_breadcrumb_three yield(:phc_title_tagline) %>
|
7
|
-
<!-- Title
|
7
|
+
<!-- PHCTitleSEO Title Variables -->
|
8
8
|
|
9
9
|
<!-- Page Bradcrumbs -->
|
10
10
|
<ol class="breadcrumb pull-right">
|
@@ -15,23 +15,35 @@
|
|
15
15
|
<!-- Page Bradcrumbs -->
|
16
16
|
|
17
17
|
<!-- Page Header -->
|
18
|
-
<
|
18
|
+
<h2 class="page-header"><%= yield(:phc_title) %></h2>
|
19
19
|
<!-- Page Header -->
|
20
20
|
|
21
21
|
<!-- Page Content -->
|
22
|
-
<div class="
|
23
|
-
<div class="
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
22
|
+
<div class="row">
|
23
|
+
<div class="col-lg-12">
|
24
|
+
|
25
|
+
<!-- Panel -->
|
26
|
+
<div class="panel panel-inverse">
|
27
|
+
|
28
|
+
<!-- Panel - Heading -->
|
29
|
+
<div class="panel-heading">
|
30
|
+
<h4 class="panel-title"><%= yield(:phc_title) %></h4>
|
31
|
+
</div>
|
32
|
+
<!-- Panel - Heading -->
|
33
|
+
|
34
|
+
<!-- Panel - Body -->
|
35
|
+
<div class="panel-body">
|
36
|
+
|
37
|
+
<!-- Edit Form -->
|
38
|
+
<%= render "form", script_extension: @script_extension %>
|
39
|
+
<!-- Edit Form -->
|
40
|
+
|
41
|
+
</div>
|
42
|
+
<!-- Panel - Body -->
|
43
|
+
|
28
44
|
</div>
|
29
|
-
|
30
|
-
|
31
|
-
<div class="panel-body">
|
32
|
-
<!-- Form to Edit Extension -->
|
33
|
-
<%= render 'form', script_extension: @script_extension %>
|
34
|
-
<!-- Form to Edit Extension -->
|
45
|
+
<!-- Panel -->
|
46
|
+
|
35
47
|
</div>
|
36
48
|
</div>
|
37
49
|
<!-- Page Content -->
|
@@ -1,59 +1,73 @@
|
|
1
|
-
<!-- Title
|
1
|
+
<!-- PHCTitleSEO Title Variables -->
|
2
2
|
<% phc_title "Script Extensions" %>
|
3
3
|
<% phc_title_tagline "Script Extension Index" %>
|
4
4
|
<% phc_breadcrumb_one link_to "Script Index", phcdevworks_scripts.script_listings_path %>
|
5
5
|
<% phc_breadcrumb_two yield(:phc_title_tagline) %>
|
6
|
-
<!-- Title
|
6
|
+
<!-- PHCTitleSEO Title Variables -->
|
7
7
|
|
8
8
|
<!-- Page Bradcrumbs -->
|
9
9
|
<ol class="breadcrumb pull-right">
|
10
|
-
|
11
|
-
|
10
|
+
<li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
|
11
|
+
<li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_two) %></li>
|
12
12
|
</ol>
|
13
13
|
<!-- Page Bradcrumbs -->
|
14
14
|
|
15
15
|
<!-- Page Header -->
|
16
|
-
<
|
16
|
+
<h2 class="page-header"><%= yield(:phc_title) %></h2>
|
17
17
|
<!-- Page Header -->
|
18
18
|
|
19
|
-
<!-- Page
|
20
|
-
<div class="
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
<
|
37
|
-
<
|
38
|
-
|
39
|
-
<
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
19
|
+
<!-- Page Content -->
|
20
|
+
<div class="row">
|
21
|
+
<div class="col-lg-12">
|
22
|
+
|
23
|
+
<!-- Panel -->
|
24
|
+
<div class="panel panel-inverse">
|
25
|
+
|
26
|
+
<!-- Panel - Heading -->
|
27
|
+
<div class="panel-heading">
|
28
|
+
<h4 class="panel-title"><%= yield(:phc_title) %></h4>
|
29
|
+
</div>
|
30
|
+
<!-- Panel - Heading -->
|
31
|
+
|
32
|
+
<!-- Panel - Body -->
|
33
|
+
<div class="panel-body">
|
34
|
+
|
35
|
+
<!-- Index - Table -->
|
36
|
+
<div class="table-responsive">
|
37
|
+
<table class="table table-striped table-bordered">
|
38
|
+
|
39
|
+
<thead>
|
40
|
+
<tr>
|
41
|
+
<th>Script Extension Name</th>
|
42
|
+
<th>Script Extension</th>
|
43
|
+
</tr>
|
44
|
+
</thead>
|
45
|
+
<tbody>
|
46
|
+
<% @script_extensions.each do |script_extension| %>
|
47
|
+
<tr>
|
48
|
+
<td><%= link_to script_extension.script_extension_name, script_extension %></td>
|
49
|
+
<td><%= link_to script_extension.script_extension, script_extension %></td>
|
50
|
+
</tr>
|
51
|
+
<% end %>
|
52
|
+
</tbody>
|
53
|
+
|
54
|
+
</table>
|
55
|
+
</div>
|
56
|
+
<!-- Index - Table -->
|
57
|
+
|
58
|
+
<!-- New Button -->
|
59
|
+
<%= link_to phcdevworks_scripts.new_script_extension_path, class: "btn btn-primary" do %>
|
60
|
+
<i class="fad fa-plus-circle"></i>
|
61
|
+
Add a New Extension
|
62
|
+
<% end %>
|
63
|
+
<!-- New Button -->
|
64
|
+
|
65
|
+
</div>
|
66
|
+
<!-- Panel - Body -->
|
67
|
+
|
55
68
|
</div>
|
56
|
-
<!--
|
69
|
+
<!-- Panel -->
|
70
|
+
|
57
71
|
</div>
|
58
72
|
</div>
|
59
73
|
<!-- Page Content -->
|
@@ -1,10 +1,10 @@
|
|
1
|
-
<!-- Title
|
1
|
+
<!-- PHCTitleSEO Title Variables -->
|
2
2
|
<% phc_title "Script Extensions" %>
|
3
3
|
<% phc_title_tagline "Add a Script Extension" %>
|
4
4
|
<% phc_breadcrumb_one link_to "Script Index", phcdevworks_scripts.script_listings_path %>
|
5
5
|
<% phc_breadcrumb_two link_to "Script Extension Index", phcdevworks_scripts.script_extensions_path %>
|
6
6
|
<% phc_breadcrumb_three yield(:phc_title_tagline) %>
|
7
|
-
<!-- Title
|
7
|
+
<!-- PHCTitleSEO Title Variables -->
|
8
8
|
|
9
9
|
<!-- Page Bradcrumbs -->
|
10
10
|
<ol class="breadcrumb pull-right">
|
@@ -15,23 +15,35 @@
|
|
15
15
|
<!-- Page Bradcrumbs -->
|
16
16
|
|
17
17
|
<!-- Page Header -->
|
18
|
-
<
|
18
|
+
<h2 class="page-header"><%= yield(:phc_title) %></h2>
|
19
19
|
<!-- Page Header -->
|
20
20
|
|
21
21
|
<!-- Page Content -->
|
22
|
-
<div class="
|
23
|
-
<div class="
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
22
|
+
<div class="row">
|
23
|
+
<div class="col-lg-12">
|
24
|
+
|
25
|
+
<!-- Panel -->
|
26
|
+
<div class="panel panel-inverse">
|
27
|
+
|
28
|
+
<!-- Panel - Heading -->
|
29
|
+
<div class="panel-heading">
|
30
|
+
<h4 class="panel-title"><%= yield(:phc_title) %></h4>
|
31
|
+
</div>
|
32
|
+
<!-- Panel - Heading -->
|
33
|
+
|
34
|
+
<!-- Panel - Body -->
|
35
|
+
<div class="panel-body">
|
36
|
+
|
37
|
+
<!-- New Form -->
|
38
|
+
<%= render "form", script_extension: @script_extension %>
|
39
|
+
<!-- New Form -->
|
40
|
+
|
41
|
+
</div>
|
42
|
+
<!-- Panel - Body -->
|
43
|
+
|
28
44
|
</div>
|
29
|
-
|
30
|
-
|
31
|
-
<div class="panel-body">
|
32
|
-
<!-- Form for New Extension -->
|
33
|
-
<%= render 'form', script_extension: @script_extension %>
|
34
|
-
<!-- Form for New Extension -->
|
45
|
+
<!-- Panel -->
|
46
|
+
|
35
47
|
</div>
|
36
48
|
</div>
|
37
49
|
<!-- Page Content -->
|
@@ -1,52 +1,61 @@
|
|
1
|
+
<!-- Form - Script - Listings -->
|
1
2
|
<%= form_with(model: script_listing, local: true) do |form| %>
|
2
3
|
|
3
4
|
<!-- PHCNotifi Render Validation -->
|
4
5
|
<%= render "phcdevworks_notifications/bootstrap/validations", :object => @script_listing %>
|
5
6
|
<!-- PHCNotifi Render Validation -->
|
6
|
-
|
7
|
+
|
7
8
|
<!-- Form Input Fields -->
|
8
9
|
<div class="form-group field_with_errors">
|
9
10
|
<%= form.label :listing_title, "Script Title" %>
|
10
11
|
<%= form.text_field :listing_title, placeholder: "Script Title", class: "form-control" %>
|
11
12
|
</div>
|
13
|
+
|
12
14
|
<div class="form-group field_with_errors">
|
13
15
|
<%= form.label :listing_description, "Script Description" %>
|
14
16
|
<%= form.text_area :listing_description, placeholder: "Script Description", class: "form-control" %>
|
15
17
|
</div>
|
18
|
+
|
16
19
|
<div class="form-group field_with_errors">
|
17
20
|
<%= form.label :listing_script_source, "Script Source Code" %>
|
18
21
|
<%= form.text_field :listing_script_source, placeholder: "Script Source", class: "form-control" %>
|
19
22
|
</div>
|
23
|
+
|
20
24
|
<div class="form-group field_with_errors">
|
21
25
|
<%= form.label :listing_script_website, "Script Website" %>
|
22
26
|
<%= form.text_field :listing_script_website, placeholder: "Script Website", class: "form-control" %>
|
23
27
|
</div>
|
28
|
+
|
24
29
|
<div class="form-group field_with_errors">
|
25
30
|
<%= form.label :listing_script_repo, "Script Public Repo" %>
|
26
31
|
<%= form.text_field :listing_script_repo, placeholder: "Script Github Address", class: "form-control" %>
|
27
32
|
</div>
|
33
|
+
|
28
34
|
<div class="form-group field_with_errors">
|
29
35
|
<%= form.label :listing_script_initial_release, "Initial Release" %>
|
30
36
|
<%= form.date_select :listing_script_initial_release, start_year: 1981, class: "form-control" %>
|
31
37
|
</div>
|
38
|
+
|
32
39
|
<div class="form-group field_with_errors">
|
33
40
|
<%= form.label :listing_script_lastest_release, "Latest Release" %>
|
34
41
|
<%= form.date_select :listing_script_lastest_release, start_year: 1981, class: "form-control" %>
|
35
42
|
</div>
|
43
|
+
|
36
44
|
<div class="form-group field_with_errors">
|
37
45
|
<%= form.label :listing_script_beta_release, "Preview Release" %>
|
38
46
|
<%= form.date_select :listing_script_beta_release, start_year: 1981, class: "form-control" %>
|
39
47
|
</div>
|
48
|
+
|
40
49
|
<div class="form-group field_with_errors">
|
41
50
|
<%= form.label :listing_script_lastest_release_cdn, "Script CDN Release" %>
|
42
51
|
<%= form.date_select :listing_script_lastest_release_cdn, start_year: 1981, class: "form-control" %>
|
43
52
|
</div>
|
44
|
-
|
45
|
-
</div>
|
53
|
+
|
46
54
|
<div class="form-group field_with_errorss">
|
47
55
|
<label>Script Author</label>
|
48
56
|
<%= collection_select(:script_listing, :author_id, PhcdevworksScripts::Script::Author.order("author_first_name"), :id, :author_first_name, {}, {class: "form-control"}) %>
|
49
57
|
</div>
|
58
|
+
|
50
59
|
<div class="form-group field_with_errors">
|
51
60
|
<%= form.label :listing_script_status, "Script Status" %>
|
52
61
|
<%= form.select( :listing_script_status, [["Active","Active"],["Outdated","Out Dated"],["Deactivated","Not Active"]], {}, {class: "form-control"}) %>
|
@@ -60,3 +69,4 @@
|
|
60
69
|
<!-- For Submition Button -->
|
61
70
|
|
62
71
|
<% end %>
|
72
|
+
<!-- Form - Script - Listings -->
|
@@ -1,35 +1,47 @@
|
|
1
|
-
<!-- Title
|
1
|
+
<!-- PHCTitleSEO Title Variables -->
|
2
2
|
<% phc_title "Script Listings Manager" %>
|
3
3
|
<% phc_title_tagline "Update Script Listing" %>
|
4
4
|
<% phc_breadcrumb_one link_to "Script Index", phcdevworks_scripts.script_listings_path %>
|
5
5
|
<% phc_breadcrumb_two yield(:phc_title_tagline) %>
|
6
|
-
<!-- Title
|
6
|
+
<!-- PHCTitleSEO Title Variables -->
|
7
7
|
|
8
8
|
<!-- Page Bradcrumbs -->
|
9
9
|
<ol class="breadcrumb pull-right">
|
10
|
-
|
11
|
-
|
10
|
+
<li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
|
11
|
+
<li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_two) %></li>
|
12
12
|
</ol>
|
13
13
|
<!-- Page Bradcrumbs -->
|
14
14
|
|
15
15
|
<!-- Page Header -->
|
16
|
-
<
|
16
|
+
<h2 class="page-header"><%= yield(:phc_title) %></h2>
|
17
17
|
<!-- Page Header -->
|
18
18
|
|
19
19
|
<!-- Page Content -->
|
20
|
-
<div class="
|
21
|
-
<div class="
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
20
|
+
<div class="row">
|
21
|
+
<div class="col-lg-12">
|
22
|
+
|
23
|
+
<!-- Panel -->
|
24
|
+
<div class="panel panel-inverse">
|
25
|
+
|
26
|
+
<!-- Panel - Heading -->
|
27
|
+
<div class="panel-heading">
|
28
|
+
<h4 class="panel-title"><%= yield(:phc_title) %></h4>
|
29
|
+
</div>
|
30
|
+
<!-- Panel - Heading -->
|
31
|
+
|
32
|
+
<!-- Panel - Body -->
|
33
|
+
<div class="panel-body">
|
34
|
+
|
35
|
+
<!-- Edit Form -->
|
36
|
+
<%= render "form", script_listing: @script_listing %>
|
37
|
+
<!-- Edit Form -->
|
38
|
+
|
39
|
+
</div>
|
40
|
+
<!-- Panel - Body -->
|
41
|
+
|
26
42
|
</div>
|
27
|
-
|
28
|
-
|
29
|
-
<div class="panel-body">
|
30
|
-
<!-- Form to Edit Listings -->
|
31
|
-
<%= render 'form', script_listing: @script_listing %>
|
32
|
-
<!-- Form to Edit Listings -->
|
43
|
+
<!-- Panel -->
|
44
|
+
|
33
45
|
</div>
|
34
46
|
</div>
|
35
47
|
<!-- Page Content -->
|