phcscriptcdn 51.0.0 → 52.0.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 +1 -1
- data/app/assets/javascripts/phcscriptcdn/application.js +1 -1
- data/app/controllers/phcscriptcdn/application_controller.rb +15 -20
- data/app/controllers/phcscriptcdn/script/authors_controller.rb +13 -13
- data/app/controllers/phcscriptcdn/script/extensions_controller.rb +15 -15
- data/app/controllers/phcscriptcdn/script/licences_controller.rb +13 -13
- data/app/controllers/phcscriptcdn/script/listings_controller.rb +11 -11
- data/app/controllers/phcscriptcdn/script/urls_controller.rb +14 -14
- data/app/controllers/phcscriptcdn/script/versions_controller.rb +15 -15
- data/app/models/phcscriptcdn/application_record.rb +0 -2
- data/app/models/phcscriptcdn/script.rb +0 -2
- data/app/models/phcscriptcdn/script/author.rb +16 -7
- data/app/models/phcscriptcdn/script/extension.rb +5 -8
- data/app/models/phcscriptcdn/script/licence.rb +5 -8
- data/app/models/phcscriptcdn/script/listing.rb +12 -17
- data/app/models/phcscriptcdn/script/url.rb +4 -16
- data/app/models/phcscriptcdn/script/version.rb +6 -9
- data/app/views/layouts/phcscriptcdn/application.html.erb +6 -5
- data/app/views/layouts/phcscriptcdn/components/backend/footer/_footer.html.erb +5 -5
- data/app/views/layouts/phcscriptcdn/components/backend/sidebars/_side_menu.html.erb +60 -25
- data/app/views/phcscriptcdn/script/authors/_form.html.erb +6 -5
- data/app/views/phcscriptcdn/script/authors/edit.html.erb +4 -4
- data/app/views/phcscriptcdn/script/authors/index.html.erb +19 -15
- data/app/views/phcscriptcdn/script/authors/new.html.erb +4 -4
- data/app/views/phcscriptcdn/script/authors/show.html.erb +1 -4
- data/app/views/phcscriptcdn/script/extensions/_form.html.erb +5 -4
- data/app/views/phcscriptcdn/script/extensions/edit.html.erb +4 -7
- data/app/views/phcscriptcdn/script/extensions/index.html.erb +19 -15
- data/app/views/phcscriptcdn/script/extensions/new.html.erb +4 -6
- data/app/views/phcscriptcdn/script/extensions/show.html.erb +1 -4
- data/app/views/phcscriptcdn/script/licences/_form.html.erb +10 -9
- data/app/views/phcscriptcdn/script/licences/edit.html.erb +4 -6
- data/app/views/phcscriptcdn/script/licences/index.html.erb +19 -15
- data/app/views/phcscriptcdn/script/licences/new.html.erb +4 -6
- data/app/views/phcscriptcdn/script/licences/show.html.erb +1 -4
- data/app/views/phcscriptcdn/script/listings/_form.html.erb +21 -17
- data/app/views/phcscriptcdn/script/listings/edit.html.erb +4 -4
- data/app/views/phcscriptcdn/script/listings/index.html.erb +24 -19
- data/app/views/phcscriptcdn/script/listings/new.html.erb +6 -5
- data/app/views/phcscriptcdn/script/listings/show.html.erb +3 -5
- data/app/views/phcscriptcdn/script/urls/_form.html.erb +7 -6
- data/app/views/phcscriptcdn/script/urls/edit.html.erb +15 -5
- data/app/views/phcscriptcdn/script/urls/index.html.erb +19 -15
- data/app/views/phcscriptcdn/script/urls/new.html.erb +4 -6
- data/app/views/phcscriptcdn/script/urls/show.html.erb +1 -4
- data/app/views/phcscriptcdn/script/versions/_form.html.erb +3 -2
- data/app/views/phcscriptcdn/script/versions/edit.html.erb +4 -6
- data/app/views/phcscriptcdn/script/versions/index.html.erb +19 -15
- data/app/views/phcscriptcdn/script/versions/new.html.erb +4 -6
- data/app/views/phcscriptcdn/script/versions/show.html.erb +1 -4
- data/config/routes.rb +19 -20
- data/db/migrate/20160821183652_create_phcscriptcdn_script_listings.rb +1 -1
- data/lib/phcscriptcdn/engine.rb +16 -15
- data/lib/phcscriptcdn/version.rb +1 -1
- metadata +8 -8
@@ -30,12 +30,10 @@
|
|
30
30
|
</div>
|
31
31
|
</div>
|
32
32
|
<div class="panel-body">
|
33
|
-
|
34
33
|
<div class="btn-group d-flex" role="group">
|
35
34
|
<%= link_to 'Update', phcscriptcdn.edit_script_licence_path, class: "btn btn-primary" %>
|
36
35
|
<%= link_to 'Remove', phcscriptcdn.script_licence_path, method: :delete, data: { confirm: 'Are you sure?' }, class: "btn btn-danger" %>
|
37
|
-
</div>
|
38
|
-
|
36
|
+
</div>
|
39
37
|
</div>
|
40
38
|
</div>
|
41
39
|
|
@@ -44,7 +42,6 @@
|
|
44
42
|
|
45
43
|
<!-- Main Panel -->
|
46
44
|
<div class="col-lg-8">
|
47
|
-
|
48
45
|
</div>
|
49
46
|
<!-- Main Panel -->
|
50
47
|
|
@@ -1,60 +1,64 @@
|
|
1
1
|
<%= form_with(model: script_listing, local: true) do |form| %>
|
2
2
|
|
3
|
-
<!-- Validation
|
4
|
-
<%= render 'phcnotifi/validations', :object => @script_listing %>
|
5
|
-
<!-- Validation
|
3
|
+
<!-- PHCNotifi Render Validation -->
|
4
|
+
<%= render 'phcnotifi/default/validations', :object => @script_listing %>
|
5
|
+
<!-- PHCNotifi Render Validation -->
|
6
6
|
|
7
|
-
|
8
|
-
|
9
|
-
<%= form.
|
7
|
+
<!-- Form Input Fields -->
|
8
|
+
<div class="form-group field_with_errors">
|
9
|
+
<%= form.label :script_title, "Script Title" %>
|
10
|
+
<%= form.text_field :script_title, placeholder: "Script Title", class: "form-control" %>
|
10
11
|
</div>
|
11
|
-
<div class="form-group
|
12
|
+
<div class="form-group field_with_errors">
|
12
13
|
<%= form.label :script_description, "Script Description" %>
|
13
14
|
<%= form.text_area :script_description, placeholder: "Script Description", class: "form-control" %>
|
14
15
|
</div>
|
15
|
-
<div class="form-group
|
16
|
+
<div class="form-group field_with_errors">
|
16
17
|
<%= form.label :script_source, "Script Source Code" %>
|
17
18
|
<%= form.text_field :script_source, placeholder: "Script Source", class: "form-control" %>
|
18
19
|
</div>
|
19
|
-
<div class="form-group
|
20
|
+
<div class="form-group field_with_errors">
|
20
21
|
<%= form.label :script_website, "Script Website" %>
|
21
22
|
<%= form.text_field :script_website, placeholder: "Script Website", class: "form-control" %>
|
22
23
|
</div>
|
23
|
-
<div class="form-group
|
24
|
+
<div class="form-group field_with_errors">
|
24
25
|
<%= form.label :script_github, "Script Github" %>
|
25
26
|
<%= form.text_field :script_github, placeholder: "Script Github Address", class: "form-control" %>
|
26
27
|
</div>
|
27
|
-
<div class="form-group
|
28
|
+
<div class="form-group field_with_errors">
|
28
29
|
<%= form.label :script_initial_release, "Initial Release" %>
|
29
30
|
<%= form.date_select :script_initial_release, start_year: 1981, class: "form-control" %>
|
30
31
|
</div>
|
31
|
-
<div class="form-group
|
32
|
+
<div class="form-group field_with_errors">
|
32
33
|
<%= form.label :script_lastest_release, "Latest Release" %>
|
33
34
|
<%= form.date_select :script_lastest_release, start_year: 1981, class: "form-control" %>
|
34
35
|
</div>
|
35
|
-
<div class="form-group
|
36
|
+
<div class="form-group field_with_errors">
|
36
37
|
<%= form.label :script_beta_release, "Preview Release" %>
|
37
38
|
<%= form.date_select :script_beta_release, start_year: 1981, class: "form-control" %>
|
38
39
|
</div>
|
39
|
-
<div class="form-group
|
40
|
+
<div class="form-group field_with_errors">
|
40
41
|
<%= form.label :script_lastest_release_cdn, "Script CDN Release" %>
|
41
42
|
<%= form.date_select :script_lastest_release_cdn, start_year: 1981, class: "form-control" %>
|
42
43
|
</div>
|
43
|
-
<div class="form-group
|
44
|
+
<div class="form-group field_with_errorss">
|
44
45
|
<label>Script Licence</label>
|
45
46
|
<%= collection_select(:script_listing, :licence_id, Phcscriptcdn::Script::Licence.order('licence_name'), :id, :licence_name, {}, {class: "form-control"}) %>
|
46
47
|
</div>
|
47
|
-
<div class="form-group
|
48
|
+
<div class="form-group field_with_errorss">
|
48
49
|
<label>Script Author</label>
|
49
50
|
<%= collection_select(:script_listing, :author_id, Phcscriptcdn::Script::Author.order('author_first_name'), :id, :author_first_name, {}, {class: "form-control"}) %>
|
50
51
|
</div>
|
51
|
-
<div class="form-group
|
52
|
+
<div class="form-group field_with_errors">
|
52
53
|
<%= form.label :script_status, "Script Status" %>
|
53
54
|
<%= form.select( :script_status, [['Active','Active'],['Outdated','Out Dated'],['Deactivated','Not Active']], {}, {class: "form-control"}) %>
|
54
55
|
</div>
|
56
|
+
<!-- Form Input Fields -->
|
55
57
|
|
58
|
+
<!-- Form Submition Button -->
|
56
59
|
<div class="actions">
|
57
60
|
<%= form.submit class: "btn btn-primary" %>
|
58
61
|
</div>
|
62
|
+
<!-- For Submition Button -->
|
59
63
|
|
60
64
|
<% end %>
|
@@ -15,7 +15,7 @@
|
|
15
15
|
<!-- Page Header -->
|
16
16
|
<h1 class="page-header"><%= yield(:phc_title) %></h1>
|
17
17
|
<!-- Page Header -->
|
18
|
-
|
18
|
+
|
19
19
|
<!-- Page Content -->
|
20
20
|
<div class="panel panel-inverse">
|
21
21
|
<div class="panel-heading">
|
@@ -24,12 +24,12 @@
|
|
24
24
|
<a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-success" data-click="panel-reload"><i class="fa fa-redo"></i></a>
|
25
25
|
<a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-warning" data-click="panel-collapse"><i class="fa fa-minus"></i></a>
|
26
26
|
</div>
|
27
|
-
<h4 class="panel-title"><%= yield(:
|
27
|
+
<h4 class="panel-title"><%= yield(:phc_title) %></h4>
|
28
28
|
</div>
|
29
29
|
<div class="panel-body">
|
30
|
-
<!-- Form
|
30
|
+
<!-- Form to Edit Listings -->
|
31
31
|
<%= render 'form', script_listing: @script_listing %>
|
32
|
-
<!-- Form
|
32
|
+
<!-- Form to Edit Listings -->
|
33
33
|
</div>
|
34
34
|
</div>
|
35
35
|
<!-- Page Content -->
|
@@ -6,7 +6,8 @@
|
|
6
6
|
|
7
7
|
<!-- Page Bradcrumbs -->
|
8
8
|
<ol class="breadcrumb pull-right">
|
9
|
-
|
9
|
+
<li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
|
10
|
+
<li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_two) %></li>
|
10
11
|
</ol>
|
11
12
|
<!-- Page Bradcrumbs -->
|
12
13
|
|
@@ -14,18 +15,21 @@
|
|
14
15
|
<h1 class="page-header"><%= yield(:phc_title) %></h1>
|
15
16
|
<!-- Page Header -->
|
16
17
|
|
17
|
-
<!-- Page Content -->
|
18
|
+
<!-- Page & Panel Content -->
|
18
19
|
<div class="panel panel-inverse">
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
20
|
+
<!-- Panel Heading -->
|
21
|
+
<div class="panel-heading">
|
22
|
+
<div class="panel-heading-btn">
|
23
|
+
<a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-default" data-click="panel-expand"><i class="fa fa-expand"></i></a>
|
24
|
+
<a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-success" data-click="panel-reload"><i class="fa fa-redo"></i></a>
|
25
|
+
<a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-warning" data-click="panel-collapse"><i class="fa fa-minus"></i></a>
|
26
|
+
</div>
|
27
|
+
<h4 class="panel-title"><%= yield(:phc_title_tagline) %></h4>
|
28
|
+
</div>
|
29
|
+
<!-- Panel Heading -->
|
30
|
+
<!-- Panel Body -->
|
31
|
+
<div class="panel-body">
|
32
|
+
<!-- Table - Listings Index -->
|
29
33
|
<div class="table-responsive">
|
30
34
|
<table class="table table-striped table-bordered">
|
31
35
|
<thead>
|
@@ -38,20 +42,21 @@
|
|
38
42
|
</thead>
|
39
43
|
<tbody>
|
40
44
|
<% @script_listings.each do |script_listing| %>
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
45
|
+
<tr>
|
46
|
+
<td class="vert-align"><%= link_to script_listing.script_title, script_listing_path(script_listing) %></td>
|
47
|
+
<td class="vert-align"><%= link_to script_listing.script_initial_release, script_listing_path(script_listing) %></td>
|
48
|
+
<td class="vert-align"><%= link_to script_listing.script_lastest_release, script_listing_path(script_listing) %></td>
|
49
|
+
<td class="vert-align"><%= link_to script_listing.script_beta_release, script_listing_path(script_listing) %></td>
|
50
|
+
</tr>
|
47
51
|
<% end %>
|
48
52
|
</tbody>
|
49
53
|
</table>
|
50
54
|
<%= link_to phcscriptcdn.new_script_listing_path, class: "btn btn-primary" do %>
|
51
55
|
<i class="fas fa-plus-circle"></i>
|
52
|
-
|
56
|
+
Add a New Script CDN Listing
|
53
57
|
<% end %>
|
54
58
|
</div>
|
59
|
+
<!-- Table - Listings Index -->
|
55
60
|
</div>
|
56
61
|
</div>
|
57
62
|
<!-- Page Content -->
|
@@ -8,14 +8,15 @@
|
|
8
8
|
<!-- Page Bradcrumbs -->
|
9
9
|
<ol class="breadcrumb pull-right">
|
10
10
|
<li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
|
11
|
-
<li class="breadcrumb-item
|
11
|
+
<li class="breadcrumb-item"><%= yield(:phc_breadcrumb_two) %></li>
|
12
|
+
<li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_three) %></li>
|
12
13
|
</ol>
|
13
14
|
<!-- Page Bradcrumbs -->
|
14
15
|
|
15
16
|
<!-- Page Header -->
|
16
17
|
<h1 class="page-header"><%= yield(:phc_title) %></h1>
|
17
18
|
<!-- Page Header -->
|
18
|
-
|
19
|
+
|
19
20
|
<!-- Page Content -->
|
20
21
|
<div class="panel panel-inverse">
|
21
22
|
<div class="panel-heading">
|
@@ -24,12 +25,12 @@
|
|
24
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>
|
25
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>
|
26
27
|
</div>
|
27
|
-
<h4 class="panel-title"><%= yield(:
|
28
|
+
<h4 class="panel-title"><%= yield(:phc_title) %></h4>
|
28
29
|
</div>
|
29
30
|
<div class="panel-body">
|
30
|
-
<!-- Form for New
|
31
|
+
<!-- Form for New Listing -->
|
31
32
|
<%= render 'form', script_listing: @script_listing %>
|
32
|
-
<!-- Form for New
|
33
|
+
<!-- Form for New Listing -->
|
33
34
|
</div>
|
34
35
|
</div>
|
35
36
|
<!-- Page Content -->
|
@@ -8,7 +8,8 @@
|
|
8
8
|
<!-- Page Bradcrumbs -->
|
9
9
|
<ol class="breadcrumb pull-right">
|
10
10
|
<li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
|
11
|
-
<li class="breadcrumb-item
|
11
|
+
<li class="breadcrumb-item"><%= yield(:phc_breadcrumb_two) %></li>
|
12
|
+
<li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_three) %></li>
|
12
13
|
</ol>
|
13
14
|
<!-- Page Bradcrumbs -->
|
14
15
|
|
@@ -28,12 +29,10 @@
|
|
28
29
|
</div>
|
29
30
|
</div>
|
30
31
|
<div class="panel-body">
|
31
|
-
|
32
32
|
<div class="btn-group d-flex" role="group">
|
33
33
|
<%= link_to 'Update', phcscriptcdn.edit_script_listing_path, class: "btn btn-primary" %>
|
34
34
|
<%= link_to 'Remove', phcscriptcdn.script_listing_path, method: :delete, data: { confirm: 'Are you sure?' }, class: "btn btn-danger" %>
|
35
|
-
</div>
|
36
|
-
|
35
|
+
</div>
|
37
36
|
</div>
|
38
37
|
</div>
|
39
38
|
|
@@ -42,7 +41,6 @@
|
|
42
41
|
|
43
42
|
<!-- Main Panel -->
|
44
43
|
<div class="col-lg-8">
|
45
|
-
|
46
44
|
</div>
|
47
45
|
<!-- Main Panel -->
|
48
46
|
|
@@ -1,26 +1,27 @@
|
|
1
1
|
<%= form_with(model: [ @script_listing, @script_url], url: form_url, local: true) do |form| %>
|
2
2
|
|
3
3
|
<!-- PHCNotifi Render Validation -->
|
4
|
-
<%= render 'phcnotifi/validations', :object => @script_url %>
|
4
|
+
<%= render 'phcnotifi/default/validations', :object => @script_url %>
|
5
|
+
<!-- PHCNotifi Render Validation -->
|
5
6
|
|
6
7
|
<!-- Form Input Fields -->
|
7
|
-
<div class="form-group
|
8
|
+
<div class="form-group field_with_errors">
|
8
9
|
<%= form.label :script_url, "Script URL" %>
|
9
10
|
<%= form.text_field :script_url, placeholder: "Script URL", class: "form-control" %>
|
10
11
|
</div>
|
11
|
-
<div class="form-group
|
12
|
+
<div class="form-group field_with_errors">
|
12
13
|
<%= form.label :script_url_release, "Initial Release" %>
|
13
14
|
<%= form.date_select :script_url_release, class: "form-control" %>
|
14
15
|
</div>
|
15
|
-
<div class="form-group
|
16
|
+
<div class="form-group field_with_errors">
|
16
17
|
<%= form.label :script_url_cdn_update, "Latest Release" %>
|
17
18
|
<%= form.date_select :script_url_cdn_update, class: "form-control" %>
|
18
19
|
</div>
|
19
|
-
<div class="form-group
|
20
|
+
<div class="form-group field_with_errorss">
|
20
21
|
<label>Script Version</label>
|
21
22
|
<%= collection_select(:script_url, :version_id, Phcscriptcdn::Script::Version.order('script_version_number'), :id, :script_version_number, {}, {class: "form-control"}) %>
|
22
23
|
</div>
|
23
|
-
<div class="form-group
|
24
|
+
<div class="form-group field_with_errorss">
|
24
25
|
<label>Script Extensions</label>
|
25
26
|
<%= collection_select(:script_url, :extension_id, Phcscriptcdn::Script::Extension.order('script_extension_name'), :id, :script_extension, {}, {class: "form-control"}) %>
|
26
27
|
</div>
|
@@ -5,6 +5,18 @@
|
|
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"><%= yield(:phc_breadcrumb_two) %></li>
|
12
|
+
<li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_three) %></li>
|
13
|
+
</ol>
|
14
|
+
<!-- Page Bradcrumbs -->
|
15
|
+
|
16
|
+
<!-- Page Header -->
|
17
|
+
<h1 class="page-header"><%= yield(:phc_title) %></h1>
|
18
|
+
<!-- Page Header -->
|
19
|
+
|
8
20
|
<!-- Page Content -->
|
9
21
|
<div class="panel panel-inverse">
|
10
22
|
<div class="panel-heading">
|
@@ -13,14 +25,12 @@
|
|
13
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>
|
14
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>
|
15
27
|
</div>
|
16
|
-
<h4 class="panel-title"><%= yield(:
|
28
|
+
<h4 class="panel-title"><%= yield(:phc_title) %></h4>
|
17
29
|
</div>
|
18
30
|
<div class="panel-body">
|
19
|
-
|
20
|
-
<!-- -->
|
31
|
+
<!-- Form to Edit URL -->
|
21
32
|
<%= render 'form', { form_url: script_listing_url_path } %>
|
22
|
-
<!--
|
23
|
-
|
33
|
+
<!-- Form to Edit URL -->
|
24
34
|
</div>
|
25
35
|
</div>
|
26
36
|
<!-- Page Content -->
|
@@ -7,27 +7,30 @@
|
|
7
7
|
|
8
8
|
<!-- Page Bradcrumbs -->
|
9
9
|
<ol class="breadcrumb pull-right">
|
10
|
-
|
11
|
-
|
10
|
+
<li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
|
11
|
+
<li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_two) %></li>
|
12
12
|
</ol>
|
13
13
|
<!-- Page Bradcrumbs -->
|
14
14
|
|
15
15
|
<!-- Page Header -->
|
16
16
|
<h1 class="page-header"><%= yield(:phc_title) %></h1>
|
17
17
|
<!-- Page Header -->
|
18
|
-
|
19
|
-
<!-- Page Content -->
|
18
|
+
|
19
|
+
<!-- Page & Panel Content -->
|
20
20
|
<div class="panel panel-inverse">
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
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 - URL Index -->
|
31
34
|
<div class="table-responsive">
|
32
35
|
<table class="table table-striped table-bordered">
|
33
36
|
<thead>
|
@@ -49,9 +52,10 @@
|
|
49
52
|
</table>
|
50
53
|
<%= link_to phcscriptcdn.new_script_listing_url_path, class: "btn btn-primary" do %>
|
51
54
|
<i class="fas fa-plus-circle"></i>
|
52
|
-
|
55
|
+
Add a New CDN URL
|
53
56
|
<% end %>
|
54
57
|
</div>
|
58
|
+
<!-- Table - URL Index -->
|
55
59
|
</div>
|
56
60
|
</div>
|
57
61
|
<!-- Page Content -->
|
@@ -17,7 +17,7 @@
|
|
17
17
|
<!-- Page Header -->
|
18
18
|
<h1 class="page-header"><%= yield(:phc_title) %></h1>
|
19
19
|
<!-- Page Header -->
|
20
|
-
|
20
|
+
|
21
21
|
<!-- Page Content -->
|
22
22
|
<div class="panel panel-inverse">
|
23
23
|
<div class="panel-heading">
|
@@ -26,14 +26,12 @@
|
|
26
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
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
28
|
</div>
|
29
|
-
<h4 class="panel-title"><%= yield(:
|
29
|
+
<h4 class="panel-title"><%= yield(:phc_title) %></h4>
|
30
30
|
</div>
|
31
31
|
<div class="panel-body">
|
32
|
-
|
33
|
-
<!-- -->
|
32
|
+
<!-- Form for New URL -->
|
34
33
|
<%= render 'form', { form_url: script_listing_urls_path } %>
|
35
|
-
<!--
|
36
|
-
|
34
|
+
<!-- Form for New URL -->
|
37
35
|
</div>
|
38
36
|
</div>
|
39
37
|
<!-- Page Content -->
|
@@ -30,12 +30,10 @@
|
|
30
30
|
</div>
|
31
31
|
</div>
|
32
32
|
<div class="panel-body">
|
33
|
-
|
34
33
|
<div class="btn-group d-flex" role="group">
|
35
34
|
<%= link_to 'Update', edit_script_listing_url_path, class: "btn btn-primary" %>
|
36
35
|
<%= link_to 'Remove', script_listing_url_path, method: :delete, data: { confirm: 'Are you sure?' }, class: "btn btn-danger" %>
|
37
|
-
</div>
|
38
|
-
|
36
|
+
</div>
|
39
37
|
</div>
|
40
38
|
</div>
|
41
39
|
|
@@ -44,7 +42,6 @@
|
|
44
42
|
|
45
43
|
<!-- Main Panel -->
|
46
44
|
<div class="col-lg-8">
|
47
|
-
|
48
45
|
</div>
|
49
46
|
<!-- Main Panel -->
|
50
47
|
|
@@ -1,10 +1,11 @@
|
|
1
1
|
<%= form_with(model: script_version, local: true) do |form| %>
|
2
2
|
|
3
3
|
<!-- PHCNotifi Render Validation -->
|
4
|
-
<%= render 'phcnotifi/validations', :object => @script_version %>
|
4
|
+
<%= render 'phcnotifi/default/validations', :object => @script_version %>
|
5
|
+
<!-- PHCNotifi Render Validation -->
|
5
6
|
|
6
7
|
<!-- Form Input Fields -->
|
7
|
-
<div class="form-group
|
8
|
+
<div class="form-group field_with_errors">
|
8
9
|
<%= form.label :script_version_number, "Version Number" %>
|
9
10
|
<%= form.text_field :script_version_number, placeholder: "Version Number", class: "form-control" %>
|
10
11
|
</div>
|