phcscriptcdnpro 72.2.0 → 73.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/phcscriptcdnpro/application_controller.rb +10 -5
- data/app/controllers/phcscriptcdnpro/script/authors_controller.rb +3 -8
- data/app/controllers/phcscriptcdnpro/script/extensions_controller.rb +3 -8
- data/app/controllers/phcscriptcdnpro/script/licences_controller.rb +2 -7
- data/app/controllers/phcscriptcdnpro/script/listings_controller.rb +5 -10
- data/app/controllers/phcscriptcdnpro/script/urls_controller.rb +2 -7
- data/app/controllers/phcscriptcdnpro/script/versions_controller.rb +2 -3
- data/app/helpers/phcscriptcdnpro/application_helper.rb +0 -10
- data/app/models/phcscriptcdnpro/script/author.rb +1 -1
- data/app/models/phcscriptcdnpro/script/extension.rb +4 -4
- data/app/models/phcscriptcdnpro/script/licence.rb +3 -3
- data/app/models/phcscriptcdnpro/script/listing.rb +19 -2
- data/app/models/phcscriptcdnpro/script/url.rb +5 -5
- data/app/models/phcscriptcdnpro/script/version.rb +3 -3
- data/app/views/layouts/phcscriptcdnpro/application.html.erb +21 -22
- data/app/views/layouts/phcscriptcdnpro/components/backend/footer/_footer.html.erb +9 -1
- data/app/views/layouts/phcscriptcdnpro/components/backend/navigation/_top_menu.html.erb +0 -1
- data/app/views/layouts/phcscriptcdnpro/components/backend/sidebars/_side_menu.html.erb +44 -16
- data/app/views/phcscriptcdnpro/script/authors/_form.html.erb +13 -17
- data/app/views/phcscriptcdnpro/script/authors/edit.html.erb +18 -7
- data/app/views/phcscriptcdnpro/script/authors/index.html.erb +25 -11
- data/app/views/phcscriptcdnpro/script/authors/new.html.erb +18 -8
- data/app/views/phcscriptcdnpro/script/authors/show.html.erb +35 -42
- data/app/views/phcscriptcdnpro/script/extensions/_form.html.erb +11 -11
- data/app/views/phcscriptcdnpro/script/extensions/edit.html.erb +15 -2
- data/app/views/phcscriptcdnpro/script/extensions/index.html.erb +19 -4
- data/app/views/phcscriptcdnpro/script/extensions/new.html.erb +15 -2
- data/app/views/phcscriptcdnpro/script/extensions/show.html.erb +34 -41
- data/app/views/phcscriptcdnpro/script/licences/_form.html.erb +21 -21
- data/app/views/phcscriptcdnpro/script/licences/edit.html.erb +15 -2
- data/app/views/phcscriptcdnpro/script/licences/index.html.erb +24 -9
- data/app/views/phcscriptcdnpro/script/licences/new.html.erb +15 -2
- data/app/views/phcscriptcdnpro/script/licences/show.html.erb +34 -41
- data/app/views/phcscriptcdnpro/script/listings/_form.html.erb +26 -33
- data/app/views/phcscriptcdnpro/script/listings/edit.html.erb +13 -5
- data/app/views/phcscriptcdnpro/script/listings/index.html.erb +23 -10
- data/app/views/phcscriptcdnpro/script/listings/new.html.erb +14 -5
- data/app/views/phcscriptcdnpro/script/listings/show.html.erb +31 -40
- data/app/views/phcscriptcdnpro/script/urls/_form.html.erb +10 -10
- data/app/views/phcscriptcdnpro/script/urls/index.html.erb +20 -5
- data/app/views/phcscriptcdnpro/script/urls/new.html.erb +15 -2
- data/app/views/phcscriptcdnpro/script/urls/show.html.erb +34 -41
- data/app/views/phcscriptcdnpro/script/versions/_form.html.erb +4 -4
- data/app/views/phcscriptcdnpro/script/versions/edit.html.erb +15 -2
- data/app/views/phcscriptcdnpro/script/versions/index.html.erb +18 -3
- data/app/views/phcscriptcdnpro/script/versions/new.html.erb +15 -2
- data/app/views/phcscriptcdnpro/script/versions/show.html.erb +34 -43
- data/config/routes.rb +2 -2
- data/db/migrate/20160821183652_create_phcscriptcdnpro_script_listings.rb +10 -12
- data/db/migrate/20160821183714_create_phcscriptcdnpro_script_authors.rb +4 -5
- data/db/migrate/20160821183735_create_phcscriptcdnpro_script_extensions.rb +3 -3
- data/db/migrate/20160821183805_create_phcscriptcdnpro_script_licences.rb +9 -10
- data/db/migrate/20160821183830_create_phcscriptcdnpro_script_urls.rb +7 -7
- data/db/migrate/20160821183946_create_phcscriptcdnpro_script_versions.rb +1 -1
- data/lib/phcscriptcdnpro/version.rb +1 -1
- metadata +61 -103
@@ -1,67 +1,60 @@
|
|
1
|
-
<%= form_with(model: script_listing, local: true) do |
|
1
|
+
<%= form_with(model: script_listing, local: true) do |phc_scriptcdn_pro_listings| %>
|
2
2
|
|
3
|
-
<!--
|
3
|
+
<!-- Validation System -->
|
4
4
|
<%= render 'phcnotifi/validations', :object => @script_listing %>
|
5
|
+
<!-- Validation System -->
|
5
6
|
|
6
|
-
<!-- Form Input Fields -->
|
7
7
|
<div class="form-group field_with_error">
|
8
|
-
<%=
|
9
|
-
<%=
|
8
|
+
<%= phc_scriptcdn_pro_listings.label :script_tittle %>
|
9
|
+
<%= phc_scriptcdn_pro_listings.text_field :script_tittle, placeholder: "Script Title", class: "form-control" %>
|
10
10
|
</div>
|
11
11
|
<div class="form-group field_with_error">
|
12
|
-
<%=
|
13
|
-
<%=
|
12
|
+
<%= phc_scriptcdn_pro_listings.label :script_description, "Script Description" %>
|
13
|
+
<%= phc_scriptcdn_pro_listings.text_area :script_description, placeholder: "Script Description", class: "form-control" %>
|
14
14
|
</div>
|
15
15
|
<div class="form-group field_with_error">
|
16
|
-
<%=
|
17
|
-
<%=
|
16
|
+
<%= phc_scriptcdn_pro_listings.label :script_source, "Script Source Code" %>
|
17
|
+
<%= phc_scriptcdn_pro_listings.text_field :script_source, placeholder: "Script Source", class: "form-control" %>
|
18
18
|
</div>
|
19
19
|
<div class="form-group field_with_error">
|
20
|
-
<%=
|
21
|
-
<%=
|
20
|
+
<%= phc_scriptcdn_pro_listings.label :script_website, "Script Website" %>
|
21
|
+
<%= phc_scriptcdn_pro_listings.text_field :script_website, placeholder: "Script Website", class: "form-control" %>
|
22
22
|
</div>
|
23
23
|
<div class="form-group field_with_error">
|
24
|
-
<%=
|
25
|
-
<%=
|
24
|
+
<%= phc_scriptcdn_pro_listings.label :script_github, "Script Github" %>
|
25
|
+
<%= phc_scriptcdn_pro_listings.text_field :script_github, placeholder: "Script Github Address", class: "form-control" %>
|
26
26
|
</div>
|
27
27
|
<div class="form-group field_with_error">
|
28
|
-
<%=
|
29
|
-
<%=
|
28
|
+
<%= phc_scriptcdn_pro_listings.label :script_initial_release, "Initial Release" %>
|
29
|
+
<%= phc_scriptcdn_pro_listings.date_select :script_initial_release, start_year: 1981, class: "form-control" %>
|
30
30
|
</div>
|
31
31
|
<div class="form-group field_with_error">
|
32
|
-
<%=
|
33
|
-
<%=
|
32
|
+
<%= phc_scriptcdn_pro_listings.label :script_lastest_release, "Latest Release" %>
|
33
|
+
<%= phc_scriptcdn_pro_listings.date_select :script_lastest_release, start_year: 1981, class: "form-control" %>
|
34
34
|
</div>
|
35
35
|
<div class="form-group field_with_error">
|
36
|
-
<%=
|
37
|
-
<%=
|
36
|
+
<%= phc_scriptcdn_pro_listings.label :script_beta_release, "Preview Release" %>
|
37
|
+
<%= phc_scriptcdn_pro_listings.date_select :script_beta_release, start_year: 1981, class: "form-control" %>
|
38
38
|
</div>
|
39
39
|
<div class="form-group field_with_error">
|
40
|
-
<%=
|
41
|
-
<%=
|
42
|
-
</div>
|
43
|
-
<div class="form-group field_with_errors">
|
44
|
-
<label>Script Version</label>
|
45
|
-
<%= collection_select(:script_listing, :version_id, Phcscriptcdnpro::Script::Version.order('scriptversion'), :id, :scriptversion, {}, {class: "form-control"}) %>
|
40
|
+
<%= phc_scriptcdn_pro_listings.label :script_lastest_release_cdn, "Script CDN Release" %>
|
41
|
+
<%= phc_scriptcdn_pro_listings.date_select :script_lastest_release_cdn, start_year: 1981, class: "form-control" %>
|
46
42
|
</div>
|
47
43
|
<div class="form-group field_with_errors">
|
48
44
|
<label>Script Licence</label>
|
49
|
-
<%= collection_select(:script_listing, :licence_id, Phcscriptcdnpro::Script::Licence.order('
|
45
|
+
<%= collection_select(:script_listing, :licence_id, Phcscriptcdnpro::Script::Licence.order('licence_name'), :id, :licence_name, {}, {class: "form-control"}) %>
|
50
46
|
</div>
|
51
47
|
<div class="form-group field_with_errors">
|
52
48
|
<label>Script Author</label>
|
53
|
-
<%= collection_select(:script_listing, :author_id, Phcscriptcdnpro::Script::Author.order('
|
49
|
+
<%= collection_select(:script_listing, :author_id, Phcscriptcdnpro::Script::Author.order('author_first_name'), :id, :author_first_name, {}, {class: "form-control"}) %>
|
54
50
|
</div>
|
55
51
|
<div class="form-group field_with_error">
|
56
|
-
<%=
|
57
|
-
<%=
|
52
|
+
<%= phc_scriptcdn_pro_listings.label :script_status, "Script Status" %>
|
53
|
+
<%= phc_scriptcdn_pro_listings.select( :script_status, [['Active','Active'],['Outdated','Out Dated'],['Deactivated','Not Active']], {}, {class: "form-control"}) %>
|
58
54
|
</div>
|
59
|
-
<!-- Form Input Fields -->
|
60
55
|
|
61
|
-
<!-- Form Submition Button -->
|
62
56
|
<div class="actions">
|
63
|
-
<%=
|
57
|
+
<%= phc_scriptcdn_pro_listings.submit class: "btn btn-primary" %>
|
64
58
|
</div>
|
65
|
-
<!-- For Submition Button -->
|
66
59
|
|
67
60
|
<% end %>
|
@@ -1,10 +1,21 @@
|
|
1
1
|
<!-- Title System -->
|
2
2
|
<% phc_title "Script Listings Manager" %>
|
3
3
|
<% phc_title_tagline "Update Script Listing" %>
|
4
|
-
<% phc_breadcrumb_one link_to "
|
4
|
+
<% phc_breadcrumb_one link_to "Script Index", phcscriptcdnpro.script_listings_path %>
|
5
5
|
<% phc_breadcrumb_two yield(:phc_title_tagline) %>
|
6
6
|
<!-- Title System -->
|
7
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
|
+
|
8
19
|
<!-- Page Content -->
|
9
20
|
<div class="panel panel-inverse">
|
10
21
|
<div class="panel-heading">
|
@@ -16,12 +27,9 @@
|
|
16
27
|
<h4 class="panel-title"><%= yield(:phc_title_tagline) %></h4>
|
17
28
|
</div>
|
18
29
|
<div class="panel-body">
|
19
|
-
|
20
|
-
<!-- -->
|
30
|
+
<!-- Form for Edit Script Listings -->
|
21
31
|
<%= render 'form', script_listing: @script_listing %>
|
22
32
|
<!-- Form for Edit Script Listings -->
|
23
|
-
<!-- -->
|
24
|
-
|
25
33
|
</div>
|
26
34
|
</div>
|
27
35
|
<!-- Page Content -->
|
@@ -4,6 +4,16 @@
|
|
4
4
|
<% phc_breadcrumb_one yield(:phc_title_tagline) %>
|
5
5
|
<!-- Title System -->
|
6
6
|
|
7
|
+
<!-- Page Bradcrumbs -->
|
8
|
+
<ol class="breadcrumb pull-right">
|
9
|
+
<li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_one) %></li>
|
10
|
+
</ol>
|
11
|
+
<!-- Page Bradcrumbs -->
|
12
|
+
|
13
|
+
<!-- Page Header -->
|
14
|
+
<h1 class="page-header"><%= yield(:phc_title) %></h1>
|
15
|
+
<!-- Page Header -->
|
16
|
+
|
7
17
|
<!-- Page Content -->
|
8
18
|
<div class="panel panel-inverse">
|
9
19
|
<div class="panel-heading">
|
@@ -25,19 +35,22 @@
|
|
25
35
|
<th>Latest Release Date</th>
|
26
36
|
<th>Beta Release Date</th>
|
27
37
|
</tr>
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
38
|
+
</thead>
|
39
|
+
<tbody>
|
40
|
+
<% @script_listings.each do |script_listing| %>
|
41
|
+
<tr>
|
42
|
+
<td class="vert-align"><%= link_to script_listing.script_tittle, script_listing_path(script_listing) %></td>
|
43
|
+
<td class="vert-align"><%= link_to script_listing.script_initial_release, script_listing_path(script_listing) %></td>
|
44
|
+
<td class="vert-align"><%= link_to script_listing.script_lastest_release, script_listing_path(script_listing) %></td>
|
45
|
+
<td class="vert-align"><%= link_to script_listing.script_beta_release, script_listing_path(script_listing) %></td>
|
46
|
+
</tr>
|
37
47
|
<% end %>
|
38
48
|
</tbody>
|
39
49
|
</table>
|
40
|
-
|
50
|
+
<%= link_to phcscriptcdnpro.new_script_listing_path, class: "btn btn-primary" do %>
|
51
|
+
<i class="fas fa-plus-circle"></i>
|
52
|
+
<%= "Add a New Script CDN Listing" %>
|
53
|
+
<% end %>
|
41
54
|
</div>
|
42
55
|
</div>
|
43
56
|
</div>
|
@@ -1,10 +1,21 @@
|
|
1
1
|
<!-- Title System -->
|
2
2
|
<% phc_title "Script Listings Manager" %>
|
3
3
|
<% phc_title_tagline "Create a New Script Listing" %>
|
4
|
-
<% phc_breadcrumb_one link_to "
|
4
|
+
<% phc_breadcrumb_one link_to "Script Index", phcscriptcdnpro.script_listings_path %>
|
5
5
|
<% phc_breadcrumb_two yield(:phc_title_tagline) %>
|
6
6
|
<!-- Title System -->
|
7
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
|
+
|
8
19
|
<!-- Page Content -->
|
9
20
|
<div class="panel panel-inverse">
|
10
21
|
<div class="panel-heading">
|
@@ -16,11 +27,9 @@
|
|
16
27
|
<h4 class="panel-title"><%= yield(:phc_title_tagline) %></h4>
|
17
28
|
</div>
|
18
29
|
<div class="panel-body">
|
19
|
-
|
20
|
-
<!-- -->
|
30
|
+
<!-- Form for New Script Listings -->
|
21
31
|
<%= render 'form', script_listing: @script_listing %>
|
22
|
-
<!--
|
23
|
-
|
32
|
+
<!-- Form for New Script Listings -->
|
24
33
|
</div>
|
25
34
|
</div>
|
26
35
|
<!-- Page Content -->
|
@@ -1,59 +1,50 @@
|
|
1
1
|
<!-- Title System -->
|
2
2
|
<% phc_title "Script Listings Manager" %>
|
3
3
|
<% phc_title_tagline "Script Listing Details" %>
|
4
|
-
<% phc_breadcrumb_one link_to "
|
4
|
+
<% phc_breadcrumb_one link_to "Script Index", phcscriptcdnpro.script_listings_path %>
|
5
5
|
<% phc_breadcrumb_two yield(:phc_title_tagline) %>
|
6
6
|
<!-- Title System -->
|
7
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
|
+
|
8
15
|
<!-- Page Header -->
|
9
|
-
<
|
10
|
-
<div class="col-sm-8">
|
11
|
-
<h2><%= yield(:phc_title) %></h2>
|
12
|
-
<!-- Bread Crumb -->
|
13
|
-
<ol class="breadcrumb">
|
14
|
-
<li><%= yield(:phc_breadcrumb_one) %></li>
|
15
|
-
<li class="active"><%= yield(:phc_breadcrumb_two) %></li>
|
16
|
-
</ol>
|
17
|
-
<!-- Bread Crumb -->
|
18
|
-
</div>
|
19
|
-
<div class="col-sm-4">
|
20
|
-
<div class="title-action">
|
21
|
-
<%= link_to phcscriptcdnpro.script_listings_path, class: "btn btn-primary" do %>
|
22
|
-
<i class="fa fa-plus"></i> Back to Listing Index
|
23
|
-
<% end %>
|
24
|
-
</div>
|
25
|
-
</div>
|
26
|
-
</div>
|
16
|
+
<h1 class="page-header"><%= yield(:phc_title) %></h1>
|
27
17
|
<!-- Page Header -->
|
28
18
|
|
29
19
|
<!-- Page Content -->
|
30
|
-
<div class="
|
31
|
-
<div class="row">
|
32
|
-
<div class="col-lg-12">
|
33
|
-
|
34
|
-
<div class="ibox float-e-margins">
|
35
|
-
<div class="ibox-title">
|
36
|
-
<h5><%= yield(:phc_title_tagline) %></h5>
|
37
|
-
<div class="ibox-tools">
|
38
|
-
<a class="collapse-link">
|
39
|
-
<i class="fa fa-chevron-up"></i>
|
40
|
-
</a>
|
41
|
-
<a class="close-link">
|
42
|
-
<i class="fa fa-times"></i>
|
43
|
-
</a>
|
44
|
-
</div>
|
45
|
-
</div>
|
46
|
-
<div class="ibox-content">
|
20
|
+
<div class="row">
|
47
21
|
|
48
|
-
|
49
|
-
|
50
|
-
<%= link_to 'Destroy', script_listing_path, method: :delete, data: { confirm: 'Are you sure?' }, class: "btn btn-danger" %>
|
51
|
-
</div>
|
22
|
+
<!-- Button Panel -->
|
23
|
+
<div class="col-lg-4">
|
52
24
|
|
25
|
+
<div class="panel panel-inverse">
|
26
|
+
<div class="panel-heading">
|
27
|
+
<div class="panel-heading-btn">
|
53
28
|
</div>
|
54
29
|
</div>
|
30
|
+
<div class="panel-body">
|
31
|
+
|
32
|
+
<div class="btn-group d-flex" role="group">
|
33
|
+
<%= link_to 'Update', phcscriptcdnpro.edit_script_listing_path, class: "btn btn-primary" %>
|
34
|
+
<%= link_to 'Remove', phcscriptcdnpro.script_listing_path, method: :delete, data: { confirm: 'Are you sure?' }, class: "btn btn-danger" %>
|
35
|
+
</div>
|
55
36
|
|
37
|
+
</div>
|
56
38
|
</div>
|
39
|
+
|
40
|
+
</div>
|
41
|
+
<!-- Button Panel -->
|
42
|
+
|
43
|
+
<!-- Main Panel -->
|
44
|
+
<div class="col-lg-8">
|
45
|
+
|
57
46
|
</div>
|
47
|
+
<!-- Main Panel -->
|
48
|
+
|
58
49
|
</div>
|
59
50
|
<!-- Page Content -->
|
@@ -1,34 +1,34 @@
|
|
1
|
-
<%= form_for([@script_url.listing, @script_url], url: form_url) do |
|
1
|
+
<%= form_for([@script_url.listing, @script_url], url: form_url) do |form_phc_scriptcdn_urls| %>
|
2
2
|
|
3
3
|
<!-- PHCNotifi Render Validation -->
|
4
4
|
<%= render 'phcnotifi/validations', :object => @script_url %>
|
5
5
|
|
6
6
|
<!-- Form Input Fields -->
|
7
7
|
<div class="form-group field_with_error">
|
8
|
-
<%=
|
9
|
-
<%=
|
8
|
+
<%= form_phc_scriptcdn_urls.label :script_url, "Script URL" %>
|
9
|
+
<%= form_phc_scriptcdn_urls.text_field :script_url, placeholder: "Script URL", class: "form-control" %>
|
10
10
|
</div>
|
11
11
|
<div class="form-group field_with_error">
|
12
|
-
<%=
|
13
|
-
<%=
|
12
|
+
<%= form_phc_scriptcdn_urls.label :script_url_release, "Initial Release" %>
|
13
|
+
<%= form_phc_scriptcdn_urls.date_select :script_url_release, class: "form-control" %>
|
14
14
|
</div>
|
15
15
|
<div class="form-group field_with_error">
|
16
|
-
<%=
|
17
|
-
<%=
|
16
|
+
<%= form_phc_scriptcdn_urls.label :script_url_cdn_update, "Latest Release" %>
|
17
|
+
<%= form_phc_scriptcdn_urls.date_select :script_url_cdn_update, class: "form-control" %>
|
18
18
|
</div>
|
19
19
|
<div class="form-group field_with_errors">
|
20
20
|
<label>Script Version</label>
|
21
|
-
<%= collection_select(:script_url, :version_id, Phcscriptcdnpro::Script::Version.order('
|
21
|
+
<%= collection_select(:script_url, :version_id, Phcscriptcdnpro::Script::Version.order('script_version_number'), :id, :script_version_number, {}, {class: "form-control"}) %>
|
22
22
|
</div>
|
23
23
|
<div class="form-group field_with_errors">
|
24
24
|
<label>Script Extensions</label>
|
25
|
-
<%= collection_select(:script_url, :extension_id, Phcscriptcdnpro::Script::Extension.order('
|
25
|
+
<%= collection_select(:script_url, :extension_id, Phcscriptcdnpro::Script::Extension.order('script_extension_name'), :id, :script_extension, {}, {class: "form-control"}) %>
|
26
26
|
</div>
|
27
27
|
<!-- Form Input Fields -->
|
28
28
|
|
29
29
|
<!-- Form Submition Button -->
|
30
30
|
<div class="actions">
|
31
|
-
<%=
|
31
|
+
<%= form_phc_scriptcdn_urls.submit class: "btn btn-primary" %>
|
32
32
|
</div>
|
33
33
|
<!-- For Submition Button -->
|
34
34
|
|
@@ -1,9 +1,21 @@
|
|
1
1
|
<!-- Title System -->
|
2
2
|
<% phc_title "Script Listings Manager" %>
|
3
3
|
<% phc_title_tagline "Script URL Index" %>
|
4
|
-
<% phc_breadcrumb_one
|
4
|
+
<% phc_breadcrumb_one link_to "Script Index", phcscriptcdnpro.script_listings_path %>
|
5
|
+
<% phc_breadcrumb_two yield(:phc_title_tagline) %>
|
5
6
|
<!-- Title System -->
|
6
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
|
+
|
7
19
|
<!-- Page Content -->
|
8
20
|
<div class="panel panel-inverse">
|
9
21
|
<div class="panel-heading">
|
@@ -28,14 +40,17 @@
|
|
28
40
|
<tbody>
|
29
41
|
<% @script_urls.each do |script_url| %>
|
30
42
|
<tr>
|
31
|
-
<td><%= link_to script_url.
|
32
|
-
<td><%= link_to script_url.
|
33
|
-
<td><%= link_to script_url.
|
43
|
+
<td><%= link_to script_url.script_url, script_listing_url_path(script_url.listing, script_url) %></td>
|
44
|
+
<td><%= link_to script_url.script_url_release, script_listing_url_path(script_url.listing, script_url) %></td>
|
45
|
+
<td><%= link_to script_url.script_url_cdn_update, script_listing_url_path(script_url.listing, script_url) %></td>
|
34
46
|
</tr>
|
35
47
|
<% end %>
|
36
48
|
</tbody>
|
37
49
|
</table>
|
38
|
-
|
50
|
+
<%= link_to phcscriptcdnpro.new_script_listing_url_path, class: "btn btn-primary" do %>
|
51
|
+
<i class="fas fa-plus-circle"></i>
|
52
|
+
<%= "Add a New CDN URL" %>
|
53
|
+
<% end %>
|
39
54
|
</div>
|
40
55
|
</div>
|
41
56
|
</div>
|
@@ -1,10 +1,23 @@
|
|
1
1
|
<!-- Title System -->
|
2
2
|
<% phc_title "Script Listings Manager" %>
|
3
3
|
<% phc_title_tagline "Create a New Script URL" %>
|
4
|
-
<% phc_breadcrumb_one link_to "Script
|
5
|
-
<% phc_breadcrumb_two
|
4
|
+
<% phc_breadcrumb_one link_to "Script Index", phcscriptcdnpro.script_listings_path %>
|
5
|
+
<% phc_breadcrumb_two link_to "Script Urls", phcscriptcdnpro.script_listing_urls_path %>
|
6
|
+
<% phc_breadcrumb_three yield(:phc_title_tagline) %>
|
6
7
|
<!-- Title System -->
|
7
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
|
+
|
8
21
|
<!-- Page Content -->
|
9
22
|
<div class="panel panel-inverse">
|
10
23
|
<div class="panel-heading">
|
@@ -1,59 +1,52 @@
|
|
1
1
|
<!-- Title System -->
|
2
2
|
<% phc_title "Script Listings Manager" %>
|
3
3
|
<% phc_title_tagline "Script URL Details" %>
|
4
|
-
<% phc_breadcrumb_one link_to "Script
|
5
|
-
<% phc_breadcrumb_two
|
4
|
+
<% phc_breadcrumb_one link_to "Script Index", phcscriptcdnpro.script_listings_path %>
|
5
|
+
<% phc_breadcrumb_two link_to "Script Urls", phcscriptcdnpro.script_listing_urls_path %>
|
6
|
+
<% phc_breadcrumb_three yield(:phc_title_tagline) %>
|
6
7
|
<!-- Title System -->
|
7
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
|
+
|
8
17
|
<!-- Page Header -->
|
9
|
-
<
|
10
|
-
<div class="col-sm-8">
|
11
|
-
<h2><%= yield(:phc_title) %></h2>
|
12
|
-
<!-- Bread Crumb -->
|
13
|
-
<ol class="breadcrumb">
|
14
|
-
<li><%= yield(:phc_breadcrumb_one) %></li>
|
15
|
-
<li class="active"><%= yield(:phc_breadcrumb_two) %></li>
|
16
|
-
</ol>
|
17
|
-
<!-- Bread Crumb -->
|
18
|
-
</div>
|
19
|
-
<div class="col-sm-4">
|
20
|
-
<div class="title-action">
|
21
|
-
<%= link_to phcscriptcdnpro.new_script_listing_url_path, class: "btn btn-primary" do %>
|
22
|
-
<i class="fa fa-plus"></i> Create a New URL
|
23
|
-
<% end %>
|
24
|
-
</div>
|
25
|
-
</div>
|
26
|
-
</div>
|
18
|
+
<h1 class="page-header"><%= yield(:phc_title) %></h1>
|
27
19
|
<!-- Page Header -->
|
28
20
|
|
29
21
|
<!-- Page Content -->
|
30
|
-
<div class="
|
31
|
-
<div class="row">
|
32
|
-
<div class="col-lg-12">
|
33
|
-
|
34
|
-
<div class="ibox float-e-margins">
|
35
|
-
<div class="ibox-title">
|
36
|
-
<h5><%= yield(:phc_title_tagline) %></h5>
|
37
|
-
<div class="ibox-tools">
|
38
|
-
<a class="collapse-link">
|
39
|
-
<i class="fa fa-chevron-up"></i>
|
40
|
-
</a>
|
41
|
-
<a class="close-link">
|
42
|
-
<i class="fa fa-times"></i>
|
43
|
-
</a>
|
44
|
-
</div>
|
45
|
-
</div>
|
46
|
-
<div class="ibox-content">
|
22
|
+
<div class="row">
|
47
23
|
|
48
|
-
|
49
|
-
|
50
|
-
<%= link_to 'Destroy', script_listing_url_path, method: :delete, data: { confirm: 'Are you sure?' }, class: "btn btn-danger" %>
|
51
|
-
</div>
|
24
|
+
<!-- Button Panel -->
|
25
|
+
<div class="col-lg-4">
|
52
26
|
|
27
|
+
<div class="panel panel-inverse">
|
28
|
+
<div class="panel-heading">
|
29
|
+
<div class="panel-heading-btn">
|
53
30
|
</div>
|
54
31
|
</div>
|
32
|
+
<div class="panel-body">
|
33
|
+
|
34
|
+
<div class="btn-group d-flex" role="group">
|
35
|
+
<%= link_to 'Update', edit_script_listing_url_path, class: "btn btn-primary" %>
|
36
|
+
<%= link_to 'Remove', script_listing_url_path, method: :delete, data: { confirm: 'Are you sure?' }, class: "btn btn-danger" %>
|
37
|
+
</div>
|
55
38
|
|
39
|
+
</div>
|
56
40
|
</div>
|
41
|
+
|
42
|
+
</div>
|
43
|
+
<!-- Button Panel -->
|
44
|
+
|
45
|
+
<!-- Main Panel -->
|
46
|
+
<div class="col-lg-8">
|
47
|
+
|
57
48
|
</div>
|
49
|
+
<!-- Main Panel -->
|
50
|
+
|
58
51
|
</div>
|
59
52
|
<!-- Page Content -->
|