phcscriptcdn 7.0.1 → 7.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/MIT-LICENSE +20 -20
- data/README.md +43 -43
- data/Rakefile +33 -33
- data/app/assets/config/phcscriptcdn_manifest.js +2 -2
- data/app/assets/javascripts/phcscriptcdn/application.js +2 -2
- data/app/assets/stylesheets/phcscriptcdn/application.scss +2 -2
- data/app/controllers/phcscriptcdn/application_controller.rb +12 -12
- data/app/controllers/phcscriptcdn/script/authors_controller.rb +65 -65
- data/app/controllers/phcscriptcdn/script/extensions_controller.rb +65 -65
- data/app/controllers/phcscriptcdn/script/licences_controller.rb +65 -65
- data/app/controllers/phcscriptcdn/script/listings_controller.rb +65 -65
- data/app/controllers/phcscriptcdn/script/urls_controller.rb +74 -74
- data/app/controllers/phcscriptcdn/script/versions_controller.rb +65 -65
- data/app/helpers/phcscriptcdn/application_helper.rb +14 -14
- data/app/jobs/phcscriptcdn/application_job.rb +4 -4
- data/app/models/phcscriptcdn/application_record.rb +4 -4
- data/app/models/phcscriptcdn/script.rb +6 -6
- data/app/models/phcscriptcdn/script/author.rb +20 -20
- data/app/models/phcscriptcdn/script/extension.rb +24 -24
- data/app/models/phcscriptcdn/script/licence.rb +23 -23
- data/app/models/phcscriptcdn/script/listing.rb +32 -32
- data/app/models/phcscriptcdn/script/url.rb +26 -26
- data/app/models/phcscriptcdn/script/version.rb +20 -20
- data/app/views/layouts/phcscriptcdn/application.html.erb +56 -56
- data/app/views/layouts/phcscriptcdn/components/backend/footer/_footer.html.erb +4 -4
- data/app/views/layouts/phcscriptcdn/components/backend/navigation/_navigation.html.erb +56 -56
- data/app/views/layouts/phcscriptcdn/components/backend/topbar/_topbar.html.erb +5 -5
- data/app/views/layouts/phcscriptcdn/frontend.html.erb +22 -22
- data/app/views/phcscriptcdn/script/authors/_form.html.erb +36 -36
- data/app/views/phcscriptcdn/script/authors/edit.html.erb +39 -39
- data/app/views/phcscriptcdn/script/authors/index.html.erb +67 -67
- data/app/views/phcscriptcdn/script/authors/new.html.erb +39 -39
- data/app/views/phcscriptcdn/script/authors/show.html.erb +42 -42
- data/app/views/phcscriptcdn/script/extensions/_form.html.erb +28 -28
- data/app/views/phcscriptcdn/script/extensions/edit.html.erb +39 -39
- data/app/views/phcscriptcdn/script/extensions/index.html.erb +61 -61
- data/app/views/phcscriptcdn/script/extensions/new.html.erb +38 -38
- data/app/views/phcscriptcdn/script/extensions/show.html.erb +42 -42
- data/app/views/phcscriptcdn/script/licences/_form.html.erb +47 -47
- data/app/views/phcscriptcdn/script/licences/edit.html.erb +39 -39
- data/app/views/phcscriptcdn/script/licences/index.html.erb +71 -71
- data/app/views/phcscriptcdn/script/licences/new.html.erb +39 -39
- data/app/views/phcscriptcdn/script/licences/show.html.erb +42 -42
- data/app/views/phcscriptcdn/script/listings/_form.html.erb +68 -68
- data/app/views/phcscriptcdn/script/listings/edit.html.erb +39 -39
- data/app/views/phcscriptcdn/script/listings/index.html.erb +65 -65
- data/app/views/phcscriptcdn/script/listings/new.html.erb +39 -39
- data/app/views/phcscriptcdn/script/listings/show.html.erb +40 -40
- data/app/views/phcscriptcdn/script/urls/_form.html.erb +36 -36
- data/app/views/phcscriptcdn/script/urls/edit.html.erb +39 -39
- data/app/views/phcscriptcdn/script/urls/index.html.erb +63 -63
- data/app/views/phcscriptcdn/script/urls/new.html.erb +39 -39
- data/app/views/phcscriptcdn/script/urls/show.html.erb +41 -41
- data/app/views/phcscriptcdn/script/versions/_form.html.erb +20 -20
- data/app/views/phcscriptcdn/script/versions/edit.html.erb +39 -39
- data/app/views/phcscriptcdn/script/versions/index.html.erb +59 -59
- data/app/views/phcscriptcdn/script/versions/new.html.erb +39 -39
- data/app/views/phcscriptcdn/script/versions/show.html.erb +42 -42
- data/config/initializers/friendly_id.rb +92 -92
- data/config/routes.rb +30 -30
- data/db/migrate/20160731205205_create_phcscriptcdn_script_extensions.rb +20 -20
- data/db/migrate/20160731205917_create_phcscriptcdn_script_listings.rb +35 -35
- data/db/migrate/20160731205954_create_phcscriptcdn_script_versions.rb +18 -18
- data/db/migrate/20160731210626_create_phcscriptcdn_script_urls.rb +24 -24
- data/db/migrate/20160731210723_create_phcscriptcdn_script_authors.rb +23 -23
- data/db/migrate/20160801032225_create_phcscriptcdn_script_licences.rb +27 -27
- data/db/migrate/20170423022446_create_friendly_id_slugs.rb +15 -15
- data/lib/phcscriptcdn.rb +4 -4
- data/lib/phcscriptcdn/engine.rb +68 -68
- data/lib/phcscriptcdn/version.rb +3 -3
- data/lib/tasks/phcscriptcdn_tasks.rake +4 -4
- metadata +19 -49
@@ -1,39 +1,39 @@
|
|
1
|
-
<!-- Title System -->
|
2
|
-
<% phc_title "Script Listings Manager" %>
|
3
|
-
<% phc_title_tagline "Add a New Author" %>
|
4
|
-
<% phc_breadcrumb_one link_to "Author Index", phcscriptcdn.script_authors_path %>
|
5
|
-
<% phc_breadcrumb_two yield(:phc_title_tagline) %>
|
6
|
-
<!-- Title System -->
|
7
|
-
|
8
|
-
<!-- Page Title Bar -->
|
9
|
-
<section class="content-header">
|
10
|
-
<!-- Page Title and BreadCrumb -->
|
11
|
-
<h1><%= yield(:phc_title) %> <small><%= yield(:phc_title_tagline) %></small></h1>
|
12
|
-
<ol class="breadcrumb">
|
13
|
-
<li><%= yield(:phc_breadcrumb_one) %></li>
|
14
|
-
<li class="active"><%= yield(:phc_breadcrumb_two) %></li>
|
15
|
-
</ol>
|
16
|
-
<!-- Page Title and BreadCrumb -->
|
17
|
-
</section>
|
18
|
-
<!-- Page Title Bar -->
|
19
|
-
|
20
|
-
<!-- Main Content -->
|
21
|
-
<section class="content">
|
22
|
-
<div class="row">
|
23
|
-
<div class="col-lg-12">
|
24
|
-
<div class="box">
|
25
|
-
<div class="box-header with-border">
|
26
|
-
<h3 class="box-title"><%= yield(:phc_title) %></h3>
|
27
|
-
</div>
|
28
|
-
<div class="box-body">
|
29
|
-
|
30
|
-
<!-- Page Form (New) -->
|
31
|
-
<%= render 'form', script_author: @script_author %>
|
32
|
-
<!-- Page Form (New) -->
|
33
|
-
|
34
|
-
</div>
|
35
|
-
</div>
|
36
|
-
</div>
|
37
|
-
</div>
|
38
|
-
</section>
|
39
|
-
<!-- Main Content -->
|
1
|
+
<!-- Title System -->
|
2
|
+
<% phc_title "Script Listings Manager" %>
|
3
|
+
<% phc_title_tagline "Add a New Author" %>
|
4
|
+
<% phc_breadcrumb_one link_to "Author Index", phcscriptcdn.script_authors_path %>
|
5
|
+
<% phc_breadcrumb_two yield(:phc_title_tagline) %>
|
6
|
+
<!-- Title System -->
|
7
|
+
|
8
|
+
<!-- Page Title Bar -->
|
9
|
+
<section class="content-header">
|
10
|
+
<!-- Page Title and BreadCrumb -->
|
11
|
+
<h1><%= yield(:phc_title) %> <small><%= yield(:phc_title_tagline) %></small></h1>
|
12
|
+
<ol class="breadcrumb">
|
13
|
+
<li><%= yield(:phc_breadcrumb_one) %></li>
|
14
|
+
<li class="active"><%= yield(:phc_breadcrumb_two) %></li>
|
15
|
+
</ol>
|
16
|
+
<!-- Page Title and BreadCrumb -->
|
17
|
+
</section>
|
18
|
+
<!-- Page Title Bar -->
|
19
|
+
|
20
|
+
<!-- Main Content -->
|
21
|
+
<section class="content">
|
22
|
+
<div class="row">
|
23
|
+
<div class="col-lg-12">
|
24
|
+
<div class="box">
|
25
|
+
<div class="box-header with-border">
|
26
|
+
<h3 class="box-title"><%= yield(:phc_title) %></h3>
|
27
|
+
</div>
|
28
|
+
<div class="box-body">
|
29
|
+
|
30
|
+
<!-- Page Form (New) -->
|
31
|
+
<%= render 'form', script_author: @script_author %>
|
32
|
+
<!-- Page Form (New) -->
|
33
|
+
|
34
|
+
</div>
|
35
|
+
</div>
|
36
|
+
</div>
|
37
|
+
</div>
|
38
|
+
</section>
|
39
|
+
<!-- Main Content -->
|
@@ -1,42 +1,42 @@
|
|
1
|
-
<!-- Title System -->
|
2
|
-
<% phc_title "Script Listings Manager" %>
|
3
|
-
<% phc_title_tagline "Script Author Profile" %>
|
4
|
-
<% phc_breadcrumb_one link_to "Author Index", phcscriptcdn.script_authors_path %>
|
5
|
-
<% phc_breadcrumb_two yield(:phc_title_tagline) %>
|
6
|
-
<!-- Title System -->
|
7
|
-
|
8
|
-
<!-- Page Title Bar -->
|
9
|
-
<section class="content-header">
|
10
|
-
<!-- Page Title and BreadCrumb -->
|
11
|
-
<h1><%= yield(:phc_title) %> <small><%= yield(:phc_title_tagline) %></small></h1>
|
12
|
-
<ol class="breadcrumb">
|
13
|
-
<li><%= yield(:phc_breadcrumb_one) %></li>
|
14
|
-
<li class="active"><%= yield(:phc_breadcrumb_two) %></li>
|
15
|
-
</ol>
|
16
|
-
<!-- Page Title and BreadCrumb -->
|
17
|
-
</section>
|
18
|
-
<!-- Page Title Bar -->
|
19
|
-
|
20
|
-
<!-- Main Content -->
|
21
|
-
<section class="content">
|
22
|
-
<div class="row">
|
23
|
-
<div class="col-lg-12">
|
24
|
-
<div class="box">
|
25
|
-
<div class="box-header with-border">
|
26
|
-
<h3 class="box-title"><%= yield(:phc_title) %></h3>
|
27
|
-
</div>
|
28
|
-
<div class="box-body">
|
29
|
-
|
30
|
-
<!-- Show Content -->
|
31
|
-
<div class="btn-group" role="group" aria-label="author_button_group">
|
32
|
-
<%= link_to 'Edit', edit_script_author_path(@script_author), class: "btn btn-primary" %>
|
33
|
-
<%= link_to 'Destroy', script_author_path(@script_author), method: :delete, data: { confirm: 'Are you sure?' }, class: "btn btn-primary" %>
|
34
|
-
</div>
|
35
|
-
<!-- Show Content -->
|
36
|
-
|
37
|
-
</div>
|
38
|
-
</div>
|
39
|
-
</div>
|
40
|
-
</div>
|
41
|
-
</section>
|
42
|
-
<!-- Main Content -->
|
1
|
+
<!-- Title System -->
|
2
|
+
<% phc_title "Script Listings Manager" %>
|
3
|
+
<% phc_title_tagline "Script Author Profile" %>
|
4
|
+
<% phc_breadcrumb_one link_to "Author Index", phcscriptcdn.script_authors_path %>
|
5
|
+
<% phc_breadcrumb_two yield(:phc_title_tagline) %>
|
6
|
+
<!-- Title System -->
|
7
|
+
|
8
|
+
<!-- Page Title Bar -->
|
9
|
+
<section class="content-header">
|
10
|
+
<!-- Page Title and BreadCrumb -->
|
11
|
+
<h1><%= yield(:phc_title) %> <small><%= yield(:phc_title_tagline) %></small></h1>
|
12
|
+
<ol class="breadcrumb">
|
13
|
+
<li><%= yield(:phc_breadcrumb_one) %></li>
|
14
|
+
<li class="active"><%= yield(:phc_breadcrumb_two) %></li>
|
15
|
+
</ol>
|
16
|
+
<!-- Page Title and BreadCrumb -->
|
17
|
+
</section>
|
18
|
+
<!-- Page Title Bar -->
|
19
|
+
|
20
|
+
<!-- Main Content -->
|
21
|
+
<section class="content">
|
22
|
+
<div class="row">
|
23
|
+
<div class="col-lg-12">
|
24
|
+
<div class="box">
|
25
|
+
<div class="box-header with-border">
|
26
|
+
<h3 class="box-title"><%= yield(:phc_title) %></h3>
|
27
|
+
</div>
|
28
|
+
<div class="box-body">
|
29
|
+
|
30
|
+
<!-- Show Content -->
|
31
|
+
<div class="btn-group" role="group" aria-label="author_button_group">
|
32
|
+
<%= link_to 'Edit', edit_script_author_path(@script_author), class: "btn btn-primary" %>
|
33
|
+
<%= link_to 'Destroy', script_author_path(@script_author), method: :delete, data: { confirm: 'Are you sure?' }, class: "btn btn-primary" %>
|
34
|
+
</div>
|
35
|
+
<!-- Show Content -->
|
36
|
+
|
37
|
+
</div>
|
38
|
+
</div>
|
39
|
+
</div>
|
40
|
+
</div>
|
41
|
+
</section>
|
42
|
+
<!-- Main Content -->
|
@@ -1,28 +1,28 @@
|
|
1
|
-
<%= form_for(script_extension) do |f| %>
|
2
|
-
|
3
|
-
<!-- PHC-Notifi Render Validation -->
|
4
|
-
<%= render 'phcnotifi/validations', :object => @script_extension %>
|
5
|
-
<!-- PHC-Notifi Render Validation -->
|
6
|
-
|
7
|
-
<!-- Form Fields -->
|
8
|
-
<div class="form-group field_with_error">
|
9
|
-
<%= f.label :scriptextensionname, "Extension Name" %>
|
10
|
-
<%= f.text_field :scriptextensionname, placeholder: "Extension Name", class: "form-control" %>
|
11
|
-
</div>
|
12
|
-
<div class="form-group field_with_error">
|
13
|
-
<%= f.label :scriptextensiondes, "Extension Description" %>
|
14
|
-
<%= f.text_area :scriptextensiondes, placeholder: "Extension Description", class: "form-control" %>
|
15
|
-
</div>
|
16
|
-
<div class="form-group field_with_error">
|
17
|
-
<%= f.label :scriptextension, "Script Extension" %>
|
18
|
-
<%= f.text_field :scriptextension, placeholder: "Script Extension (.js/.css)", class: "form-control" %>
|
19
|
-
</div>
|
20
|
-
<!-- Form Fields -->
|
21
|
-
|
22
|
-
<!-- Form Button -->
|
23
|
-
<div class="actions">
|
24
|
-
<%= f.submit class: "btn btn-primary" %>
|
25
|
-
</div>
|
26
|
-
<!-- Form Button -->
|
27
|
-
|
28
|
-
<% end %>
|
1
|
+
<%= form_for(script_extension) do |f| %>
|
2
|
+
|
3
|
+
<!-- PHC-Notifi Render Validation -->
|
4
|
+
<%= render 'phcnotifi/validations', :object => @script_extension %>
|
5
|
+
<!-- PHC-Notifi Render Validation -->
|
6
|
+
|
7
|
+
<!-- Form Fields -->
|
8
|
+
<div class="form-group field_with_error">
|
9
|
+
<%= f.label :scriptextensionname, "Extension Name" %>
|
10
|
+
<%= f.text_field :scriptextensionname, placeholder: "Extension Name", class: "form-control" %>
|
11
|
+
</div>
|
12
|
+
<div class="form-group field_with_error">
|
13
|
+
<%= f.label :scriptextensiondes, "Extension Description" %>
|
14
|
+
<%= f.text_area :scriptextensiondes, placeholder: "Extension Description", class: "form-control" %>
|
15
|
+
</div>
|
16
|
+
<div class="form-group field_with_error">
|
17
|
+
<%= f.label :scriptextension, "Script Extension" %>
|
18
|
+
<%= f.text_field :scriptextension, placeholder: "Script Extension (.js/.css)", class: "form-control" %>
|
19
|
+
</div>
|
20
|
+
<!-- Form Fields -->
|
21
|
+
|
22
|
+
<!-- Form Button -->
|
23
|
+
<div class="actions">
|
24
|
+
<%= f.submit class: "btn btn-primary" %>
|
25
|
+
</div>
|
26
|
+
<!-- Form Button -->
|
27
|
+
|
28
|
+
<% end %>
|
@@ -1,39 +1,39 @@
|
|
1
|
-
<!-- Title System -->
|
2
|
-
<% phc_title "Script Listings Manager" %>
|
3
|
-
<% phc_title_tagline "Update Script Extension" %>
|
4
|
-
<% phc_breadcrumb_one link_to "Script Extension Index", phcscriptcdn.script_extensions_path %>
|
5
|
-
<% phc_breadcrumb_two yield(:phc_title_tagline) %>
|
6
|
-
<!-- Title System -->
|
7
|
-
|
8
|
-
<!-- Page Title Bar -->
|
9
|
-
<section class="content-header">
|
10
|
-
<!-- Page Title and BreadCrumb -->
|
11
|
-
<h1><%= yield(:phc_title) %> <small><%= yield(:phc_title_tagline) %></small></h1>
|
12
|
-
<ol class="breadcrumb">
|
13
|
-
<li><%= yield(:phc_breadcrumb_one) %></li>
|
14
|
-
<li class="active"><%= yield(:phc_breadcrumb_two) %></li>
|
15
|
-
</ol>
|
16
|
-
<!-- Page Title and BreadCrumb -->
|
17
|
-
</section>
|
18
|
-
<!-- Page Title Bar -->
|
19
|
-
|
20
|
-
<!-- Main Content -->
|
21
|
-
<section class="content">
|
22
|
-
<div class="row">
|
23
|
-
<div class="col-lg-12">
|
24
|
-
<div class="box">
|
25
|
-
<div class="box-header with-border">
|
26
|
-
<h3 class="box-title"><%= yield(:phc_title) %></h3>
|
27
|
-
</div>
|
28
|
-
<div class="box-body">
|
29
|
-
|
30
|
-
<!-- Page Form (Edit) -->
|
31
|
-
<%= render 'form', script_extension: @script_extension %>
|
32
|
-
<!-- Page Form (Edit) -->
|
33
|
-
|
34
|
-
</div>
|
35
|
-
</div>
|
36
|
-
</div>
|
37
|
-
</div>
|
38
|
-
</section>
|
39
|
-
<!-- Main Content -->
|
1
|
+
<!-- Title System -->
|
2
|
+
<% phc_title "Script Listings Manager" %>
|
3
|
+
<% phc_title_tagline "Update Script Extension" %>
|
4
|
+
<% phc_breadcrumb_one link_to "Script Extension Index", phcscriptcdn.script_extensions_path %>
|
5
|
+
<% phc_breadcrumb_two yield(:phc_title_tagline) %>
|
6
|
+
<!-- Title System -->
|
7
|
+
|
8
|
+
<!-- Page Title Bar -->
|
9
|
+
<section class="content-header">
|
10
|
+
<!-- Page Title and BreadCrumb -->
|
11
|
+
<h1><%= yield(:phc_title) %> <small><%= yield(:phc_title_tagline) %></small></h1>
|
12
|
+
<ol class="breadcrumb">
|
13
|
+
<li><%= yield(:phc_breadcrumb_one) %></li>
|
14
|
+
<li class="active"><%= yield(:phc_breadcrumb_two) %></li>
|
15
|
+
</ol>
|
16
|
+
<!-- Page Title and BreadCrumb -->
|
17
|
+
</section>
|
18
|
+
<!-- Page Title Bar -->
|
19
|
+
|
20
|
+
<!-- Main Content -->
|
21
|
+
<section class="content">
|
22
|
+
<div class="row">
|
23
|
+
<div class="col-lg-12">
|
24
|
+
<div class="box">
|
25
|
+
<div class="box-header with-border">
|
26
|
+
<h3 class="box-title"><%= yield(:phc_title) %></h3>
|
27
|
+
</div>
|
28
|
+
<div class="box-body">
|
29
|
+
|
30
|
+
<!-- Page Form (Edit) -->
|
31
|
+
<%= render 'form', script_extension: @script_extension %>
|
32
|
+
<!-- Page Form (Edit) -->
|
33
|
+
|
34
|
+
</div>
|
35
|
+
</div>
|
36
|
+
</div>
|
37
|
+
</div>
|
38
|
+
</section>
|
39
|
+
<!-- Main Content -->
|
@@ -1,61 +1,61 @@
|
|
1
|
-
<!-- Title System -->
|
2
|
-
<% phc_title "Script Listings Manager" %>
|
3
|
-
<% phc_title_tagline "Script Extension Index" %>
|
4
|
-
<% phc_breadcrumb_one yield(:phc_title_tagline) %>
|
5
|
-
<!-- Title System -->
|
6
|
-
|
7
|
-
<!-- Page Title Bar -->
|
8
|
-
<section class="content-header">
|
9
|
-
<!-- Page Title and BreadCrumb -->
|
10
|
-
<h1><%= yield(:phc_title) %> <small><%= yield(:phc_title_tagline) %></small></h1>
|
11
|
-
<ol class="breadcrumb">
|
12
|
-
<li><%= yield(:phc_breadcrumb_one) %></li>
|
13
|
-
<li class="active"><%= yield(:phc_breadcrumb_two) %></li>
|
14
|
-
</ol>
|
15
|
-
<!-- Page Title and BreadCrumb -->
|
16
|
-
</section>
|
17
|
-
<!-- Page Title Bar -->
|
18
|
-
|
19
|
-
<!-- Main Content -->
|
20
|
-
<section class="content">
|
21
|
-
<div class="row">
|
22
|
-
<div class="col-lg-12">
|
23
|
-
<div class="box">
|
24
|
-
<div class="box-header with-border">
|
25
|
-
<h3 class="box-title"><%= yield(:phc_title) %></h3>
|
26
|
-
</div>
|
27
|
-
<div class="box-body">
|
28
|
-
|
29
|
-
<!-- Index Table -->
|
30
|
-
<div class="table-responsive">
|
31
|
-
<table class="table table-bordered table-striped table-hover">
|
32
|
-
<thead>
|
33
|
-
<tr>
|
34
|
-
<th>Script Extension Name</th>
|
35
|
-
<th>Script Extension</th>
|
36
|
-
</tr>
|
37
|
-
</thead>
|
38
|
-
<tbody>
|
39
|
-
<% @script_extensions.each do |script_extension| %>
|
40
|
-
<tr>
|
41
|
-
<td><%= link_to script_extension.scriptextensionname, script_extension %></td>
|
42
|
-
<td><%= link_to script_extension.scriptextension, script_extension %></td>
|
43
|
-
</tr>
|
44
|
-
<% end %>
|
45
|
-
</tbody>
|
46
|
-
</table>
|
47
|
-
</div>
|
48
|
-
<!-- Index Table -->
|
49
|
-
|
50
|
-
<!-- Panel Footer -->
|
51
|
-
<div class="box-footer clearfix">
|
52
|
-
<%= link_to 'New Script Extension', new_script_extension_path, class: "btn btn-primary" %>
|
53
|
-
</div>
|
54
|
-
<!-- Panel Footer -->
|
55
|
-
|
56
|
-
</div>
|
57
|
-
</div>
|
58
|
-
</div>
|
59
|
-
</div>
|
60
|
-
</section>
|
61
|
-
<!-- Main Content -->
|
1
|
+
<!-- Title System -->
|
2
|
+
<% phc_title "Script Listings Manager" %>
|
3
|
+
<% phc_title_tagline "Script Extension Index" %>
|
4
|
+
<% phc_breadcrumb_one yield(:phc_title_tagline) %>
|
5
|
+
<!-- Title System -->
|
6
|
+
|
7
|
+
<!-- Page Title Bar -->
|
8
|
+
<section class="content-header">
|
9
|
+
<!-- Page Title and BreadCrumb -->
|
10
|
+
<h1><%= yield(:phc_title) %> <small><%= yield(:phc_title_tagline) %></small></h1>
|
11
|
+
<ol class="breadcrumb">
|
12
|
+
<li><%= yield(:phc_breadcrumb_one) %></li>
|
13
|
+
<li class="active"><%= yield(:phc_breadcrumb_two) %></li>
|
14
|
+
</ol>
|
15
|
+
<!-- Page Title and BreadCrumb -->
|
16
|
+
</section>
|
17
|
+
<!-- Page Title Bar -->
|
18
|
+
|
19
|
+
<!-- Main Content -->
|
20
|
+
<section class="content">
|
21
|
+
<div class="row">
|
22
|
+
<div class="col-lg-12">
|
23
|
+
<div class="box">
|
24
|
+
<div class="box-header with-border">
|
25
|
+
<h3 class="box-title"><%= yield(:phc_title) %></h3>
|
26
|
+
</div>
|
27
|
+
<div class="box-body">
|
28
|
+
|
29
|
+
<!-- Index Table -->
|
30
|
+
<div class="table-responsive">
|
31
|
+
<table class="table table-bordered table-striped table-hover">
|
32
|
+
<thead>
|
33
|
+
<tr>
|
34
|
+
<th>Script Extension Name</th>
|
35
|
+
<th>Script Extension</th>
|
36
|
+
</tr>
|
37
|
+
</thead>
|
38
|
+
<tbody>
|
39
|
+
<% @script_extensions.each do |script_extension| %>
|
40
|
+
<tr>
|
41
|
+
<td><%= link_to script_extension.scriptextensionname, script_extension %></td>
|
42
|
+
<td><%= link_to script_extension.scriptextension, script_extension %></td>
|
43
|
+
</tr>
|
44
|
+
<% end %>
|
45
|
+
</tbody>
|
46
|
+
</table>
|
47
|
+
</div>
|
48
|
+
<!-- Index Table -->
|
49
|
+
|
50
|
+
<!-- Panel Footer -->
|
51
|
+
<div class="box-footer clearfix">
|
52
|
+
<%= link_to 'New Script Extension', new_script_extension_path, class: "btn btn-primary" %>
|
53
|
+
</div>
|
54
|
+
<!-- Panel Footer -->
|
55
|
+
|
56
|
+
</div>
|
57
|
+
</div>
|
58
|
+
</div>
|
59
|
+
</div>
|
60
|
+
</section>
|
61
|
+
<!-- Main Content -->
|
@@ -1,38 +1,38 @@
|
|
1
|
-
<!-- Title System -->
|
2
|
-
<% phc_title "Script Listings Manager" %>
|
3
|
-
<% phc_title_tagline "Add a Script Extension" %>
|
4
|
-
<% phc_breadcrumb_one link_to "Script Extension Index", phcscriptcdn.script_extensions_path %>
|
5
|
-
<% phc_breadcrumb_two yield(:phc_title_tagline) %>
|
6
|
-
<!-- Title System -->
|
7
|
-
|
8
|
-
<!-- Page Title Bar -->
|
9
|
-
<section class="content-header">
|
10
|
-
<!-- Page Title and BreadCrumb -->
|
11
|
-
<h1><%= yield(:phc_title) %> <small><%= yield(:phc_title_tagline) %></small></h1>
|
12
|
-
<ol class="breadcrumb">
|
13
|
-
<li><%= yield(:phc_breadcrumb_one) %></li>
|
14
|
-
<li class="active"><%= yield(:phc_breadcrumb_two) %></li>
|
15
|
-
</ol>
|
16
|
-
<!-- Page Title and BreadCrumb -->
|
17
|
-
</section>
|
18
|
-
<!-- Page Title Bar -->
|
19
|
-
|
20
|
-
<!-- Main Content -->
|
21
|
-
<section class="content">
|
22
|
-
<div class="row">
|
23
|
-
<div class="col-lg-12">
|
24
|
-
<div class="box">
|
25
|
-
<div class="box-header with-border">
|
26
|
-
<h3 class="box-title"><%= yield(:phc_title) %></h3>
|
27
|
-
</div>
|
28
|
-
<div class="box-body">
|
29
|
-
|
30
|
-
<!-- Form Requries URL to Function Properly -->
|
31
|
-
<%= render 'form', script_extension: @script_extension %>
|
32
|
-
|
33
|
-
</div>
|
34
|
-
</div>
|
35
|
-
</div>
|
36
|
-
</div>
|
37
|
-
</section>
|
38
|
-
<!-- Main Content -->
|
1
|
+
<!-- Title System -->
|
2
|
+
<% phc_title "Script Listings Manager" %>
|
3
|
+
<% phc_title_tagline "Add a Script Extension" %>
|
4
|
+
<% phc_breadcrumb_one link_to "Script Extension Index", phcscriptcdn.script_extensions_path %>
|
5
|
+
<% phc_breadcrumb_two yield(:phc_title_tagline) %>
|
6
|
+
<!-- Title System -->
|
7
|
+
|
8
|
+
<!-- Page Title Bar -->
|
9
|
+
<section class="content-header">
|
10
|
+
<!-- Page Title and BreadCrumb -->
|
11
|
+
<h1><%= yield(:phc_title) %> <small><%= yield(:phc_title_tagline) %></small></h1>
|
12
|
+
<ol class="breadcrumb">
|
13
|
+
<li><%= yield(:phc_breadcrumb_one) %></li>
|
14
|
+
<li class="active"><%= yield(:phc_breadcrumb_two) %></li>
|
15
|
+
</ol>
|
16
|
+
<!-- Page Title and BreadCrumb -->
|
17
|
+
</section>
|
18
|
+
<!-- Page Title Bar -->
|
19
|
+
|
20
|
+
<!-- Main Content -->
|
21
|
+
<section class="content">
|
22
|
+
<div class="row">
|
23
|
+
<div class="col-lg-12">
|
24
|
+
<div class="box">
|
25
|
+
<div class="box-header with-border">
|
26
|
+
<h3 class="box-title"><%= yield(:phc_title) %></h3>
|
27
|
+
</div>
|
28
|
+
<div class="box-body">
|
29
|
+
|
30
|
+
<!-- Form Requries URL to Function Properly -->
|
31
|
+
<%= render 'form', script_extension: @script_extension %>
|
32
|
+
|
33
|
+
</div>
|
34
|
+
</div>
|
35
|
+
</div>
|
36
|
+
</div>
|
37
|
+
</section>
|
38
|
+
<!-- Main Content -->
|