phcdevworks_scripts 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/MIT-LICENSE +20 -0
- data/README.md +35 -0
- data/Rakefile +32 -0
- data/app/assets/config/phcdevworks_scripts_manifest.js +1 -0
- data/app/assets/javascripts/phcdevworks_scripts/application.js +2 -0
- data/app/assets/javascripts/phcdevworks_scripts/script/versions.coffee +3 -0
- data/app/assets/stylesheets/phcdevworks_scripts/application.scss +2 -0
- data/app/assets/stylesheets/phcdevworks_scripts/script/authors.css +4 -0
- data/app/assets/stylesheets/phcdevworks_scripts/script/extensions.css +4 -0
- data/app/assets/stylesheets/phcdevworks_scripts/script/listings.css +4 -0
- data/app/assets/stylesheets/phcdevworks_scripts/script/urls.css +4 -0
- data/app/assets/stylesheets/phcdevworks_scripts/script/versions.scss +3 -0
- data/app/assets/stylesheets/phcdevworks_scripts/snippet/posts.css +4 -0
- data/app/assets/stylesheets/phcdevworks_scripts/snippet/urls.css +4 -0
- data/app/controllers/phcdevworks_scripts/application_controller.rb +13 -0
- data/app/controllers/phcdevworks_scripts/script/authors_controller.rb +82 -0
- data/app/controllers/phcdevworks_scripts/script/extensions_controller.rb +82 -0
- data/app/controllers/phcdevworks_scripts/script/listings_controller.rb +82 -0
- data/app/controllers/phcdevworks_scripts/script/urls_controller.rb +77 -0
- data/app/controllers/phcdevworks_scripts/script/versions_controller.rb +82 -0
- data/app/controllers/phcdevworks_scripts/snippet/posts_controller.rb +80 -0
- data/app/controllers/phcdevworks_scripts/snippet/urls_controller.rb +76 -0
- data/app/helpers/phcdevworks_scripts/application_helper.rb +4 -0
- data/app/helpers/phcdevworks_scripts/script/authors_helper.rb +4 -0
- data/app/helpers/phcdevworks_scripts/script/extensions_helper.rb +4 -0
- data/app/helpers/phcdevworks_scripts/script/listings_helper.rb +4 -0
- data/app/helpers/phcdevworks_scripts/script/urls_helper.rb +4 -0
- data/app/helpers/phcdevworks_scripts/script/versions_helper.rb +4 -0
- data/app/helpers/phcdevworks_scripts/snippet/posts_helper.rb +4 -0
- data/app/helpers/phcdevworks_scripts/snippet/urls_helper.rb +4 -0
- data/app/jobs/phcdevworks_scripts/application_job.rb +4 -0
- data/app/mailers/phcdevworks_scripts/application_mailer.rb +6 -0
- data/app/models/phcdevworks_scripts/application_record.rb +5 -0
- data/app/models/phcdevworks_scripts/author_versions.rb +5 -0
- data/app/models/phcdevworks_scripts/extension_versions.rb +5 -0
- data/app/models/phcdevworks_scripts/listing_versions.rb +5 -0
- data/app/models/phcdevworks_scripts/script.rb +7 -0
- data/app/models/phcdevworks_scripts/script/author.rb +33 -0
- data/app/models/phcdevworks_scripts/script/extension.rb +32 -0
- data/app/models/phcdevworks_scripts/script/listing.rb +38 -0
- data/app/models/phcdevworks_scripts/script/url.rb +24 -0
- data/app/models/phcdevworks_scripts/script/version.rb +26 -0
- data/app/models/phcdevworks_scripts/scriptversion_versions.rb +5 -0
- data/app/models/phcdevworks_scripts/snippet.rb +7 -0
- data/app/models/phcdevworks_scripts/snippet/post.rb +25 -0
- data/app/models/phcdevworks_scripts/snippet/url.rb +16 -0
- data/app/models/phcdevworks_scripts/url_versions.rb +5 -0
- data/app/views/layouts/phcdevworks_scripts/application.html.erb +94 -0
- data/app/views/layouts/phcdevworks_scripts/components/backend/footer/_footer.html.erb +16 -0
- data/app/views/layouts/phcdevworks_scripts/components/backend/navigation/_top_menu.html.erb +37 -0
- data/app/views/layouts/phcdevworks_scripts/components/backend/sidebars/_side_menu.html.erb +183 -0
- data/app/views/phcdevworks_scripts/script/authors/_form.html.erb +32 -0
- data/app/views/phcdevworks_scripts/script/authors/edit.html.erb +37 -0
- data/app/views/phcdevworks_scripts/script/authors/index.html.erb +63 -0
- data/app/views/phcdevworks_scripts/script/authors/new.html.erb +37 -0
- data/app/views/phcdevworks_scripts/script/authors/show.html.erb +49 -0
- data/app/views/phcdevworks_scripts/script/extensions/_form.html.erb +28 -0
- data/app/views/phcdevworks_scripts/script/extensions/edit.html.erb +37 -0
- data/app/views/phcdevworks_scripts/script/extensions/index.html.erb +59 -0
- data/app/views/phcdevworks_scripts/script/extensions/new.html.erb +37 -0
- data/app/views/phcdevworks_scripts/script/extensions/show.html.erb +49 -0
- data/app/views/phcdevworks_scripts/script/listings/_form.html.erb +62 -0
- data/app/views/phcdevworks_scripts/script/listings/edit.html.erb +35 -0
- data/app/views/phcdevworks_scripts/script/listings/index.html.erb +62 -0
- data/app/views/phcdevworks_scripts/script/listings/new.html.erb +36 -0
- data/app/views/phcdevworks_scripts/script/listings/show.html.erb +48 -0
- data/app/views/phcdevworks_scripts/script/urls/_form.html.erb +36 -0
- data/app/views/phcdevworks_scripts/script/urls/edit.html.erb +36 -0
- data/app/views/phcdevworks_scripts/script/urls/index.html.erb +61 -0
- data/app/views/phcdevworks_scripts/script/urls/new.html.erb +37 -0
- data/app/views/phcdevworks_scripts/script/urls/show.html.erb +49 -0
- data/app/views/phcdevworks_scripts/script/versions/_form.html.erb +20 -0
- data/app/views/phcdevworks_scripts/script/versions/edit.html.erb +37 -0
- data/app/views/phcdevworks_scripts/script/versions/index.html.erb +57 -0
- data/app/views/phcdevworks_scripts/script/versions/new.html.erb +37 -0
- data/app/views/phcdevworks_scripts/script/versions/show.html.erb +49 -0
- data/app/views/phcdevworks_scripts/snippet/posts/_form.html.erb +26 -0
- data/app/views/phcdevworks_scripts/snippet/posts/edit.html.erb +39 -0
- data/app/views/phcdevworks_scripts/snippet/posts/index.html.erb +68 -0
- data/app/views/phcdevworks_scripts/snippet/posts/new.html.erb +39 -0
- data/app/views/phcdevworks_scripts/snippet/posts/show.html.erb +71 -0
- data/app/views/phcdevworks_scripts/snippet/urls/_form.html.erb +22 -0
- data/app/views/phcdevworks_scripts/snippet/urls/edit.html.erb +39 -0
- data/app/views/phcdevworks_scripts/snippet/urls/index.html.erb +66 -0
- data/app/views/phcdevworks_scripts/snippet/urls/new.html.erb +39 -0
- data/app/views/phcdevworks_scripts/snippet/urls/show.html.erb +71 -0
- data/config/initializers/friendly_id.rb +107 -0
- data/config/routes.rb +32 -0
- data/db/migrate/20170509002355_create_phcdevworks_scripts_friendly_id_slugs.rb +18 -0
- data/db/migrate/20170517064030_create_phcdevworks_scripts_extension_versions.rb +17 -0
- data/db/migrate/20170517064049_create_phcdevworks_scripts_listing_versions.rb +17 -0
- data/db/migrate/20170517064114_create_phcdevworks_scripts_scriptversion_versions.rb +17 -0
- data/db/migrate/20170517064150_create_phcdevworks_scripts_url_versions.rb +17 -0
- data/db/migrate/20170517064208_create_phcdevworks_scripts_author_versions.rb +17 -0
- data/db/migrate/20170517064427_create_phcdevworks_scripts_licence_versions.rb +17 -0
- data/db/migrate/20190818022002_create_phcdevworks_scripts_snippet_posts.rb +16 -0
- data/db/migrate/20190818022024_create_phcdevworks_scripts_snippet_urls.rb +17 -0
- data/db/migrate/20190818022939_create_phcdevworks_scripts_script_authors.rb +18 -0
- data/db/migrate/20190818023353_create_phcdevworks_scripts_script_listings.rb +27 -0
- data/db/migrate/20190818023709_create_phcdevworks_scripts_script_extensions.rb +17 -0
- data/db/migrate/20190818023911_create_phcdevworks_scripts_script_urls.rb +21 -0
- data/db/migrate/20190818031653_create_phcdevworks_scripts_script_versions.rb +15 -0
- data/lib/phcdevworks_scripts.rb +5 -0
- data/lib/phcdevworks_scripts/engine.rb +33 -0
- data/lib/phcdevworks_scripts/version.rb +3 -0
- data/lib/tasks/phcdevworks_scripts_tasks.rake +4 -0
- metadata +352 -0
@@ -0,0 +1,32 @@
|
|
1
|
+
<%= form_with(model: script_author, local: true) do |form| %>
|
2
|
+
|
3
|
+
<!-- PHCNotifi Render Validation -->
|
4
|
+
<%= render 'phcdevworks_notifications/bootstrap/validations', :object => @script_author %>
|
5
|
+
<!-- PHCNotifi Render Validation -->
|
6
|
+
|
7
|
+
<!-- Form Input Fields -->
|
8
|
+
<div class="form-group field_with_errors">
|
9
|
+
<%= form.label :author_first_name, "Author First Name" %>
|
10
|
+
<%= form.text_field :author_first_name, placeholder: "Author First Name", class: "form-control" %>
|
11
|
+
</div>
|
12
|
+
<div class="form-group field_with_errors">
|
13
|
+
<%= form.label :author_last_name, "Author Last Name" %>
|
14
|
+
<%= form.text_field :author_last_name, placeholder: "Author Last Name", class: "form-control" %>
|
15
|
+
</div>
|
16
|
+
<div class="form-group field_with_errors">
|
17
|
+
<%= form.label :author_website, "Author Website" %>
|
18
|
+
<%= form.text_field :author_website, placeholder: "Author Website", class: "form-control" %>
|
19
|
+
</div>
|
20
|
+
<div class="form-group field_with_errors">
|
21
|
+
<%= form.label :author_github, "Author Github Address" %>
|
22
|
+
<%= form.text_field :author_github, placeholder: "Author Github Address", class: "form-control" %>
|
23
|
+
</div>
|
24
|
+
<!-- Form Input Fields -->
|
25
|
+
|
26
|
+
<!-- Form Submition Button -->
|
27
|
+
<div class="actions">
|
28
|
+
<%= form.submit class: "btn btn-primary" %>
|
29
|
+
</div>
|
30
|
+
<!-- For Submition Button -->
|
31
|
+
|
32
|
+
<% end %>
|
@@ -0,0 +1,37 @@
|
|
1
|
+
<!-- Title System -->
|
2
|
+
<% phc_title "Script Authors" %>
|
3
|
+
<% phc_title_tagline "Update Author Data" %>
|
4
|
+
<% phc_breadcrumb_one link_to "Script Index", phcdevworks_scripts.script_listings_path %>
|
5
|
+
<% phc_breadcrumb_two link_to "Author Index", phcdevworks_scripts.script_authors_path %>
|
6
|
+
<% phc_breadcrumb_three yield(:phc_title_tagline) %>
|
7
|
+
<!-- Title System -->
|
8
|
+
|
9
|
+
<!-- Page Bradcrumbs -->
|
10
|
+
<ol class="breadcrumb pull-right">
|
11
|
+
<li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
|
12
|
+
<li class="breadcrumb-item"><%= yield(:phc_breadcrumb_two) %></li>
|
13
|
+
<li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_three) %></li>
|
14
|
+
</ol>
|
15
|
+
<!-- Page Bradcrumbs -->
|
16
|
+
|
17
|
+
<!-- Page Header -->
|
18
|
+
<h1 class="page-header"><%= yield(:phc_title) %></h1>
|
19
|
+
<!-- Page Header -->
|
20
|
+
|
21
|
+
<!-- Page Content -->
|
22
|
+
<div class="panel panel-inverse">
|
23
|
+
<div class="panel-heading">
|
24
|
+
<div class="panel-heading-btn">
|
25
|
+
<a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-default" data-click="panel-expand"><i class="fa fa-expand"></i></a>
|
26
|
+
<a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-success" data-click="panel-reload"><i class="fa fa-redo"></i></a>
|
27
|
+
<a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-warning" data-click="panel-collapse"><i class="fa fa-minus"></i></a>
|
28
|
+
</div>
|
29
|
+
<h4 class="panel-title"><%= yield(:phc_title) %></h4>
|
30
|
+
</div>
|
31
|
+
<div class="panel-body">
|
32
|
+
<!-- Form to Edit Author -->
|
33
|
+
<%= render 'form', script_author: @script_author %>
|
34
|
+
<!-- Form to Edit Author -->
|
35
|
+
</div>
|
36
|
+
</div>
|
37
|
+
<!-- Page Content -->
|
@@ -0,0 +1,63 @@
|
|
1
|
+
<!-- Title System -->
|
2
|
+
<% phc_title "Script Authors" %>
|
3
|
+
<% phc_title_tagline "Author Index" %>
|
4
|
+
<% phc_breadcrumb_one link_to "Script Index", phcdevworks_scripts.script_listings_path %>
|
5
|
+
<% phc_breadcrumb_two yield(:phc_title_tagline) %>
|
6
|
+
<!-- Title System -->
|
7
|
+
|
8
|
+
<!-- Page Bradcrumbs -->
|
9
|
+
<ol class="breadcrumb pull-right">
|
10
|
+
<li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
|
11
|
+
<li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_two) %></li>
|
12
|
+
</ol>
|
13
|
+
<!-- Page Bradcrumbs -->
|
14
|
+
|
15
|
+
<!-- Page Header -->
|
16
|
+
<h1 class="page-header"><%= yield(:phc_title) %></h1>
|
17
|
+
<!-- Page Header -->
|
18
|
+
|
19
|
+
<!-- Page & Panel Content -->
|
20
|
+
<div class="panel panel-inverse">
|
21
|
+
<!-- Panel Heading -->
|
22
|
+
<div class="panel-heading">
|
23
|
+
<div class="panel-heading-btn">
|
24
|
+
<a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-default" data-click="panel-expand"><i class="fa fa-expand"></i></a>
|
25
|
+
<a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-success" data-click="panel-reload"><i class="fa fa-redo"></i></a>
|
26
|
+
<a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-warning" data-click="panel-collapse"><i class="fa fa-minus"></i></a>
|
27
|
+
</div>
|
28
|
+
<h4 class="panel-title"><%= yield(:phc_title_tagline) %></h4>
|
29
|
+
</div>
|
30
|
+
<!-- Panel Heading -->
|
31
|
+
<!-- Panel Body -->
|
32
|
+
<div class="panel-body">
|
33
|
+
<!-- Table - Author Index -->
|
34
|
+
<div class="table-responsive">
|
35
|
+
<table class="table table-striped table-bordered">
|
36
|
+
<thead>
|
37
|
+
<tr>
|
38
|
+
<th>First Name</th>
|
39
|
+
<th>Last Name</th>
|
40
|
+
<th>Website</th>
|
41
|
+
<th>Github</th>
|
42
|
+
</tr>
|
43
|
+
</thead>
|
44
|
+
<tbody>
|
45
|
+
<% @script_authors.each do |script_author| %>
|
46
|
+
<tr>
|
47
|
+
<td><%= link_to script_author.author_first_name, script_author %></td>
|
48
|
+
<td><%= link_to script_author.author_last_name, script_author %></td>
|
49
|
+
<td><%= link_to script_author.author_website, script_author %></td>
|
50
|
+
<td><%= link_to script_author.author_github, script_author %></td>
|
51
|
+
</tr>
|
52
|
+
<% end %>
|
53
|
+
</tbody>
|
54
|
+
</table>
|
55
|
+
<%= link_to phcdevworks_scripts.new_script_author_path, class: "btn btn-primary btn-sm" do %>
|
56
|
+
<i class="fas fa-plus-circle"></i>
|
57
|
+
Add a New Script Author
|
58
|
+
<% end %>
|
59
|
+
</div>
|
60
|
+
<!-- Table - Author Index -->
|
61
|
+
</div>
|
62
|
+
</div>
|
63
|
+
<!-- Page Content -->
|
@@ -0,0 +1,37 @@
|
|
1
|
+
<!-- Title System -->
|
2
|
+
<% phc_title "Script Authors" %>
|
3
|
+
<% phc_title_tagline "Add a New Author" %>
|
4
|
+
<% phc_breadcrumb_one link_to "Script Index", phcdevworks_scripts.script_listings_path %>
|
5
|
+
<% phc_breadcrumb_two link_to "Author Index", phcdevworks_scripts.script_authors_path %>
|
6
|
+
<% phc_breadcrumb_three yield(:phc_title_tagline) %>
|
7
|
+
<!-- Title System -->
|
8
|
+
|
9
|
+
<!-- Page Bradcrumbs -->
|
10
|
+
<ol class="breadcrumb pull-right">
|
11
|
+
<li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
|
12
|
+
<li class="breadcrumb-item"><%= yield(:phc_breadcrumb_two) %></li>
|
13
|
+
<li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_three) %></li>
|
14
|
+
</ol>
|
15
|
+
<!-- Page Bradcrumbs -->
|
16
|
+
|
17
|
+
<!-- Page Header -->
|
18
|
+
<h1 class="page-header"><%= yield(:phc_title) %></h1>
|
19
|
+
<!-- Page Header -->
|
20
|
+
|
21
|
+
<!-- Page Content -->
|
22
|
+
<div class="panel panel-inverse">
|
23
|
+
<div class="panel-heading">
|
24
|
+
<div class="panel-heading-btn">
|
25
|
+
<a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-default" data-click="panel-expand"><i class="fa fa-expand"></i></a>
|
26
|
+
<a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-success" data-click="panel-reload"><i class="fa fa-redo"></i></a>
|
27
|
+
<a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-warning" data-click="panel-collapse"><i class="fa fa-minus"></i></a>
|
28
|
+
</div>
|
29
|
+
<h4 class="panel-title"><%= yield(:phc_title) %></h4>
|
30
|
+
</div>
|
31
|
+
<div class="panel-body">
|
32
|
+
<!-- Form for New Author -->
|
33
|
+
<%= render 'form', script_author: @script_author %>
|
34
|
+
<!-- Form for New Author -->
|
35
|
+
</div>
|
36
|
+
</div>
|
37
|
+
<!-- Page Content -->
|
@@ -0,0 +1,49 @@
|
|
1
|
+
<!-- Title System -->
|
2
|
+
<% phc_title "Script Authors" %>
|
3
|
+
<% phc_title_tagline "Script Author Profile" %>
|
4
|
+
<% phc_breadcrumb_one link_to "Script Index", phcdevworks_scripts.script_listings_path %>
|
5
|
+
<% phc_breadcrumb_two link_to "Author Index", phcdevworks_scripts.script_authors_path %>
|
6
|
+
<% phc_breadcrumb_three yield(:phc_title_tagline) %>
|
7
|
+
<!-- Title System -->
|
8
|
+
|
9
|
+
<!-- Page Bradcrumbs -->
|
10
|
+
<ol class="breadcrumb pull-right">
|
11
|
+
<li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
|
12
|
+
<li class="breadcrumb-item"><%= yield(:phc_breadcrumb_two) %></li>
|
13
|
+
<li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_three) %></li>
|
14
|
+
</ol>
|
15
|
+
<!-- Page Bradcrumbs -->
|
16
|
+
|
17
|
+
<!-- Page Header -->
|
18
|
+
<h1 class="page-header"><%= yield(:phc_title) %></h1>
|
19
|
+
<!-- Page Header -->
|
20
|
+
|
21
|
+
<!-- Page Content -->
|
22
|
+
<div class="row">
|
23
|
+
|
24
|
+
<!-- Button Panel -->
|
25
|
+
<div class="col-lg-4">
|
26
|
+
|
27
|
+
<div class="panel panel-inverse">
|
28
|
+
<div class="panel-heading">
|
29
|
+
<div class="panel-heading-btn">
|
30
|
+
</div>
|
31
|
+
</div>
|
32
|
+
<div class="panel-body">
|
33
|
+
<div class="btn-group d-flex" role="group">
|
34
|
+
<%= link_to 'Update', phcdevworks_scripts.edit_script_author_path, class: "btn btn-primary" %>
|
35
|
+
<%= link_to 'Remove', phcdevworks_scripts.script_author_path, method: :delete, data: { confirm: 'Are you sure?' }, class: "btn btn-danger" %>
|
36
|
+
</div>
|
37
|
+
</div>
|
38
|
+
</div>
|
39
|
+
|
40
|
+
</div>
|
41
|
+
<!-- Button Panel -->
|
42
|
+
|
43
|
+
<!-- Main Panel -->
|
44
|
+
<div class="col-lg-8">
|
45
|
+
</div>
|
46
|
+
<!-- Main Panel -->
|
47
|
+
|
48
|
+
</div>
|
49
|
+
<!-- Page Content -->
|
@@ -0,0 +1,28 @@
|
|
1
|
+
<%= form_with(model: script_extension, local: true) do |form| %>
|
2
|
+
|
3
|
+
<!-- PHCNotifi Render Validation -->
|
4
|
+
<%= render 'phcdevworks_notifications/bootstrap/validations', :object => @script_extension %>
|
5
|
+
<!-- PHCNotifi Render Validation -->
|
6
|
+
|
7
|
+
<!-- Form Input Fields -->
|
8
|
+
<div class="form-group field_with_errors">
|
9
|
+
<%= form.label :script_extension_name, "Extension Name" %>
|
10
|
+
<%= form.text_field :script_extension_name, placeholder: "Extension Name", class: "form-control" %>
|
11
|
+
</div>
|
12
|
+
<div class="form-group field_with_errors">
|
13
|
+
<%= form.label :script_extension_description, "Extension Description" %>
|
14
|
+
<%= form.text_area :script_extension_description, placeholder: "Extension Description", class: "form-control" %>
|
15
|
+
</div>
|
16
|
+
<div class="form-group field_with_errors">
|
17
|
+
<%= form.label :script_extension, "Script Extension" %>
|
18
|
+
<%= form.text_field :script_extension, placeholder: "Script Extension (.js/.css)", class: "form-control" %>
|
19
|
+
</div>
|
20
|
+
<!-- Form Input Fields -->
|
21
|
+
|
22
|
+
<!-- Form Submition Button -->
|
23
|
+
<div class="actions">
|
24
|
+
<%= form.submit class: "btn btn-primary" %>
|
25
|
+
</div>
|
26
|
+
<!-- For Submition Button -->
|
27
|
+
|
28
|
+
<% end %>
|
@@ -0,0 +1,37 @@
|
|
1
|
+
<!-- Title System -->
|
2
|
+
<% phc_title "Script Extensions" %>
|
3
|
+
<% phc_title_tagline "Update Script Extension" %>
|
4
|
+
<% phc_breadcrumb_one link_to "Script Index", phcdevworks_scripts.script_listings_path %>
|
5
|
+
<% phc_breadcrumb_two link_to "Script Extension Index", phcdevworks_scripts.script_extensions_path %>
|
6
|
+
<% phc_breadcrumb_three yield(:phc_title_tagline) %>
|
7
|
+
<!-- Title System -->
|
8
|
+
|
9
|
+
<!-- Page Bradcrumbs -->
|
10
|
+
<ol class="breadcrumb pull-right">
|
11
|
+
<li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
|
12
|
+
<li class="breadcrumb-item"><%= yield(:phc_breadcrumb_two) %></li>
|
13
|
+
<li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_three) %></li>
|
14
|
+
</ol>
|
15
|
+
<!-- Page Bradcrumbs -->
|
16
|
+
|
17
|
+
<!-- Page Header -->
|
18
|
+
<h1 class="page-header"><%= yield(:phc_title) %></h1>
|
19
|
+
<!-- Page Header -->
|
20
|
+
|
21
|
+
<!-- Page Content -->
|
22
|
+
<div class="panel panel-inverse">
|
23
|
+
<div class="panel-heading">
|
24
|
+
<div class="panel-heading-btn">
|
25
|
+
<a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-default" data-click="panel-expand"><i class="fa fa-expand"></i></a>
|
26
|
+
<a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-success" data-click="panel-reload"><i class="fa fa-redo"></i></a>
|
27
|
+
<a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-warning" data-click="panel-collapse"><i class="fa fa-minus"></i></a>
|
28
|
+
</div>
|
29
|
+
<h4 class="panel-title"><%= yield(:phc_title) %></h4>
|
30
|
+
</div>
|
31
|
+
<div class="panel-body">
|
32
|
+
<!-- Form to Edit Extension -->
|
33
|
+
<%= render 'form', script_extension: @script_extension %>
|
34
|
+
<!-- Form to Edit Extension -->
|
35
|
+
</div>
|
36
|
+
</div>
|
37
|
+
<!-- Page Content -->
|
@@ -0,0 +1,59 @@
|
|
1
|
+
<!-- Title System -->
|
2
|
+
<% phc_title "Script Extensions" %>
|
3
|
+
<% phc_title_tagline "Script Extension Index" %>
|
4
|
+
<% phc_breadcrumb_one link_to "Script Index", phcdevworks_scripts.script_listings_path %>
|
5
|
+
<% phc_breadcrumb_two yield(:phc_title_tagline) %>
|
6
|
+
<!-- Title System -->
|
7
|
+
|
8
|
+
<!-- Page Bradcrumbs -->
|
9
|
+
<ol class="breadcrumb pull-right">
|
10
|
+
<li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
|
11
|
+
<li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_two) %></li>
|
12
|
+
</ol>
|
13
|
+
<!-- Page Bradcrumbs -->
|
14
|
+
|
15
|
+
<!-- Page Header -->
|
16
|
+
<h1 class="page-header"><%= yield(:phc_title) %></h1>
|
17
|
+
<!-- Page Header -->
|
18
|
+
|
19
|
+
<!-- Page & Panel Content -->
|
20
|
+
<div class="panel panel-inverse">
|
21
|
+
<!-- Panel Heading -->
|
22
|
+
<div class="panel-heading">
|
23
|
+
<div class="panel-heading-btn">
|
24
|
+
<a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-default" data-click="panel-expand"><i class="fa fa-expand"></i></a>
|
25
|
+
<a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-success" data-click="panel-reload"><i class="fa fa-redo"></i></a>
|
26
|
+
<a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-warning" data-click="panel-collapse"><i class="fa fa-minus"></i></a>
|
27
|
+
</div>
|
28
|
+
<h4 class="panel-title"><%= yield(:phc_title_tagline) %></h4>
|
29
|
+
</div>
|
30
|
+
<!-- Panel Heading -->
|
31
|
+
<!-- Panel Body -->
|
32
|
+
<div class="panel-body">
|
33
|
+
<!-- Table - Extension Index -->
|
34
|
+
<div class="table-responsive">
|
35
|
+
<table class="table table-striped table-bordered">
|
36
|
+
<thead>
|
37
|
+
<tr>
|
38
|
+
<th>Script Extension Name</th>
|
39
|
+
<th>Script Extension</th>
|
40
|
+
</tr>
|
41
|
+
</thead>
|
42
|
+
<tbody>
|
43
|
+
<% @script_extensions.each do |script_extension| %>
|
44
|
+
<tr>
|
45
|
+
<td><%= link_to script_extension.script_extension_name, script_extension %></td>
|
46
|
+
<td><%= link_to script_extension.script_extension, script_extension %></td>
|
47
|
+
</tr>
|
48
|
+
<% end %>
|
49
|
+
</tbody>
|
50
|
+
</table>
|
51
|
+
<%= link_to phcdevworks_scripts.new_script_extension_path, class: "btn btn-primary" do %>
|
52
|
+
<i class="fas fa-plus-circle"></i>
|
53
|
+
Add a New Extension
|
54
|
+
<% end %>
|
55
|
+
</div>
|
56
|
+
<!-- Table - Extension Index -->
|
57
|
+
</div>
|
58
|
+
</div>
|
59
|
+
<!-- Page Content -->
|
@@ -0,0 +1,37 @@
|
|
1
|
+
<!-- Title System -->
|
2
|
+
<% phc_title "Script Extensions" %>
|
3
|
+
<% phc_title_tagline "Add a Script Extension" %>
|
4
|
+
<% phc_breadcrumb_one link_to "Script Index", phcdevworks_scripts.script_listings_path %>
|
5
|
+
<% phc_breadcrumb_two link_to "Script Extension Index", phcdevworks_scripts.script_extensions_path %>
|
6
|
+
<% phc_breadcrumb_three yield(:phc_title_tagline) %>
|
7
|
+
<!-- Title System -->
|
8
|
+
|
9
|
+
<!-- Page Bradcrumbs -->
|
10
|
+
<ol class="breadcrumb pull-right">
|
11
|
+
<li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
|
12
|
+
<li class="breadcrumb-item"><%= yield(:phc_breadcrumb_two) %></li>
|
13
|
+
<li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_three) %></li>
|
14
|
+
</ol>
|
15
|
+
<!-- Page Bradcrumbs -->
|
16
|
+
|
17
|
+
<!-- Page Header -->
|
18
|
+
<h1 class="page-header"><%= yield(:phc_title) %></h1>
|
19
|
+
<!-- Page Header -->
|
20
|
+
|
21
|
+
<!-- Page Content -->
|
22
|
+
<div class="panel panel-inverse">
|
23
|
+
<div class="panel-heading">
|
24
|
+
<div class="panel-heading-btn">
|
25
|
+
<a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-default" data-click="panel-expand"><i class="fa fa-expand"></i></a>
|
26
|
+
<a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-success" data-click="panel-reload"><i class="fa fa-redo"></i></a>
|
27
|
+
<a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-warning" data-click="panel-collapse"><i class="fa fa-minus"></i></a>
|
28
|
+
</div>
|
29
|
+
<h4 class="panel-title"><%= yield(:phc_title) %></h4>
|
30
|
+
</div>
|
31
|
+
<div class="panel-body">
|
32
|
+
<!-- Form for New Extension -->
|
33
|
+
<%= render 'form', script_extension: @script_extension %>
|
34
|
+
<!-- Form for New Extension -->
|
35
|
+
</div>
|
36
|
+
</div>
|
37
|
+
<!-- Page Content -->
|
@@ -0,0 +1,49 @@
|
|
1
|
+
<!-- Title System -->
|
2
|
+
<% phc_title "Script Extensions" %>
|
3
|
+
<% phc_title_tagline "Script Extension Details" %>
|
4
|
+
<% phc_breadcrumb_one link_to "Script Index", phcdevworks_scripts.script_listings_path %>
|
5
|
+
<% phc_breadcrumb_two link_to "Script Extension Index", phcdevworks_scripts.script_extensions_path %>
|
6
|
+
<% phc_breadcrumb_three yield(:phc_title_tagline) %>
|
7
|
+
<!-- Title System -->
|
8
|
+
|
9
|
+
<!-- Page Bradcrumbs -->
|
10
|
+
<ol class="breadcrumb pull-right">
|
11
|
+
<li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
|
12
|
+
<li class="breadcrumb-item"><%= yield(:phc_breadcrumb_two) %></li>
|
13
|
+
<li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_three) %></li>
|
14
|
+
</ol>
|
15
|
+
<!-- Page Bradcrumbs -->
|
16
|
+
|
17
|
+
<!-- Page Header -->
|
18
|
+
<h1 class="page-header"><%= yield(:phc_title) %></h1>
|
19
|
+
<!-- Page Header -->
|
20
|
+
|
21
|
+
<!-- Page Content -->
|
22
|
+
<div class="row">
|
23
|
+
|
24
|
+
<!-- Button Panel -->
|
25
|
+
<div class="col-lg-4">
|
26
|
+
|
27
|
+
<div class="panel panel-inverse">
|
28
|
+
<div class="panel-heading">
|
29
|
+
<div class="panel-heading-btn">
|
30
|
+
</div>
|
31
|
+
</div>
|
32
|
+
<div class="panel-body">
|
33
|
+
<div class="btn-group d-flex" role="group">
|
34
|
+
<%= link_to 'Update', phcdevworks_scripts.edit_script_extension_path, class: "btn btn-primary" %>
|
35
|
+
<%= link_to 'Remove', phcdevworks_scripts.script_extension_path, method: :delete, data: { confirm: 'Are you sure?' }, class: "btn btn-danger" %>
|
36
|
+
</div>
|
37
|
+
</div>
|
38
|
+
</div>
|
39
|
+
|
40
|
+
</div>
|
41
|
+
<!-- Button Panel -->
|
42
|
+
|
43
|
+
<!-- Main Panel -->
|
44
|
+
<div class="col-lg-8">
|
45
|
+
</div>
|
46
|
+
<!-- Main Panel -->
|
47
|
+
|
48
|
+
</div>
|
49
|
+
<!-- Page Content -->
|
@@ -0,0 +1,62 @@
|
|
1
|
+
<%= form_with(model: script_listing, local: true) do |form| %>
|
2
|
+
|
3
|
+
<!-- PHCNotifi Render Validation -->
|
4
|
+
<%= render 'phcdevworks_notifications/bootstrap/validations', :object => @script_listing %>
|
5
|
+
<!-- PHCNotifi Render Validation -->
|
6
|
+
|
7
|
+
<!-- Form Input Fields -->
|
8
|
+
<div class="form-group field_with_errors">
|
9
|
+
<%= form.label :listing_title, "Script Title" %>
|
10
|
+
<%= form.text_field :listing_title, placeholder: "Script Title", class: "form-control" %>
|
11
|
+
</div>
|
12
|
+
<div class="form-group field_with_errors">
|
13
|
+
<%= form.label :listing_description, "Script Description" %>
|
14
|
+
<%= form.text_area :listing_description, placeholder: "Script Description", class: "form-control" %>
|
15
|
+
</div>
|
16
|
+
<div class="form-group field_with_errors">
|
17
|
+
<%= form.label :listing_script_source, "Script Source Code" %>
|
18
|
+
<%= form.text_field :listing_script_source, placeholder: "Script Source", class: "form-control" %>
|
19
|
+
</div>
|
20
|
+
<div class="form-group field_with_errors">
|
21
|
+
<%= form.label :listing_script_website, "Script Website" %>
|
22
|
+
<%= form.text_field :listing_script_website, placeholder: "Script Website", class: "form-control" %>
|
23
|
+
</div>
|
24
|
+
<div class="form-group field_with_errors">
|
25
|
+
<%= form.label :listing_script_repo, "Script Public Repo" %>
|
26
|
+
<%= form.text_field :listing_script_repo, placeholder: "Script Github Address", class: "form-control" %>
|
27
|
+
</div>
|
28
|
+
<div class="form-group field_with_errors">
|
29
|
+
<%= form.label :listing_script_initial_release, "Initial Release" %>
|
30
|
+
<%= form.date_select :listing_script_initial_release, start_year: 1981, class: "form-control" %>
|
31
|
+
</div>
|
32
|
+
<div class="form-group field_with_errors">
|
33
|
+
<%= form.label :listing_script_lastest_release, "Latest Release" %>
|
34
|
+
<%= form.date_select :listing_script_lastest_release, start_year: 1981, class: "form-control" %>
|
35
|
+
</div>
|
36
|
+
<div class="form-group field_with_errors">
|
37
|
+
<%= form.label :listing_script_beta_release, "Preview Release" %>
|
38
|
+
<%= form.date_select :listing_script_beta_release, start_year: 1981, class: "form-control" %>
|
39
|
+
</div>
|
40
|
+
<div class="form-group field_with_errors">
|
41
|
+
<%= form.label :listing_script_lastest_release_cdn, "Script CDN Release" %>
|
42
|
+
<%= form.date_select :listing_script_lastest_release_cdn, start_year: 1981, class: "form-control" %>
|
43
|
+
</div>
|
44
|
+
<div class="form-group field_with_errorss">
|
45
|
+
</div>
|
46
|
+
<div class="form-group field_with_errorss">
|
47
|
+
<label>Script Author</label>
|
48
|
+
<%= collection_select(:script_listing, :author_id, PhcdevworksScripts::Script::Author.order('author_first_name'), :id, :author_first_name, {}, {class: "form-control"}) %>
|
49
|
+
</div>
|
50
|
+
<div class="form-group field_with_errors">
|
51
|
+
<%= form.label :listing_script_status, "Script Status" %>
|
52
|
+
<%= form.select( :listing_script_status, [['Active','Active'],['Outdated','Out Dated'],['Deactivated','Not Active']], {}, {class: "form-control"}) %>
|
53
|
+
</div>
|
54
|
+
<!-- Form Input Fields -->
|
55
|
+
|
56
|
+
<!-- Form Submition Button -->
|
57
|
+
<div class="actions">
|
58
|
+
<%= form.submit class: "btn btn-primary" %>
|
59
|
+
</div>
|
60
|
+
<!-- For Submition Button -->
|
61
|
+
|
62
|
+
<% end %>
|