phcscriptcdnpro 2.1.0 → 3.0.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/phcscriptcdnpro/application.js +2 -5
- data/app/assets/stylesheets/phcscriptcdnpro/application.scss +15 -20
- data/app/controllers/phcscriptcdnpro/application_controller.rb +1 -19
- data/app/controllers/phcscriptcdnpro/script/authors_controller.rb +74 -0
- data/app/controllers/phcscriptcdnpro/script/extensions_controller.rb +65 -0
- data/app/controllers/phcscriptcdnpro/script/licences_controller.rb +65 -0
- data/app/controllers/phcscriptcdnpro/script/listings_controller.rb +65 -0
- data/app/controllers/phcscriptcdnpro/script/urls_controller.rb +74 -0
- data/app/controllers/phcscriptcdnpro/script/versions_controller.rb +65 -0
- data/app/models/phcscriptcdnpro/application_record.rb +2 -0
- data/app/models/phcscriptcdnpro/{scriptcdn.rb → script.rb} +4 -2
- data/app/models/phcscriptcdnpro/script/author.rb +10 -0
- data/app/models/phcscriptcdnpro/script/extension.rb +8 -0
- data/app/models/phcscriptcdnpro/script/licence.rb +4 -0
- data/app/models/phcscriptcdnpro/script/listing.rb +17 -0
- data/app/models/phcscriptcdnpro/script/url.rb +16 -0
- data/app/models/phcscriptcdnpro/script/version.rb +13 -0
- data/app/views/phcscriptcdnpro/{scriptcdn → script}/authors/_form.html.erb +14 -11
- data/app/views/phcscriptcdnpro/script/authors/edit.html.erb +32 -0
- data/app/views/phcscriptcdnpro/script/authors/index.html.erb +55 -0
- data/app/views/phcscriptcdnpro/script/authors/new.html.erb +32 -0
- data/app/views/phcscriptcdnpro/script/authors/show.html.erb +4 -0
- data/app/views/phcscriptcdnpro/script/extensions/_form.html.erb +22 -0
- data/app/views/phcscriptcdnpro/script/extensions/edit.html.erb +32 -0
- data/app/views/phcscriptcdnpro/script/extensions/index.html.erb +49 -0
- data/app/views/phcscriptcdnpro/script/extensions/new.html.erb +32 -0
- data/app/views/phcscriptcdnpro/script/extensions/show.html.erb +4 -0
- data/app/views/phcscriptcdnpro/script/licences/_form.html.erb +42 -0
- data/app/views/phcscriptcdnpro/script/licences/edit.html.erb +32 -0
- data/app/views/phcscriptcdnpro/script/licences/index.html.erb +59 -0
- data/app/views/phcscriptcdnpro/script/licences/new.html.erb +32 -0
- data/app/views/phcscriptcdnpro/script/licences/show.html.erb +4 -0
- data/app/views/phcscriptcdnpro/{scriptcdn/informations → script/listings}/_form.html.erb +20 -10
- data/app/views/phcscriptcdnpro/script/listings/edit.html.erb +31 -0
- data/app/views/phcscriptcdnpro/script/listings/index.html.erb +54 -0
- data/app/views/phcscriptcdnpro/script/listings/new.html.erb +31 -0
- data/app/views/phcscriptcdnpro/script/listings/show.html.erb +27 -0
- data/app/views/phcscriptcdnpro/script/urls/_form.html.erb +32 -0
- data/app/views/phcscriptcdnpro/script/urls/edit.html.erb +32 -0
- data/app/views/phcscriptcdnpro/script/urls/index.html.erb +51 -0
- data/app/views/phcscriptcdnpro/script/urls/new.html.erb +32 -0
- data/app/views/phcscriptcdnpro/script/urls/show.html.erb +4 -0
- data/app/views/phcscriptcdnpro/script/versions/_form.html.erb +12 -0
- data/app/views/phcscriptcdnpro/script/versions/edit.html.erb +32 -0
- data/app/views/phcscriptcdnpro/script/versions/index.html.erb +47 -0
- data/app/views/phcscriptcdnpro/script/versions/new.html.erb +32 -0
- data/app/views/phcscriptcdnpro/script/versions/show.html.erb +4 -0
- data/config/routes.rb +14 -16
- data/db/migrate/{20160704185337_create_phcscriptcdnpro_scriptcdn_information.rb → 20160821183652_create_phcscriptcdnpro_script_listings.rb} +14 -8
- data/db/migrate/{20160704185254_create_phcscriptcdnpro_scriptcdn_authors.rb → 20160821183714_create_phcscriptcdnpro_script_authors.rb} +6 -6
- data/db/migrate/20160821183735_create_phcscriptcdnpro_script_extensions.rb +19 -0
- data/db/migrate/20160821183805_create_phcscriptcdnpro_script_licences.rb +25 -0
- data/db/migrate/20160821183830_create_phcscriptcdnpro_script_urls.rb +23 -0
- data/db/migrate/20160821183946_create_phcscriptcdnpro_script_versions.rb +17 -0
- data/lib/phcscriptcdnpro/engine.rb +2 -0
- data/lib/phcscriptcdnpro/version.rb +1 -1
- metadata +73 -84
- data/app/assets/javascripts/phcscriptcdnpro/api/mains.js +0 -2
- data/app/assets/javascripts/phcscriptcdnpro/cdnsite/cdnpages.js +0 -2
- data/app/assets/javascripts/phcscriptcdnpro/scriptcdn/authors.js +0 -2
- data/app/assets/javascripts/phcscriptcdnpro/scriptcdn/information.js +0 -2
- data/app/assets/javascripts/phcscriptcdnpro/scriptcdn/mains.js +0 -2
- data/app/assets/javascripts/phcscriptcdnpro/scriptcdn/urls.js +0 -2
- data/app/assets/javascripts/phcscriptcdnpro/scriptcdn/versions.js +0 -2
- data/app/assets/stylesheets/phcscriptcdnpro/api/mains.scss +0 -3
- data/app/assets/stylesheets/phcscriptcdnpro/cdnsite/cdnpages.scss +0 -3
- data/app/assets/stylesheets/phcscriptcdnpro/custom.scss +0 -0
- data/app/assets/stylesheets/phcscriptcdnpro/scriptcdn/authors.scss +0 -3
- data/app/assets/stylesheets/phcscriptcdnpro/scriptcdn/information.scss +0 -3
- data/app/assets/stylesheets/phcscriptcdnpro/scriptcdn/mains.scss +0 -3
- data/app/assets/stylesheets/phcscriptcdnpro/scriptcdn/urls.scss +0 -3
- data/app/assets/stylesheets/phcscriptcdnpro/scriptcdn/versions.scss +0 -3
- data/app/assets/stylesheets/scaffolds.scss +0 -89
- data/app/controllers/phcscriptcdnpro/api/mains_controller.rb +0 -17
- data/app/controllers/phcscriptcdnpro/scriptcdn/authors_controller.rb +0 -70
- data/app/controllers/phcscriptcdnpro/scriptcdn/informations_controller.rb +0 -70
- data/app/controllers/phcscriptcdnpro/scriptcdn/mains_controller.rb +0 -63
- data/app/controllers/phcscriptcdnpro/scriptcdn/urls_controller.rb +0 -70
- data/app/controllers/phcscriptcdnpro/scriptcdn/versions_controller.rb +0 -70
- data/app/helpers/phcscriptcdnpro/api/mains_helper.rb +0 -4
- data/app/helpers/phcscriptcdnpro/cdnsite/cdnpages_helper.rb +0 -4
- data/app/helpers/phcscriptcdnpro/scriptcdn/authors_helper.rb +0 -4
- data/app/helpers/phcscriptcdnpro/scriptcdn/information_helper.rb +0 -4
- data/app/helpers/phcscriptcdnpro/scriptcdn/mains_helper.rb +0 -4
- data/app/helpers/phcscriptcdnpro/scriptcdn/urls_helper.rb +0 -4
- data/app/helpers/phcscriptcdnpro/scriptcdn/versions_helper.rb +0 -4
- data/app/models/phcscriptcdnpro/scriptcdn/author.rb +0 -8
- data/app/models/phcscriptcdnpro/scriptcdn/information.rb +0 -8
- data/app/models/phcscriptcdnpro/scriptcdn/main.rb +0 -11
- data/app/models/phcscriptcdnpro/scriptcdn/url.rb +0 -8
- data/app/models/phcscriptcdnpro/scriptcdn/version.rb +0 -8
- data/app/views/phcscriptcdnpro/api/mains/index.json.rabl +0 -18
- data/app/views/phcscriptcdnpro/api/mains/show.json.rabl +0 -18
- data/app/views/phcscriptcdnpro/scriptcdn/authors/_formpatch.html.erb +0 -29
- data/app/views/phcscriptcdnpro/scriptcdn/authors/edit.html.erb +0 -43
- data/app/views/phcscriptcdnpro/scriptcdn/authors/index.html.erb +0 -65
- data/app/views/phcscriptcdnpro/scriptcdn/authors/new.html.erb +0 -43
- data/app/views/phcscriptcdnpro/scriptcdn/informations/_formpatch.html.erb +0 -49
- data/app/views/phcscriptcdnpro/scriptcdn/informations/edit.html.erb +0 -43
- data/app/views/phcscriptcdnpro/scriptcdn/informations/index.html.erb +0 -69
- data/app/views/phcscriptcdnpro/scriptcdn/informations/new.html.erb +0 -43
- data/app/views/phcscriptcdnpro/scriptcdn/mains/_form.html.erb +0 -13
- data/app/views/phcscriptcdnpro/scriptcdn/mains/edit.html.erb +0 -42
- data/app/views/phcscriptcdnpro/scriptcdn/mains/index.html.erb +0 -61
- data/app/views/phcscriptcdnpro/scriptcdn/mains/new.html.erb +0 -42
- data/app/views/phcscriptcdnpro/scriptcdn/urls/_form.html.erb +0 -17
- data/app/views/phcscriptcdnpro/scriptcdn/urls/_formpatch.html.erb +0 -17
- data/app/views/phcscriptcdnpro/scriptcdn/urls/edit.html.erb +0 -43
- data/app/views/phcscriptcdnpro/scriptcdn/urls/index.html.erb +0 -62
- data/app/views/phcscriptcdnpro/scriptcdn/urls/new.html.erb +0 -43
- data/app/views/phcscriptcdnpro/scriptcdn/versions/_form.html.erb +0 -13
- data/app/views/phcscriptcdnpro/scriptcdn/versions/_formpatch.html.erb +0 -13
- data/app/views/phcscriptcdnpro/scriptcdn/versions/edit.html.erb +0 -43
- data/app/views/phcscriptcdnpro/scriptcdn/versions/index.html.erb +0 -63
- data/app/views/phcscriptcdnpro/scriptcdn/versions/new.html.erb +0 -43
- data/db/migrate/20160704185441_create_phcscriptcdnpro_scriptcdn_urls.rb +0 -19
- data/db/migrate/20160704185454_create_phcscriptcdnpro_scriptcdn_versions.rb +0 -17
- data/db/migrate/20160704190509_create_phcscriptcdnpro_scriptcdn_mains.rb +0 -17
@@ -0,0 +1,65 @@
|
|
1
|
+
require_dependency "phcscriptcdnpro/application_controller"
|
2
|
+
|
3
|
+
module Phcscriptcdnpro
|
4
|
+
class Script::VersionsController < ApplicationController
|
5
|
+
|
6
|
+
# Filters & Security
|
7
|
+
before_action :set_script_version, only: [:show, :edit, :update, :destroy]
|
8
|
+
|
9
|
+
# INDEX - Script Versions
|
10
|
+
def index
|
11
|
+
@script_versions = Script::Version.all
|
12
|
+
end
|
13
|
+
|
14
|
+
# DETAILS - Script Versions
|
15
|
+
def show
|
16
|
+
end
|
17
|
+
|
18
|
+
# NEW - Script Versions
|
19
|
+
def new
|
20
|
+
@script_version = Script::Version.new
|
21
|
+
end
|
22
|
+
|
23
|
+
# EDIT - Script Versions
|
24
|
+
def edit
|
25
|
+
end
|
26
|
+
|
27
|
+
# POST - Script Versions
|
28
|
+
def create
|
29
|
+
@script_version = Script::Version.new(script_version_params)
|
30
|
+
if @script_version.save
|
31
|
+
redirect_to script_versions_url, notice: 'Version was successfully created.'
|
32
|
+
else
|
33
|
+
render :new
|
34
|
+
end
|
35
|
+
end
|
36
|
+
|
37
|
+
# PATCH/PUT - Script Versions
|
38
|
+
def update
|
39
|
+
if @script_version.update(script_version_params)
|
40
|
+
redirect_to script_versions_url, notice: 'Version was successfully updated.'
|
41
|
+
else
|
42
|
+
render :edit
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
# DELETE - Script Versions
|
47
|
+
def destroy
|
48
|
+
@script_version.destroy
|
49
|
+
redirect_to script_versions_url, notice: 'Version was successfully destroyed.'
|
50
|
+
end
|
51
|
+
|
52
|
+
private
|
53
|
+
|
54
|
+
# Common Callbacks
|
55
|
+
def set_script_version
|
56
|
+
@script_version = Script::Version.find(params[:id])
|
57
|
+
end
|
58
|
+
|
59
|
+
# Only allow a trusted parameter "white list" through.
|
60
|
+
def script_version_params
|
61
|
+
params.require(:script_version).permit(:scriptversion)
|
62
|
+
end
|
63
|
+
|
64
|
+
end
|
65
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
module Phcscriptcdnpro
|
2
|
+
class Script::Listing < ApplicationRecord
|
3
|
+
|
4
|
+
# Relationships
|
5
|
+
|
6
|
+
#has_many :informations, class_name: 'Phcscriptcdn::Script::Version'
|
7
|
+
# URL Nested
|
8
|
+
has_many :urls, class_name: 'Phcscriptcdn::Script::Url'
|
9
|
+
|
10
|
+
# Author Nested
|
11
|
+
has_many :authors, class_name: 'Phcscriptcdn::Script::Author'
|
12
|
+
|
13
|
+
# Attach to Version
|
14
|
+
belongs_to :version, class_name: 'Phcscriptcdn::Script::Version'
|
15
|
+
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
module Phcscriptcdnpro
|
2
|
+
class Script::Url < ApplicationRecord
|
3
|
+
|
4
|
+
# Relationships
|
5
|
+
|
6
|
+
# Attach to Listings
|
7
|
+
belongs_to :listing, class_name: 'Phcscriptcdn::Script::Listing'
|
8
|
+
|
9
|
+
# Attach to Version
|
10
|
+
belongs_to :version, class_name: 'Phcscriptcdn::Script::Version'
|
11
|
+
|
12
|
+
# Attach to Extensions
|
13
|
+
belongs_to :extension, class_name: 'Phcscriptcdn::Script::Extension'
|
14
|
+
|
15
|
+
end
|
16
|
+
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
module Phcscriptcdnpro
|
2
|
+
class Script::Version < ApplicationRecord
|
3
|
+
|
4
|
+
#Relationships
|
5
|
+
|
6
|
+
# URL Un-Nested
|
7
|
+
has_many :urls, class_name: 'Phcscriptcdn::Script::Url'
|
8
|
+
|
9
|
+
# Listing Un-Nested
|
10
|
+
has_many :listings, class_name: 'Phcscriptcdn::Script::Listing'
|
11
|
+
|
12
|
+
end
|
13
|
+
end
|
@@ -1,29 +1,32 @@
|
|
1
|
-
<%= form_for([@
|
2
|
-
|
3
|
-
<%= render 'phcnotifi/validations', :object => @scriptcdn_author %>
|
1
|
+
<%= form_for([@script_author.listing, @script_author], url: form_url) do |f| %>
|
4
2
|
|
5
3
|
<div class="form-group field_with_error">
|
6
4
|
<%= f.label :authorfirstname, "Author First Name" %>
|
7
|
-
<%= f.text_field :authorfirstname, placeholder: "Author First Name", class: "form-control"
|
5
|
+
<%= f.text_field :authorfirstname, placeholder: "Author First Name", class: "form-control" %>
|
8
6
|
</div>
|
7
|
+
|
9
8
|
<div class="form-group field_with_error">
|
10
9
|
<%= f.label :authorlastname, "Author Last Name" %>
|
11
|
-
<%= f.text_field :authorlastname, placeholder: "Author Last Name", class: "form-control"
|
10
|
+
<%= f.text_field :authorlastname, placeholder: "Author Last Name", class: "form-control" %>
|
12
11
|
</div>
|
12
|
+
|
13
13
|
<div class="form-group field_with_error">
|
14
14
|
<%= f.label :authorwebsite, "Author Website" %>
|
15
|
-
<%= f.text_field :authorwebsite, placeholder: "Author Website", class: "form-control"
|
15
|
+
<%= f.text_field :authorwebsite, placeholder: "Author Website", class: "form-control" %>
|
16
16
|
</div>
|
17
|
+
|
17
18
|
<div class="form-group field_with_error">
|
18
|
-
<%= f.label :authorgithub, "Author Github" %>
|
19
|
-
<%= f.text_field :authorgithub, placeholder: "Author Github", class: "form-control"
|
19
|
+
<%= f.label :authorgithub, "Author Github Address" %>
|
20
|
+
<%= f.text_field :authorgithub, placeholder: "Author Github Address", class: "form-control" %>
|
20
21
|
</div>
|
22
|
+
|
21
23
|
<div class="form-group field_with_error">
|
22
|
-
<%= f.label :authortwitter, "Author Twitter" %>
|
23
|
-
<%= f.text_field :authortwitter, placeholder: "Author Twitter", class: "form-control"
|
24
|
+
<%= f.label :authortwitter, "Author Twitter Addresss" %>
|
25
|
+
<%= f.text_field :authortwitter, placeholder: "Author Twitter Addresss", class: "form-control" %>
|
24
26
|
</div>
|
27
|
+
|
25
28
|
<div class="actions">
|
26
|
-
<%= f.submit class: "btn
|
29
|
+
<%= f.submit class: "btn btn-primary" %>
|
27
30
|
</div>
|
28
31
|
|
29
32
|
<% end %>
|
@@ -0,0 +1,32 @@
|
|
1
|
+
<!-- Title System -->
|
2
|
+
<% phc_title "Script Extension" %>
|
3
|
+
<% phc_title_tagline "Update Script Extension" %>
|
4
|
+
|
5
|
+
<!-- Page Header -->
|
6
|
+
<div class="row">
|
7
|
+
<div class="col-lg-12">
|
8
|
+
|
9
|
+
<!-- Bread Crumbs -->
|
10
|
+
<ol class="breadcrumb">
|
11
|
+
<li><%= link_to "Script Listings Index", script_listings_path %></li>
|
12
|
+
<li><%= link_to "Author Index", script_listing_authors_path %></li>
|
13
|
+
<li class="active"><%= yield(:phc_title_tagline) %></li>
|
14
|
+
</ol>
|
15
|
+
|
16
|
+
<!-- Page Title -->
|
17
|
+
<h3 class="page-title">
|
18
|
+
<%= yield(:phc_title) %> </br>
|
19
|
+
<small><%= yield(:phc_title_tagline) %></small>
|
20
|
+
</h3>
|
21
|
+
|
22
|
+
</div>
|
23
|
+
</div>
|
24
|
+
|
25
|
+
<!-- Main Content -->
|
26
|
+
<div class="row">
|
27
|
+
<div class="col-lg-12">
|
28
|
+
|
29
|
+
<%= render 'form', { form_url: script_listing_author_path } %>
|
30
|
+
|
31
|
+
</div>
|
32
|
+
</div>
|
@@ -0,0 +1,55 @@
|
|
1
|
+
<!-- Title System -->
|
2
|
+
<% phc_title "Script Authors" %>
|
3
|
+
<% phc_title_tagline "Script Author Index" %>
|
4
|
+
|
5
|
+
<!-- Page Header -->
|
6
|
+
<div class="row">
|
7
|
+
<div class="col-lg-12">
|
8
|
+
|
9
|
+
<!-- Bread Crumbs -->
|
10
|
+
<ol class="breadcrumb">
|
11
|
+
<li><%= link_to "Script Author Index", script_listing_authors_path %></li>
|
12
|
+
<li class="active"><%= yield(:phc_title_tagline) %></li>
|
13
|
+
</ol>
|
14
|
+
|
15
|
+
<!-- Page Title -->
|
16
|
+
<h3 class="page-title">
|
17
|
+
<%= yield(:phc_title) %> </br>
|
18
|
+
<small><%= yield(:phc_title_tagline) %></small>
|
19
|
+
</h3>
|
20
|
+
|
21
|
+
</div>
|
22
|
+
</div>
|
23
|
+
|
24
|
+
<!-- Main Content -->
|
25
|
+
<div class="row">
|
26
|
+
<div class="col-lg-12">
|
27
|
+
|
28
|
+
<table class="table table-striped table-bordered table-advance table-hover">
|
29
|
+
<thead>
|
30
|
+
<tr>
|
31
|
+
<th>Author Firstname</th>
|
32
|
+
<th>Author Lastname</th>
|
33
|
+
<th>Author Website</th>
|
34
|
+
<th>Author Github</th>
|
35
|
+
<th>Author Twitter</th>
|
36
|
+
</tr>
|
37
|
+
</thead>
|
38
|
+
|
39
|
+
<tbody>
|
40
|
+
<% @script_authors.each do |script_author| %>
|
41
|
+
<tr>
|
42
|
+
<td><%= link_to script_author.authorfirstname, script_listing_author_path(script_author.listing, script_author) %></td>
|
43
|
+
<td><%= link_to script_author.authorlastname, script_listing_author_path(script_author.listing, script_author) %></td>
|
44
|
+
<td><%= link_to script_author.authorwebsite, script_listing_author_path(script_author.listing, script_author) %></td>
|
45
|
+
<td><%= link_to script_author.authorgithub, script_listing_author_path(script_author.listing, script_author) %></td>
|
46
|
+
<td><%= link_to script_author.authortwitter, script_listing_author_path(script_author.listing, script_author) %></td>
|
47
|
+
</tr>
|
48
|
+
<% end %>
|
49
|
+
</tbody>
|
50
|
+
</table>
|
51
|
+
|
52
|
+
<%= link_to 'New Script Author', new_script_listing_author_path, class: "btn btn-primary" %>
|
53
|
+
|
54
|
+
</div>
|
55
|
+
</div>
|
@@ -0,0 +1,32 @@
|
|
1
|
+
<!-- Title System -->
|
2
|
+
<% phc_title "Script Author" %>
|
3
|
+
<% phc_title_tagline "Create a New Script Author" %>
|
4
|
+
|
5
|
+
<!-- Page Header -->
|
6
|
+
<div class="row">
|
7
|
+
<div class="col-lg-12">
|
8
|
+
|
9
|
+
<!-- Bread Crumbs -->
|
10
|
+
<ol class="breadcrumb">
|
11
|
+
<li><%= link_to "Script Listings Index", script_listings_path %></li>
|
12
|
+
<li><%= link_to "Author Index", script_listing_authors_path %></li>
|
13
|
+
<li class="active"><%= yield(:phc_title_tagline) %></li>
|
14
|
+
</ol>
|
15
|
+
|
16
|
+
<!-- Page Title -->
|
17
|
+
<h3 class="page-title">
|
18
|
+
<%= yield(:phc_title) %> </br>
|
19
|
+
<small><%= yield(:phc_title_tagline) %></small>
|
20
|
+
</h3>
|
21
|
+
|
22
|
+
</div>
|
23
|
+
</div>
|
24
|
+
|
25
|
+
<!-- Main Content -->
|
26
|
+
<div class="row">
|
27
|
+
<div class="col-lg-12">
|
28
|
+
|
29
|
+
<%= render 'form', { form_url: script_listing_authors_path } %>
|
30
|
+
|
31
|
+
</div>
|
32
|
+
</div>
|
@@ -0,0 +1,4 @@
|
|
1
|
+
<div class="btn-group" role="group" aria-label="author_button_group">
|
2
|
+
<%= link_to 'Edit', edit_script_listing_author_path(@script_author), class: "btn btn-primary" %>
|
3
|
+
<%= link_to 'Destroy', script_listing_author_path(@script_author), method: :delete, data: { confirm: 'Are you sure?' }, class: "btn btn-primary" %>
|
4
|
+
</div>
|
@@ -0,0 +1,22 @@
|
|
1
|
+
<%= form_for(script_extension) do |f| %>
|
2
|
+
|
3
|
+
<div class="form-group field_with_error">
|
4
|
+
<%= f.label :scriptextensionname, "Extension Name" %>
|
5
|
+
<%= f.text_field :scriptextensionname, placeholder: "Extension Name", class: "form-control" %>
|
6
|
+
</div>
|
7
|
+
|
8
|
+
<div class="form-group field_with_error">
|
9
|
+
<%= f.label :scriptextensiondes, "Extension Description" %>
|
10
|
+
<%= f.text_area :scriptextensiondes, placeholder: "Extension Description", class: "form-control" %>
|
11
|
+
</div>
|
12
|
+
|
13
|
+
<div class="form-group field_with_error">
|
14
|
+
<%= f.label :scriptextension, "Script Extension" %>
|
15
|
+
<%= f.text_field :scriptextension, placeholder: "Script Extension (.js/.css)", class: "form-control" %>
|
16
|
+
</div>
|
17
|
+
|
18
|
+
<div class="actions">
|
19
|
+
<%= f.submit class: "btn btn-primary" %>
|
20
|
+
</div>
|
21
|
+
|
22
|
+
<% end %>
|
@@ -0,0 +1,32 @@
|
|
1
|
+
<!-- Title System -->
|
2
|
+
<% phc_title "Script Extension Manager" %>
|
3
|
+
<% phc_title_tagline "Update Script Extension Information" %>
|
4
|
+
|
5
|
+
<!-- Page Header -->
|
6
|
+
<div class="row">
|
7
|
+
<div class="col-lg-12">
|
8
|
+
|
9
|
+
<!-- Bread Crumbs -->
|
10
|
+
<ol class="breadcrumb">
|
11
|
+
<li><%= link_to "Script Listings Index", script_listings_path %></li>
|
12
|
+
<li><%= link_to "Extensions Index", script_extensions_path %></li>
|
13
|
+
<li class="active"><%= yield(:phc_title_tagline) %></li>
|
14
|
+
</ol>
|
15
|
+
|
16
|
+
<!-- Page Title -->
|
17
|
+
<h3 class="page-title">
|
18
|
+
<%= yield(:phc_title) %> </br>
|
19
|
+
<small><%= yield(:phc_title_tagline) %></small>
|
20
|
+
</h3>
|
21
|
+
|
22
|
+
</div>
|
23
|
+
</div>
|
24
|
+
|
25
|
+
<!-- Main Content -->
|
26
|
+
<div class="row">
|
27
|
+
<div class="col-lg-12">
|
28
|
+
|
29
|
+
<%= render 'form', script_extension: @script_extension %>
|
30
|
+
|
31
|
+
</div>
|
32
|
+
</div>
|
@@ -0,0 +1,49 @@
|
|
1
|
+
<!-- Title System -->
|
2
|
+
<% phc_title "Script Extension Manager" %>
|
3
|
+
<% phc_title_tagline "Script Extension Index" %>
|
4
|
+
|
5
|
+
<!-- Page Header -->
|
6
|
+
<div class="row">
|
7
|
+
<div class="col-lg-12">
|
8
|
+
|
9
|
+
<!-- Bread Crumbs -->
|
10
|
+
<ol class="breadcrumb">
|
11
|
+
<li><%= link_to "Script Listings Index", script_listings_path %></li>
|
12
|
+
<li class="active"><%= yield(:phc_title_tagline) %></li>
|
13
|
+
</ol>
|
14
|
+
|
15
|
+
<!-- Page Title -->
|
16
|
+
<h3 class="page-title">
|
17
|
+
<%= yield(:phc_title) %> </br>
|
18
|
+
<small><%= yield(:phc_title_tagline) %></small>
|
19
|
+
</h3>
|
20
|
+
|
21
|
+
</div>
|
22
|
+
</div>
|
23
|
+
|
24
|
+
<!-- Main Content -->
|
25
|
+
<div class="row">
|
26
|
+
<div class="col-lg-12">
|
27
|
+
|
28
|
+
<table class="table table-striped table-bordered table-advance table-hover">
|
29
|
+
<thead>
|
30
|
+
<tr>
|
31
|
+
<th>Script Extension Name</th>
|
32
|
+
<th>Script Extension</th>
|
33
|
+
</tr>
|
34
|
+
</thead>
|
35
|
+
|
36
|
+
<tbody>
|
37
|
+
<% @script_extensions.each do |script_extension| %>
|
38
|
+
<tr>
|
39
|
+
<td><%= link_to script_extension.scriptextensionname, script_extension %></td>
|
40
|
+
<td><%= link_to script_extension.scriptextension, script_extension %></td>
|
41
|
+
</tr>
|
42
|
+
<% end %>
|
43
|
+
</tbody>
|
44
|
+
</table>
|
45
|
+
|
46
|
+
<%= link_to 'New Script Extension', new_script_extension_path, class: "btn btn-primary" %>
|
47
|
+
|
48
|
+
</div>
|
49
|
+
</div>
|