phcscriptcdnpro 1.3.0 → 1.3.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b09a80aa2f2375e1e4bb1f2f55e9f87f36c6dbab
4
- data.tar.gz: 6ad412d50bdf7c234aa145304bcdf14fb0a06b6b
3
+ metadata.gz: 55aff096e439c6dadd97916eb50db08202d821b5
4
+ data.tar.gz: f189bc26750eb18cd234fdf7b6f481c270c6c7b4
5
5
  SHA512:
6
- metadata.gz: 28ef1f7b677a0fb2e50f6ab3a6904de86919e6634a91dbed02b824c700ce24b06c94eb18fb2929cdef9f753c9c56e381baaac265ecbf29f38c9e2dde026e2ea3
7
- data.tar.gz: 612665408bca7d94166aa0d98deab68976a1939e3005dc95bf7c06d4d9196325cf233e21da6d674e604cde15950c37062e8dab6adf6db4abcd4c498fd9aa56ff
6
+ metadata.gz: ba770c9beac9be98eace0a0736c4d6e84a6bc8c39995c82c791a6a0706ed32e4bb05707b7effb2b56cfbdd541a49c44df7a94c60a40708fdc7d0210f5b9ab02f
7
+ data.tar.gz: 9dac6f904153ef146a5608f9d58b079c95ba07c8bc7c0f115fbae113a4bd1646c05d9d3a9d2d71305573d548f1632ae0bcfbcbc8e852e6ac63129bb6b5904b6e
@@ -12,17 +12,9 @@ module Phcscriptcdnpro
12
12
  @scriptcdn_scripts = Scriptcdn::Script.all
13
13
  end
14
14
 
15
- # Script List (Frontend)
16
- def list
17
- end
18
-
19
15
  # Detailed Script CDN Profile
20
16
  def show
21
17
  end
22
-
23
- # Script Individual Listing (Frontend)
24
- def listing
25
- end
26
18
 
27
19
  # New Script for CDN
28
20
  def new
@@ -2,21 +2,21 @@
2
2
 
3
3
  <%= render 'phcnotifi/validations', :object => @scriptcdn_script %>
4
4
 
5
- <div class="form-group">
5
+ <div class="form-group field_with_error">
6
6
  <%= f.label :scrptname, "Script Name" %>
7
- <%= f.text_field :scrptname, class: "form-control" %>
7
+ <%= f.text_field :scrptname, class: "form-control", placeholder: "Script Name" %>
8
8
  </div>
9
- <div class="form-group">
9
+ <div class="form-group field_with_error">
10
10
  <%= f.label :scrptdescription, "Script Description" %>
11
- <%= f.text_area :scrptdescription, class: "form-control" %>
11
+ <%= f.text_area :scrptdescription, class: "form-control", placeholder: "Description for Script" %>
12
12
  </div>
13
- <div class="form-group">
13
+ <div class="form-group field_with_error">
14
14
  <%= f.label :scriptversion_id, "Script Version" %>
15
15
  <%= collection_select(:scriptcdn_script, :scriptversion_id, Phcscriptcdnpro::Scriptcdn::Scriptversion.order('scrptversion'), :id, :scrptversion, {}, {class: "form-control form-control-sm"}) %>
16
16
  </div>
17
17
 
18
18
  <div class="actions">
19
- <%= f.submit "Submit", class: "btn btn-primary btn-sm" %>
19
+ <%= f.submit "Submit", class: "btn blue-hoki" %>
20
20
  </div>
21
21
 
22
22
  <% end %>
@@ -1,12 +1,43 @@
1
- <%= render 'phcnotifi/notifications' %>
1
+ <!-- Title System -->
2
+ <% phc_title "Scripts" %>
3
+ <% phc_title_tagline "Edit Script Title or Description" %>
4
+
5
+ <!-- Bread Crumb -->
6
+ <div class="page-bar">
7
+
8
+ <ul class="page-breadcrumb">
9
+ <li><%= link_to "Scripts Main", phcscriptcdnpro.scriptcdn_scripts_path %><i class="fa fa-circle"></i></li>
10
+ <li class="active"><%= yield(:phc_title_tagline) %></li>
11
+ </ul>
12
+
13
+ </div>
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
+
22
+ <!-- Main Content -->
23
+ <div class="row">
24
+ <div class="col-lg-12">
25
+
26
+ <div class="portlet light">
27
+
28
+ <div class="portlet-title">
29
+ <div class="caption">
30
+ <span class="caption-subject bold uppercase"><%= yield(:phc_title_tagline) %></span>
31
+ </div>
32
+ <div class="actions">
33
+ </div>
34
+ </div>
35
+
36
+ <div class="portlet-body">
37
+ <%= render 'form' %>
38
+ </div>
2
39
 
3
- <div class="wrapper wrapper-content">
4
- <div class="panel panel-default">
5
- <div class="panel-heading">
6
- <i class="fa fa-code"></i> Edit Script
7
- </div>
8
- <div class="panel-body">
9
- <%= render 'form' %>
10
40
  </div>
41
+
11
42
  </div>
12
43
  </div>
@@ -1,5 +1,3 @@
1
- <%= render 'phcnotifi/notifications' %>
2
-
3
1
  <!-- Main Content -->
4
2
  <div class="wrapper wrapper-content">
5
3
  <div class="panel panel-default">
@@ -20,10 +18,13 @@
20
18
  <% @scriptcdn_scripts.each do |scriptcdn_script| %>
21
19
  <tr>
22
20
  <td><%= scriptcdn_script.scrptname %></td>
21
+
23
22
  <td><div class="btn-group" role="group" aria-label="Script CDN">
24
- <%= link_to 'Show', scriptcdn_script, class: "btn btn-w-m btn-primary btn-xs btn-phc-custom" %>
25
- <%= link_to 'Edit', edit_scriptcdn_script_path(scriptcdn_script), class: "btn btn-w-m btn-primary btn-xs btn-phc-custom" %>
26
- <%= link_to 'Destroy', scriptcdn_script, class: "btn btn-w-m btn-danger btn-xs btn-phc-custom", method: :delete, data: { confirm: 'Are you sure?' } %>
23
+ <% if current_user %>
24
+ <%= link_to 'Show', scriptcdn_script, class: "btn btn-w-m btn-primary btn-xs btn-phc-custom" %>
25
+ <%= link_to 'Edit', edit_scriptcdn_script_path(scriptcdn_script), class: "btn btn-w-m btn-primary btn-xs btn-phc-custom" %>
26
+ <%= link_to 'Destroy', scriptcdn_script, class: "btn btn-w-m btn-danger btn-xs btn-phc-custom", method: :delete, data: { confirm: 'Are you sure?' } %>
27
+ <% end %>
27
28
  </div></td>
28
29
  </tr>
29
30
  <% end %>
@@ -1,11 +1,43 @@
1
- <%= render 'phcnotifi/notifications' %>
2
- <div class="wrapper wrapper-content">
3
- <div class="panel panel-default">
4
- <div class="panel-heading">
5
- <i class="fa fa-code"></i> Add a New Script
6
- </div>
7
- <div class="panel-body">
8
- <%= render 'form' %>
1
+ <!-- Title System -->
2
+ <% phc_title "Scripts" %>
3
+ <% phc_title_tagline "New Script for CDN" %>
4
+
5
+ <!-- Bread Crumb -->
6
+ <div class="page-bar">
7
+
8
+ <ul class="page-breadcrumb">
9
+ <li><%= link_to "Scripts Main", phcscriptcdnpro.scriptcdn_scripts_path %><i class="fa fa-circle"></i></li>
10
+ <li class="active"><%= yield(:phc_title_tagline) %></li>
11
+ </ul>
12
+
13
+ </div>
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
+
22
+ <!-- Main Content -->
23
+ <div class="row">
24
+ <div class="col-lg-12">
25
+
26
+ <div class="portlet light">
27
+
28
+ <div class="portlet-title">
29
+ <div class="caption">
30
+ <span class="caption-subject bold uppercase"><%= yield(:phc_title_tagline) %></span>
31
+ </div>
32
+ <div class="actions">
33
+ </div>
34
+ </div>
35
+
36
+ <div class="portlet-body">
37
+ <%= render 'form' %>
38
+ </div>
39
+
9
40
  </div>
41
+
10
42
  </div>
11
43
  </div>
@@ -14,6 +14,7 @@
14
14
  <strong>Script Version:</strong>
15
15
  <%= @scriptcdn_script.scriptversion_id %>
16
16
  </p>
17
-
18
- <%= link_to 'Edit', edit_scriptcdn_script_path(@scriptcdn_script) %> |
19
- <%= link_to 'Back', scriptcdn_scripts_path %>
17
+ <% if current_user %>
18
+ <%= link_to 'Edit', edit_scriptcdn_script_path(@scriptcdn_script) %> |
19
+ <%= link_to 'Back', scriptcdn_scripts_path %>
20
+ <% end %>
@@ -2,21 +2,21 @@
2
2
 
3
3
  <%= render 'phcnotifi/validations', :object => @scriptcdn_scripturl %>
4
4
 
5
- <div class="field">
6
- <label><%= f.label :scrpturlphc, "Script URL (AWS)" %></label>
7
- <%= f.text_field :scrpturlphc, class: "form-control" %>
5
+ <div class="form-group field_with_error">
6
+ <label><%= f.label :scrpturlphc, "Script URL" %></label>
7
+ <%= f.text_field :scrpturlphc, class: "form-control", placeholder: "Script URL (AWS)" %>
8
8
  </div>
9
- <div class="field">
9
+ <div class="form-group field_with_error">
10
10
  <label><%= f.label :scrpturltype, "Script Type" %></label>
11
- <%= f.select :scrpturltype, [['CSS','css'],['JS','js'],['font','Font']], class: "form-control" %>
11
+ <%= f.select :scrpturltype, [['CSS','css'],['JS','js'],['font','Font']], {}, {class: "form-control"} %>
12
12
  </div>
13
- <div class="form-group">
13
+ <div class="form-group field_with_error">
14
14
  <label><%= f.label :scriptversion_id, "Script Version" %></label>
15
15
  <%= collection_select(:scriptcdn_scripturl, :scriptversion_id, Phcscriptcdnpro::Scriptcdn::Scriptversion.order('scrptversion'), :id, :scrptversion, {}, {class: "form-control"}) %>
16
16
  </div>
17
17
 
18
18
  <div class="actions">
19
- <%= f.submit "Submit", class: "btn btn-primary btn-sm"%>
19
+ <%= f.submit "Submit", class: "btn blue-hoki" %>
20
20
  </div>
21
21
 
22
22
  <% end %>
@@ -2,21 +2,21 @@
2
2
 
3
3
  <%= render 'phcnotifi/validations', :object => @scriptcdn_scripturl %>
4
4
 
5
- <div class="field">
6
- <label><%= f.label :scrpturlphc, "Script URL (AWS)" %></label>
7
- <%= f.text_field :scrpturlphc, class: "form-control" %>
5
+ <div class="form-group field_with_error">
6
+ <%= f.label :scrpturlphc, "Script URL" %>
7
+ <%= f.text_field :scrpturlphc, class: "form-control", placeholder: "Script URL (AWS)" %>
8
8
  </div>
9
- <div class="field">
10
- <label><%= f.label :scrpturltype, "Script Type" %></label>
11
- <%= f.select :scrpturltype, [['CSS','css'],['JS','js'],['font','Font']], class: "form-control" %>
9
+ <div class="form-group field_with_error">
10
+ <%= f.label :scrpturltype, "Script Type" %>
11
+ <%= f.select :scrpturltype, [['CSS','css'],['JS','js'],['font','Font']], {}, {class: "form-control"} %>
12
12
  </div>
13
- <div class="form-group">
14
- <label><%= f.label :scriptversion_id, "Script Version" %></label>
13
+ <div class="form-group field_with_error">
14
+ <%= f.label :scriptversion_id, "Script Version" %>
15
15
  <%= collection_select(:scriptcdn_scripturl, :scriptversion_id, Phcscriptcdnpro::Scriptcdn::Scriptversion.order('scrptversion'), :id, :scrptversion, {}, {class: "form-control"}) %>
16
16
  </div>
17
17
 
18
18
  <div class="actions">
19
- <%= f.submit "Submit", class: "btn btn-primary btn-sm"%>
19
+ <%= f.submit "Submit", class: "btn blue-hoki" %>
20
20
  </div>
21
21
 
22
22
  <% end %>
@@ -1,12 +1,42 @@
1
- <%= render 'phcnotifi/notifications' %>
1
+ <!-- Title System -->
2
+ <% phc_title "Script URL Packs" %>
3
+ <% phc_title_tagline "Edit Script URL Pack Information" %>
4
+
5
+ <!-- Bread Crumb -->
6
+ <div class="page-bar">
7
+
8
+ <ul class="page-breadcrumb">
9
+ <li><%= link_to "Script URL List", phcscriptcdnpro.scriptcdn_scriptversion_scripturls_path %><i class="fa fa-circle"></i></li>
10
+ <li class="active"><%= yield(:phc_title_tagline) %></li>
11
+ </ul>
12
+
13
+ </div>
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
+ <!-- Main Content -->
22
+ <div class="row">
23
+ <div class="col-lg-12">
24
+
25
+ <div class="portlet light">
26
+
27
+ <div class="portlet-title">
28
+ <div class="caption">
29
+ <span class="caption-subject bold uppercase"><%= yield(:phc_title_tagline) %></span>
30
+ </div>
31
+ <div class="actions">
32
+ </div>
33
+ </div>
34
+
35
+ <div class="portlet-body">
36
+ <%= render 'formpatch' %>
37
+ </div>
2
38
 
3
- <div class="wrapper wrapper-content">
4
- <div class="panel panel-default">
5
- <div class="panel-heading">
6
- <i class="fa fa-code"></i> Edit Script URL
7
- </div>
8
- <div class="panel-body">
9
- <%= render 'formpatch' %>
10
39
  </div>
40
+
11
41
  </div>
12
42
  </div>
@@ -1,5 +1,3 @@
1
- <%= render 'phcnotifi/notifications' %>
2
-
3
1
  <!-- Main Content -->
4
2
  <div class="wrapper wrapper-content">
5
3
  <div class="panel panel-default">
@@ -1,12 +1,42 @@
1
- <%= render 'phcnotifi/notifications' %>
1
+ <!-- Title System -->
2
+ <% phc_title "Script URL Packs" %>
3
+ <% phc_title_tagline "New Script URL Pack" %>
4
+
5
+ <!-- Bread Crumb -->
6
+ <div class="page-bar">
7
+
8
+ <ul class="page-breadcrumb">
9
+ <li><%= link_to "Script URL List", phcscriptcdnpro.scriptcdn_scriptversion_scripturls_path %><i class="fa fa-circle"></i></li>
10
+ <li class="active"><%= yield(:phc_title_tagline) %></li>
11
+ </ul>
12
+
13
+ </div>
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
+ <!-- Main Content -->
22
+ <div class="row">
23
+ <div class="col-lg-12">
24
+
25
+ <div class="portlet light">
26
+
27
+ <div class="portlet-title">
28
+ <div class="caption">
29
+ <span class="caption-subject bold uppercase"><%= yield(:phc_title_tagline) %></span>
30
+ </div>
31
+ <div class="actions">
32
+ </div>
33
+ </div>
34
+
35
+ <div class="portlet-body">
36
+ <%= render 'form' %>
37
+ </div>
2
38
 
3
- <div class="wrapper wrapper-content">
4
- <div class="panel panel-default">
5
- <div class="panel-heading">
6
- <i class="fa fa-code"></i> Add a New Script URL
7
- </div>
8
- <div class="panel-body">
9
- <%= render 'form' %>
10
39
  </div>
40
+
11
41
  </div>
12
42
  </div>
@@ -1,12 +1,42 @@
1
- <%= render 'phcnotifi/notifications' %>
1
+ <!-- Title System -->
2
+ <% phc_title "Script Versions" %>
3
+ <% phc_title_tagline "Edit Script Version" %>
4
+
5
+ <!-- Bread Crumb -->
6
+ <div class="page-bar">
7
+
8
+ <ul class="page-breadcrumb">
9
+ <li><%= link_to "Script Versions", phcscriptcdnpro.scriptcdn_scriptversions_path %><i class="fa fa-circle"></i></li>
10
+ <li class="active"><%= yield(:phc_title_tagline) %></li>
11
+ </ul>
12
+
13
+ </div>
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
+ <!-- Main Content -->
22
+ <div class="row">
23
+ <div class="col-lg-12">
24
+
25
+ <div class="portlet light">
26
+
27
+ <div class="portlet-title">
28
+ <div class="caption">
29
+ <span class="caption-subject bold uppercase"><%= yield(:phc_title_tagline) %></span>
30
+ </div>
31
+ <div class="actions">
32
+ </div>
33
+ </div>
34
+
35
+ <div class="portlet-body">
36
+ <%= render 'form' %>
37
+ </div>
2
38
 
3
- <div class="wrapper wrapper-content">
4
- <div class="panel panel-default">
5
- <div class="panel-heading">
6
- <i class="fa fa-code"></i> Edit Script Version Pak Information
7
- </div>
8
- <div class="panel-body">
9
- <%= render 'form' %>
10
39
  </div>
40
+
11
41
  </div>
12
42
  </div>
@@ -1,12 +1,42 @@
1
- <%= render 'phcnotifi/notifications' %>
1
+ <!-- Title System -->
2
+ <% phc_title "Script Versions" %>
3
+ <% phc_title_tagline "New Script Version Pack" %>
4
+
5
+ <!-- Bread Crumb -->
6
+ <div class="page-bar">
7
+
8
+ <ul class="page-breadcrumb">
9
+ <li><%= link_to "Script Versions", phcscriptcdnpro.scriptcdn_scriptversions_path %><i class="fa fa-circle"></i></li>
10
+ <li class="active"><%= yield(:phc_title_tagline) %></li>
11
+ </ul>
12
+
13
+ </div>
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
+ <!-- Main Content -->
22
+ <div class="row">
23
+ <div class="col-lg-12">
24
+
25
+ <div class="portlet light">
26
+
27
+ <div class="portlet-title">
28
+ <div class="caption">
29
+ <span class="caption-subject bold uppercase"><%= yield(:phc_title_tagline) %></span>
30
+ </div>
31
+ <div class="actions">
32
+ </div>
33
+ </div>
34
+
35
+ <div class="portlet-body">
36
+ <%= render 'form' %>
37
+ </div>
2
38
 
3
- <div class="wrapper wrapper-content">
4
- <div class="panel panel-default">
5
- <div class="panel-heading">
6
- <i class="fa fa-code"></i> Create a New Script Version Pak
7
- </div>
8
- <div class="panel-body">
9
- <%= render 'form' %>
10
39
  </div>
40
+
11
41
  </div>
12
42
  </div>
@@ -1,3 +1,3 @@
1
1
  module Phcscriptcdnpro
2
- VERSION = "1.3.0"
2
+ VERSION = "1.3.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phcscriptcdnpro
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - BradPotts
@@ -406,10 +406,8 @@ files:
406
406
  - app/views/phcscriptcdnpro/scriptcdn/scripts/_form.html.erb
407
407
  - app/views/phcscriptcdnpro/scriptcdn/scripts/edit.html.erb
408
408
  - app/views/phcscriptcdnpro/scriptcdn/scripts/index.html.erb
409
- - app/views/phcscriptcdnpro/scriptcdn/scripts/index_scriptlist.html.erb
410
409
  - app/views/phcscriptcdnpro/scriptcdn/scripts/new.html.erb
411
410
  - app/views/phcscriptcdnpro/scriptcdn/scripts/show.html.erb
412
- - app/views/phcscriptcdnpro/scriptcdn/scripts/show_scriptlisting.html.erb
413
411
  - app/views/phcscriptcdnpro/scriptcdn/scripturls/_form.html.erb
414
412
  - app/views/phcscriptcdnpro/scriptcdn/scripturls/_formpatch.html.erb
415
413
  - app/views/phcscriptcdnpro/scriptcdn/scripturls/edit.html.erb
@@ -1,8 +0,0 @@
1
- <%= render 'phcnotifi/notifications' %>
2
-
3
- <% @scriptcdn_scripts.each do |scriptcdn_script| %>
4
- <div>
5
- <div><%= scriptcdn_script.scrptname %></div>
6
- <div><%= scriptcdn_script.scrptdescription %></div>
7
- </div>
8
- <% end %>
@@ -1,16 +0,0 @@
1
- <%= render 'phcnotifi/notifications' %>
2
-
3
- <p>
4
- <strong>Script Name:</strong>
5
- <%= @scriptcdn_script.scrptname %>
6
- </p>
7
-
8
- <p>
9
- <strong>Script Description:</strong>
10
- <%= @scriptcdn_script.scrptdescription %>
11
- </p>
12
-
13
- <p>
14
- <strong>Script Version:</strong>
15
- <%= @scriptcdn_script.scriptversion_id %>
16
- </p>