phcdevworks_scripts 8.2.0 → 9.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (108) hide show
  1. checksums.yaml +4 -4
  2. data/MIT-LICENSE +20 -20
  3. data/README.md +3 -1
  4. data/Rakefile +8 -8
  5. data/app/assets/config/phcdevworks_scripts_manifest.js +2 -3
  6. data/app/controllers/phcdevworks_scripts/application_controller.rb +0 -0
  7. data/app/controllers/phcdevworks_scripts/script/authors_controller.rb +0 -0
  8. data/app/controllers/phcdevworks_scripts/script/extensions_controller.rb +0 -0
  9. data/app/controllers/phcdevworks_scripts/script/listings_controller.rb +0 -0
  10. data/app/controllers/phcdevworks_scripts/script/urls_controller.rb +0 -0
  11. data/app/controllers/phcdevworks_scripts/script/versions_controller.rb +0 -0
  12. data/app/controllers/phcdevworks_scripts/snippet/posts_controller.rb +0 -0
  13. data/app/controllers/phcdevworks_scripts/snippet/urls_controller.rb +0 -0
  14. data/app/helpers/phcdevworks_scripts/application_helper.rb +0 -0
  15. data/app/helpers/phcdevworks_scripts/script/authors_helper.rb +0 -0
  16. data/app/helpers/phcdevworks_scripts/script/extensions_helper.rb +0 -0
  17. data/app/helpers/phcdevworks_scripts/script/listings_helper.rb +0 -0
  18. data/app/helpers/phcdevworks_scripts/script/urls_helper.rb +0 -0
  19. data/app/helpers/phcdevworks_scripts/script/versions_helper.rb +0 -0
  20. data/app/helpers/phcdevworks_scripts/snippet/posts_helper.rb +0 -0
  21. data/app/helpers/phcdevworks_scripts/snippet/urls_helper.rb +0 -0
  22. data/app/jobs/phcdevworks_scripts/application_job.rb +0 -0
  23. data/app/mailers/phcdevworks_scripts/application_mailer.rb +0 -0
  24. data/app/models/phcdevworks_scripts/application_record.rb +0 -0
  25. data/app/models/phcdevworks_scripts/script/author.rb +0 -0
  26. data/app/models/phcdevworks_scripts/script/extension.rb +0 -0
  27. data/app/models/phcdevworks_scripts/script/listing.rb +0 -0
  28. data/app/models/phcdevworks_scripts/script/url.rb +0 -0
  29. data/app/models/phcdevworks_scripts/script/version.rb +0 -0
  30. data/app/models/phcdevworks_scripts/script.rb +0 -0
  31. data/app/models/phcdevworks_scripts/script_author_versions.rb +0 -0
  32. data/app/models/phcdevworks_scripts/script_extension_versions.rb +0 -0
  33. data/app/models/phcdevworks_scripts/script_listing_versions.rb +0 -0
  34. data/app/models/phcdevworks_scripts/script_url_versions.rb +0 -0
  35. data/app/models/phcdevworks_scripts/script_version_versions.rb +0 -0
  36. data/app/models/phcdevworks_scripts/snippet/post.rb +0 -0
  37. data/app/models/phcdevworks_scripts/snippet/url.rb +0 -0
  38. data/app/models/phcdevworks_scripts/snippet.rb +0 -0
  39. data/app/models/phcdevworks_scripts/snippet_post_versions.rb +0 -0
  40. data/app/models/phcdevworks_scripts/snippet_url_versions.rb +0 -0
  41. data/app/views/layouts/phcdevworks_scripts/application.html.erb +73 -131
  42. data/app/views/layouts/phcdevworks_scripts/components/backend/footer/_footer.html.erb +10 -9
  43. data/app/views/layouts/phcdevworks_scripts/components/backend/navigation/_top_menu.html.erb +26 -25
  44. data/app/views/layouts/phcdevworks_scripts/components/backend/sidebars/_side_menu.html.erb +491 -349
  45. data/app/views/phcdevworks_scripts/script/authors/_form.html.erb +16 -16
  46. data/app/views/phcdevworks_scripts/script/authors/edit.html.erb +23 -31
  47. data/app/views/phcdevworks_scripts/script/authors/index.html.erb +50 -58
  48. data/app/views/phcdevworks_scripts/script/authors/new.html.erb +23 -31
  49. data/app/views/phcdevworks_scripts/script/authors/show.html.erb +13 -13
  50. data/app/views/phcdevworks_scripts/script/extensions/_form.html.erb +14 -14
  51. data/app/views/phcdevworks_scripts/script/extensions/edit.html.erb +23 -31
  52. data/app/views/phcdevworks_scripts/script/extensions/index.html.erb +46 -54
  53. data/app/views/phcdevworks_scripts/script/extensions/new.html.erb +23 -31
  54. data/app/views/phcdevworks_scripts/script/extensions/show.html.erb +13 -13
  55. data/app/views/phcdevworks_scripts/script/listings/_form.html.erb +29 -29
  56. data/app/views/phcdevworks_scripts/script/listings/edit.html.erb +23 -31
  57. data/app/views/phcdevworks_scripts/script/listings/index.html.erb +50 -58
  58. data/app/views/phcdevworks_scripts/script/listings/new.html.erb +23 -31
  59. data/app/views/phcdevworks_scripts/script/listings/show.html.erb +13 -13
  60. data/app/views/phcdevworks_scripts/script/urls/_form.html.erb +18 -18
  61. data/app/views/phcdevworks_scripts/script/urls/edit.html.erb +27 -35
  62. data/app/views/phcdevworks_scripts/script/urls/index.html.erb +48 -56
  63. data/app/views/phcdevworks_scripts/script/urls/new.html.erb +23 -31
  64. data/app/views/phcdevworks_scripts/script/urls/show.html.erb +13 -13
  65. data/app/views/phcdevworks_scripts/script/versions/_form.html.erb +10 -10
  66. data/app/views/phcdevworks_scripts/script/versions/edit.html.erb +23 -31
  67. data/app/views/phcdevworks_scripts/script/versions/index.html.erb +43 -51
  68. data/app/views/phcdevworks_scripts/script/versions/new.html.erb +23 -31
  69. data/app/views/phcdevworks_scripts/script/versions/show.html.erb +13 -13
  70. data/app/views/phcdevworks_scripts/snippet/posts/_form.html.erb +12 -12
  71. data/app/views/phcdevworks_scripts/snippet/posts/edit.html.erb +23 -31
  72. data/app/views/phcdevworks_scripts/snippet/posts/index.html.erb +54 -62
  73. data/app/views/phcdevworks_scripts/snippet/posts/new.html.erb +23 -31
  74. data/app/views/phcdevworks_scripts/snippet/posts/show.html.erb +25 -25
  75. data/app/views/phcdevworks_scripts/snippet/urls/_form.html.erb +10 -10
  76. data/app/views/phcdevworks_scripts/snippet/urls/edit.html.erb +23 -31
  77. data/app/views/phcdevworks_scripts/snippet/urls/index.html.erb +52 -60
  78. data/app/views/phcdevworks_scripts/snippet/urls/new.html.erb +23 -31
  79. data/app/views/phcdevworks_scripts/snippet/urls/show.html.erb +25 -25
  80. data/config/routes.rb +0 -4
  81. data/config/spring.rb +0 -0
  82. data/db/migrate/20170517064030_create_phcdevworks_scripts_script_extension_versions.rb +1 -1
  83. data/db/migrate/20170517064049_create_phcdevworks_scripts_script_listing_versions.rb +1 -1
  84. data/db/migrate/20170517064114_create_phcdevworks_scripts_script_version_versions.rb +1 -1
  85. data/db/migrate/20170517064150_create_phcdevworks_scripts_script_url_versions.rb +1 -1
  86. data/db/migrate/20170517064208_create_phcdevworks_scripts_script_author_versions.rb +1 -1
  87. data/db/migrate/20190818022002_create_phcdevworks_scripts_snippet_posts.rb +1 -1
  88. data/db/migrate/20190818022024_create_phcdevworks_scripts_snippet_urls.rb +1 -1
  89. data/db/migrate/20190818022939_create_phcdevworks_scripts_script_authors.rb +1 -1
  90. data/db/migrate/20190818023353_create_phcdevworks_scripts_script_listings.rb +1 -1
  91. data/db/migrate/20190818023709_create_phcdevworks_scripts_script_extensions.rb +1 -1
  92. data/db/migrate/20190818023911_create_phcdevworks_scripts_script_urls.rb +1 -1
  93. data/db/migrate/20190818031653_create_phcdevworks_scripts_script_versions.rb +1 -1
  94. data/db/migrate/20191102092649_create_phcdevworks_scripts_snippet_url_versions.rb +1 -1
  95. data/db/migrate/20191102092711_create_phcdevworks_scripts_snippet_post_versions.rb +1 -1
  96. data/lib/phcdevworks_scripts/engine.rb +47 -47
  97. data/lib/phcdevworks_scripts/version.rb +1 -1
  98. data/lib/phcdevworks_scripts.rb +6 -6
  99. data/lib/tasks/phcdevworks_scripts_tasks.rake +4 -4
  100. metadata +28 -79
  101. data/app/assets/stylesheets/phcdevworks_scripts/application.scss +0 -15
  102. data/app/assets/stylesheets/phcdevworks_scripts/script/authors.scss +0 -3
  103. data/app/assets/stylesheets/phcdevworks_scripts/script/extensions.scss +0 -3
  104. data/app/assets/stylesheets/phcdevworks_scripts/script/listings.scss +0 -3
  105. data/app/assets/stylesheets/phcdevworks_scripts/script/urls.scss +0 -3
  106. data/app/assets/stylesheets/phcdevworks_scripts/script/versions.scss +0 -3
  107. data/app/assets/stylesheets/phcdevworks_scripts/snippet/posts.scss +0 -3
  108. data/app/assets/stylesheets/phcdevworks_scripts/snippet/urls.scss +0 -3
@@ -1,27 +1,27 @@
1
- <!-- Title System -->
1
+ <!-- -PHCDEV- Title System -->
2
2
  <% phc_title "Script Listings Manager" %>
3
3
  <% phc_title_tagline "Script Version Details" %>
4
4
  <% phc_breadcrumb_one link_to "Script Index", phcdevworks_scripts.script_listings_path %>
5
5
  <% phc_breadcrumb_two link_to "Script Version Index", phcdevworks_scripts.script_versions_path %>
6
6
  <% phc_breadcrumb_three yield(:phc_title_tagline) %>
7
- <!-- Title System -->
7
+ <!-- -PHCDEV- Title System -->
8
8
 
9
- <!-- Page Bradcrumbs -->
10
- <ol class="breadcrumb pull-right">
9
+ <!-- -PHCDEV- Bradcrumbs -->
10
+ <ol class="breadcrumb float-xl-end">
11
11
  <li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
12
12
  <li class="breadcrumb-item"><%= yield(:phc_breadcrumb_two) %></li>
13
13
  <li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_three) %></li>
14
14
  </ol>
15
- <!-- Page Bradcrumbs -->
15
+ <!-- -PHCDEV- Bradcrumbs -->
16
16
 
17
- <!-- Page Header -->
17
+ <!-- -PHCDEV- Header -->
18
18
  <h1 class="page-header"><%= yield(:phc_title) %></h1>
19
- <!-- Page Header -->
19
+ <!-- -PHCDEV- Header -->
20
20
 
21
- <!-- Page Content -->
21
+ <!-- -PHCDEV- Page Content -->
22
22
  <div class="row">
23
23
 
24
- <!-- Button Panel -->
24
+ <!-- -PHCDEV- Button Panel -->
25
25
  <div class="col-lg-4">
26
26
 
27
27
  <div class="panel panel-inverse">
@@ -38,12 +38,12 @@
38
38
  </div>
39
39
 
40
40
  </div>
41
- <!-- Button Panel -->
41
+ <!-- -PHCDEV- Button Panel -->
42
42
 
43
- <!-- Main Panel -->
43
+ <!-- -PHCDEV- Main Panel -->
44
44
  <div class="col-lg-8">
45
45
  </div>
46
- <!-- Main Panel -->
46
+ <!-- -PHCDEV- Main Panel -->
47
47
 
48
48
  </div>
49
- <!-- Page Content -->
49
+ <!-- -PHCDEV- Page Content -->
@@ -1,28 +1,28 @@
1
- <!-- Form - Script - Snippets -->
1
+ <!-- -PHCDEV- Form - Script - Snippets -->
2
2
  <%= form_with(model: @snippet_post, local: true) do |form| %>
3
3
 
4
- <!-- PHCNotifi Render Validation -->
4
+ <!-- -PHCDEV- Form Validation -->
5
5
  <%= render "phcdevworks_notifications/bootstrap/validations", :object => @snippet_post %>
6
- <!-- PHCNotifi Render Validation -->
6
+ <!-- -PHCDEV- Form Validation -->
7
7
 
8
- <!-- Form Input Fields -->
9
- <div class="form-group field_with_errors">
10
- <%= form.label :snippet_post_title, "Snippet Title" %>
8
+ <!-- -PHCDEV- Form Input Fields -->
9
+ <div class="mb-3">
10
+ <%= form.label :snippet_post_title, "Snippet Title", class: "form-label" %>
11
11
  <%= form.text_field :snippet_post_title, placeholder: "Snippet Title", class: "form-control" %>
12
12
  </div>
13
13
 
14
- <div class="form-group field_with_errors">
15
- <%= form.label :snippet_post_code, "Code Snippet" %>
14
+ <div class="mb-3">
15
+ <%= form.label :snippet_post_code, "Code Snippet", class: "form-label" %>
16
16
  <%= form.text_area :snippet_post_code, class: "form-control editor" %>
17
17
  <div id="word-count" class="mt-3"></div>
18
18
  </div>
19
- <!-- Form Input Fields -->
19
+ <!-- -PHCDEV- Form Input Fields -->
20
20
 
21
- <!-- Form Submition Button -->
21
+ <!-- -PHCDEV- Form Submition Button -->
22
22
  <div class="actions">
23
23
  <%= form.submit class: "btn btn-primary" %>
24
24
  </div>
25
- <!-- For Submition Button -->
25
+ <!-- -PHCDEV- For Submition Button -->
26
26
 
27
27
  <% end %>
28
- <!-- Form - Script - Snippets -->
28
+ <!-- -PHCDEV- Form - Script - Snippets -->
@@ -1,47 +1,39 @@
1
- <!-- PHCTitleSEO Title Variables -->
1
+ <!-- -PHCDEV- Title Variables -->
2
2
  <% phc_title "Code Snippet Manager" %>
3
3
  <% phc_title_tagline "Update Code Snippet" %>
4
4
  <% phc_breadcrumb_one link_to "Code Snippet Index", phcdevworks_scripts.snippet_posts_path %>
5
5
  <% phc_breadcrumb_two yield(:phc_title_tagline) %>
6
- <!-- PHCTitleSEO Title Variables -->
6
+ <!-- -PHCDEV- Title Variables -->
7
7
 
8
- <!-- Page Bradcrumbs -->
9
- <ol class="breadcrumb pull-right">
8
+ <!-- -PHCDEV- Bradcrumbs -->
9
+ <ol class="breadcrumb float-xl-end">
10
10
  <li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
11
11
  <li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_two) %></li>
12
12
  </ol>
13
- <!-- Page Bradcrumbs -->
13
+ <!-- -PHCDEV- Bradcrumbs -->
14
14
 
15
- <!-- Page Header -->
16
- <h2 class="page-header"><%= yield(:phc_title) %></h2>
17
- <!-- Page Header -->
15
+ <!-- -PHCDEV- Header -->
16
+ <h1 class="page-header"><%= yield(:phc_title) %></h1>
17
+ <!-- -PHCDEV- Header -->
18
18
 
19
- <!-- Page Content -->
20
- <div class="row">
21
- <div class="col-lg-12">
19
+ <!-- -PHCDEV- Panel -->
20
+ <div class="panel panel-inverse">
22
21
 
23
- <!-- Panel -->
24
- <div class="panel panel-inverse">
25
-
26
- <!-- Panel - Heading -->
27
- <div class="panel-heading">
28
- <h4 class="panel-title"><%= yield(:phc_title) %></h4>
29
- </div>
30
- <!-- Panel - Heading -->
31
-
32
- <!-- Panel - Body -->
33
- <div class="panel-body">
34
-
35
- <!-- Edit Form -->
36
- <%= render "form", script_snippet: @script_snippet %>
37
- <!-- Edit Form -->
22
+ <!-- -PHCDEV- Panel - Heading -->
23
+ <div class="panel-heading">
24
+ <h4 class="panel-title"><%= yield(:phc_title) %></h4>
25
+ </div>
26
+ <!-- -PHCDEV- Panel - Heading -->
38
27
 
39
- </div>
40
- <!-- Panel - Body -->
28
+ <!-- -PHCDEV- Panel - Body -->
29
+ <div class="panel-body">
41
30
 
42
- </div>
43
- <!-- Panel -->
31
+ <!-- -PHCDEV- Edit Form -->
32
+ <%= render "form", script_snippet: @script_snippet %>
33
+ <!-- -PHCDEV- Edit Form -->
44
34
 
45
35
  </div>
36
+ <!-- -PHCDEV- Panel - Body -->
37
+
46
38
  </div>
47
- <!-- Page Content -->
39
+ <!-- -PHCDEV- Panel -->
@@ -1,82 +1,74 @@
1
- <!-- PHCTitleSEO Title Variables -->
1
+ <!-- -PHCDEV- Title Variables -->
2
2
  <% phc_title "Code Snippet Manager" %>
3
3
  <% phc_title_tagline "Code Snippet Index" %>
4
4
  <% phc_breadcrumb_one yield(:phc_title_tagline) %>
5
5
  <% phc_breadcrumb_two link_to "Code Snippet Index", phcdevworks_scripts.snippet_posts_path %>
6
- <!-- PHCTitleSEO Title Variables -->
6
+ <!-- -PHCDEV- Title Variables -->
7
7
 
8
- <!-- Page Bradcrumbs -->
9
- <ol class="breadcrumb pull-right">
8
+ <!-- -PHCDEV- Bradcrumbs -->
9
+ <ol class="breadcrumb float-xl-end">
10
10
  <li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
11
11
  <li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_two) %></li>
12
12
  </ol>
13
- <!-- Page Bradcrumbs -->
13
+ <!-- -PHCDEV- Bradcrumbs -->
14
14
 
15
- <!-- Page Header -->
16
- <h2 class="page-header"><%= yield(:phc_title) %></h2>
17
- <!-- Page Header -->
15
+ <!-- -PHCDEV- Header -->
16
+ <h1 class="page-header"><%= yield(:phc_title) %></h1>
17
+ <!-- -PHCDEV- Header -->
18
18
 
19
- <!-- Page Content -->
20
- <div class="row">
21
- <div class="col-lg-12">
19
+ <!-- -PHCDEV- Panel -->
20
+ <div class="panel panel-inverse">
22
21
 
23
- <!-- Panel -->
24
- <div class="panel panel-inverse">
25
-
26
- <!-- Panel - Heading -->
27
- <div class="panel-heading">
28
- <h4 class="panel-title"><%= yield(:phc_title) %></h4>
29
- </div>
30
- <!-- Panel - Heading -->
31
-
32
- <!-- Panel - Body -->
33
- <div class="panel-body">
34
-
35
- <!-- Index - Table -->
36
- <div class="table-responsive">
37
- <table class="table table-striped table-bordered">
38
-
39
- <thead>
40
- <tr>
41
- <th>Snippet Title</th>
42
- <th>Snippet Summary</th>
43
- <th></th>
44
- </tr>
45
- </thead>
22
+ <!-- -PHCDEV- Panel - Heading -->
23
+ <div class="panel-heading">
24
+ <h4 class="panel-title"><%= yield(:phc_title) %></h4>
25
+ </div>
26
+ <!-- -PHCDEV- Panel - Heading -->
46
27
 
47
- <tbody>
48
- <% @snippet_posts.each do |snippet_post| %>
49
- <tr>
50
- <td><%= snippet_post.snippet_post_title %></td>
51
- <td><%= truncate(snippet_post.snippet_post_code, :length => 80, :escape => false) %></td>
52
- <td>
53
- <div class="btn-group d-flex" role="group">
54
- <%= link_to "Snippet Details", snippet_post, class: "btn btn-purple btn-xs" %>
55
- <%= link_to "Update Snippet", edit_snippet_post_path(snippet_post), class: "btn btn-primary btn-xs" %>
56
- <%= link_to "Remove Snippet", snippet_post, method: :delete, data: { confirm: "Are you sure? This will aslo delte the snippet urls." }, class: "btn btn-danger btn-xs" %>
57
- </div>
58
- </td>
59
- </tr>
60
- <% end %>
61
- </tbody>
28
+ <!-- -PHCDEV- Panel - Body -->
29
+ <div class="panel-body">
62
30
 
63
- </table>
64
- </div>
65
- <!-- Index - Table -->
31
+ <!-- -PHCDEV- Index - Table -->
32
+ <div class="table-responsive">
33
+ <table class="table table-striped table-bordered">
66
34
 
67
- <!-- New Button -->
68
- <%= link_to phcdevworks_scripts.new_snippet_post_path, class: "btn btn-primary btn-sm" do %>
69
- <i class="fad fa-plus-circle"></i>
70
- Add a New Code Snippet
71
- <% end %>
72
- <!-- New Button -->
35
+ <thead>
36
+ <tr>
37
+ <th>Snippet Title</th>
38
+ <th>Snippet Summary</th>
39
+ <th></th>
40
+ </tr>
41
+ </thead>
73
42
 
74
- </div>
75
- <!-- Panel - Body -->
43
+ <tbody>
44
+ <% @snippet_posts.each do |snippet_post| %>
45
+ <tr>
46
+ <td><%= snippet_post.snippet_post_title %></td>
47
+ <td><%= truncate(snippet_post.snippet_post_code, :length => 80, :escape => false) %></td>
48
+ <td>
49
+ <div class="btn-group d-flex" role="group">
50
+ <%= link_to "Snippet Details", snippet_post, class: "btn btn-purple btn-xs" %>
51
+ <%= link_to "Update Snippet", edit_snippet_post_path(snippet_post), class: "btn btn-primary btn-xs" %>
52
+ <%= link_to "Remove Snippet", snippet_post, method: :delete, data: { confirm: "Are you sure? This will aslo delte the snippet urls." }, class: "btn btn-danger btn-xs" %>
53
+ </div>
54
+ </td>
55
+ </tr>
56
+ <% end %>
57
+ </tbody>
76
58
 
59
+ </table>
77
60
  </div>
78
- <!-- Panel -->
61
+ <!-- -PHCDEV- Index - Table -->
62
+
63
+ <!-- -PHCDEV- New Button -->
64
+ <%= link_to phcdevworks_scripts.new_snippet_post_path, class: "btn btn-primary btn-sm" do %>
65
+ <i class="fad fa-plus-circle"></i>
66
+ Add a New Code Snippet
67
+ <% end %>
68
+ <!-- -PHCDEV- New Button -->
79
69
 
80
70
  </div>
71
+ <!-- -PHCDEV- Panel - Body -->
72
+
81
73
  </div>
82
- <!-- Page Content -->
74
+ <!-- -PHCDEV- Panel -->
@@ -1,47 +1,39 @@
1
- <!-- PHCTitleSEO Title Variables -->
1
+ <!-- -PHCDEV- Title Variables -->
2
2
  <% phc_title "Code Snippet Manager" %>
3
3
  <% phc_title_tagline "Create a New Code Snippet" %>
4
4
  <% phc_breadcrumb_one link_to "Code Snippet Index", phcdevworks_scripts.snippet_posts_path %>
5
5
  <% phc_breadcrumb_two yield(:phc_title_tagline) %>
6
- <!-- PHCTitleSEO Title Variables -->
6
+ <!-- -PHCDEV- Title Variables -->
7
7
 
8
- <!-- Page Bradcrumbs -->
9
- <ol class="breadcrumb pull-right">
8
+ <!-- -PHCDEV- Bradcrumbs -->
9
+ <ol class="breadcrumb float-xl-end">
10
10
  <li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
11
11
  <li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_two) %></li>
12
12
  </ol>
13
- <!-- Page Bradcrumbs -->
13
+ <!-- -PHCDEV- Bradcrumbs -->
14
14
 
15
- <!-- Page Header -->
16
- <h2 class="page-header"><%= yield(:phc_title) %></h2>
17
- <!-- Page Header -->
15
+ <!-- -PHCDEV- Header -->
16
+ <h1 class="page-header"><%= yield(:phc_title) %></h1>
17
+ <!-- -PHCDEV- Header -->
18
18
 
19
- <!-- Page Content -->
20
- <div class="row">
21
- <div class="col-lg-12">
19
+ <!-- -PHCDEV- Panel -->
20
+ <div class="panel panel-inverse">
22
21
 
23
- <!-- Panel -->
24
- <div class="panel panel-inverse">
25
-
26
- <!-- Panel - Heading -->
27
- <div class="panel-heading">
28
- <h4 class="panel-title"><%= yield(:phc_title) %></h4>
29
- </div>
30
- <!-- Panel - Heading -->
31
-
32
- <!-- Panel - Body -->
33
- <div class="panel-body">
34
-
35
- <!-- New Form -->
36
- <%= render "form", snippet_post: @snippet_post %>
37
- <!-- New Form -->
22
+ <!-- -PHCDEV- Panel - Heading -->
23
+ <div class="panel-heading">
24
+ <h4 class="panel-title"><%= yield(:phc_title) %></h4>
25
+ </div>
26
+ <!-- -PHCDEV- Panel - Heading -->
38
27
 
39
- </div>
40
- <!-- Panel - Body -->
28
+ <!-- -PHCDEV- Panel - Body -->
29
+ <div class="panel-body">
41
30
 
42
- </div>
43
- <!-- Panel -->
31
+ <!-- -PHCDEV- New Form -->
32
+ <%= render "form", snippet_post: @snippet_post %>
33
+ <!-- -PHCDEV- New Form -->
44
34
 
45
35
  </div>
36
+ <!-- -PHCDEV- Panel - Body -->
37
+
46
38
  </div>
47
- <!-- Page Content -->
39
+ <!-- -PHCDEV- Panel -->
@@ -1,51 +1,51 @@
1
- <!-- Title System -->
1
+ <!-- -PHCDEV- Title System -->
2
2
  <% phc_title "Code Snippet Manager" %>
3
3
  <% phc_title_tagline "Code Snippet Details" %>
4
4
  <% phc_breadcrumb_one link_to "Code Snippet Index", phcdevworks_scripts.snippet_posts_path %>
5
5
  <% phc_breadcrumb_two yield(:phc_title_tagline) %>
6
- <!-- Title System -->
6
+ <!-- -PHCDEV- Title System -->
7
7
 
8
- <!-- Page Bradcrumbs -->
9
- <ol class="breadcrumb pull-right">
8
+ <!-- -PHCDEV- Bradcrumbs -->
9
+ <ol class="breadcrumb float-xl-end">
10
10
  <li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
11
11
  <li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_two) %></li>
12
12
  </ol>
13
- <!-- Page Bradcrumbs -->
13
+ <!-- -PHCDEV- Bradcrumbs -->
14
14
 
15
- <!-- Page Header -->
15
+ <!-- -PHCDEV- Header -->
16
16
  <h1 class="page-header"><%= yield(:phc_title) %></h1>
17
- <!-- Page Header -->
17
+ <!-- -PHCDEV- Header -->
18
18
 
19
- <!-- Page Content -->
19
+ <!-- -PHCDEV- Page Content -->
20
20
  <div class="row">
21
21
 
22
- <!-- Button Area -->
22
+ <!-- -PHCDEV- Button Area -->
23
23
  <div class="col-lg-4">
24
- <!-- Button Panel -->
24
+ <!-- -PHCDEV- Button Panel -->
25
25
  <div class="panel panel-inverse">
26
- <!-- Panel Heading -->
26
+ <!-- -PHCDEV- Panel Heading -->
27
27
  <div class="panel-heading">
28
28
  <h4 class="panel-title">Options Panel</h4>
29
29
  </div>
30
- <!-- Panel Heading -->
31
- <!-- Panel Body -->
30
+ <!-- -PHCDEV- Panel Heading -->
31
+ <!-- -PHCDEV- Panel Body -->
32
32
  <div class="panel-body">
33
33
  <div class="btn-group d-flex" role="group">
34
34
  <%= link_to 'Update', phcdevworks_scripts.edit_snippet_post_path, class: "btn btn-primary" %>
35
35
  <%= link_to 'Remove', phcdevworks_scripts.snippet_post_path, method: :delete, data: { confirm: 'Are you sure?' }, class: "btn btn-danger" %>
36
36
  </div>
37
37
  </div>
38
- <!-- Panel Body -->
38
+ <!-- -PHCDEV- Panel Body -->
39
39
  </div>
40
- <!-- Button Panel -->
40
+ <!-- -PHCDEV- Button Panel -->
41
41
  </div>
42
- <!-- Button Area -->
42
+ <!-- -PHCDEV- Button Area -->
43
43
 
44
- <!-- Main Area -->
44
+ <!-- -PHCDEV- Main Area -->
45
45
  <div class="col-lg-8">
46
- <!-- Main Panel -->
46
+ <!-- -PHCDEV- Main Panel -->
47
47
  <div class="panel panel-inverse">
48
- <!-- Panel Heading -->
48
+ <!-- -PHCDEV- Panel Heading -->
49
49
  <div class="panel-heading">
50
50
  <div class="panel-heading-btn">
51
51
  <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-default" data-click="panel-expand"><i class="fa fa-expand"></i></a>
@@ -54,18 +54,18 @@
54
54
  </div>
55
55
  <h4 class="panel-title"><%= yield(:phc_title_tagline) %></h4>
56
56
  </div>
57
- <!-- Panel Heading -->
58
- <!-- Panel Body -->
57
+ <!-- -PHCDEV- Panel Heading -->
58
+ <!-- -PHCDEV- Panel Body -->
59
59
  <div class="panel-body">
60
60
  <p class="h3"><%= @snippet_post.snippet_post_title %></p>
61
61
  <hr>
62
62
  <pre><code><%= @snippet_post.snippet_post_code %></code></pre>
63
63
  </div>
64
- <!-- Panel Body -->
64
+ <!-- -PHCDEV- Panel Body -->
65
65
  </div>
66
- <!-- Main Panel -->
66
+ <!-- -PHCDEV- Main Panel -->
67
67
  </div>
68
- <!-- Main Area -->
68
+ <!-- -PHCDEV- Main Area -->
69
69
 
70
70
  </div>
71
- <!-- Page Content -->
71
+ <!-- -PHCDEV- Page Content -->
@@ -1,22 +1,22 @@
1
- <!-- Form - Script - Script URLs -->
1
+ <!-- -PHCDEV- Form - Script - Script URLs -->
2
2
  <%= form_with(model: [ @script_snippet, @snippet_url], url: form_url, local: true) do |form| %>
3
3
 
4
- <!-- PHCNotifi Render Validation -->
4
+ <!-- -PHCDEV- Form Validation -->
5
5
  <%= render "phcdevworks_notifications/bootstrap/validations", :object => @snippet_url %>
6
- <!-- PHCNotifi Render Validation -->
6
+ <!-- -PHCDEV- Form Validation -->
7
7
 
8
- <!-- Form Input Fields -->
9
- <div class="form-group field_with_errors">
10
- <%= form.label :snippet_post_url, "Script URL" %>
8
+ <!-- -PHCDEV- Form Input Fields -->
9
+ <div class="mb-3">
10
+ <%= form.label :snippet_post_url, "Script URL", class: "form-label" %>
11
11
  <%= form.text_field :snippet_post_url, placeholder: "Script Url", class: "form-control" %>
12
12
  </div>
13
- <!-- Form Input Fields -->
13
+ <!-- -PHCDEV- Form Input Fields -->
14
14
 
15
- <!-- Form Submition Button -->
15
+ <!-- -PHCDEV- Form Submition Button -->
16
16
  <div class="actions">
17
17
  <%= form.submit class: "btn btn-primary" %>
18
18
  </div>
19
- <!-- For Submition Button -->
19
+ <!-- -PHCDEV- For Submition Button -->
20
20
 
21
21
  <% end %>
22
- <!-- Form - Script - Script URLs -->
22
+ <!-- -PHCDEV- Form - Script - Script URLs -->
@@ -1,47 +1,39 @@
1
- <!-- PHCTitleSEO Title Variables -->
1
+ <!-- -PHCDEV- Title Variables -->
2
2
  <% phc_title "Code Snippet Manager" %>
3
3
  <% phc_title_tagline "Update Asset URL" %>
4
4
  <% phc_breadcrumb_one link_to "Code Snippet Index", phcdevworks_scripts.snippet_posts_path %>
5
5
  <% phc_breadcrumb_two yield(:phc_title_tagline) %>
6
- <!-- PHCTitleSEO Title Variables -->
6
+ <!-- -PHCDEV- Title Variables -->
7
7
 
8
- <!-- Page Bradcrumbs -->
9
- <ol class="breadcrumb pull-right">
8
+ <!-- -PHCDEV- Bradcrumbs -->
9
+ <ol class="breadcrumb float-xl-end">
10
10
  <li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
11
11
  <li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_two) %></li>
12
12
  </ol>
13
- <!-- Page Bradcrumbs -->
13
+ <!-- -PHCDEV- Bradcrumbs -->
14
14
 
15
- <!-- Page Header -->
16
- <h2 class="page-header"><%= yield(:phc_title) %></h2>
17
- <!-- Page Header -->
15
+ <!-- -PHCDEV- Header -->
16
+ <h1 class="page-header"><%= yield(:phc_title) %></h1>
17
+ <!-- -PHCDEV- Header -->
18
18
 
19
- <!-- Page Content -->
20
- <div class="row">
21
- <div class="col-lg-12">
19
+ <!-- -PHCDEV- Panel -->
20
+ <div class="panel panel-inverse">
22
21
 
23
- <!-- Panel -->
24
- <div class="panel panel-inverse">
25
-
26
- <!-- Panel - Heading -->
27
- <div class="panel-heading">
28
- <h4 class="panel-title"><%= yield(:phc_title) %></h4>
29
- </div>
30
- <!-- Panel - Heading -->
31
-
32
- <!-- Panel - Body -->
33
- <div class="panel-body">
34
-
35
- <!-- Edit Form -->
36
- <%= render "form", { form_url: snippet_post_url_path } %>
37
- <!-- Edit Form -->
22
+ <!-- -PHCDEV- Panel - Heading -->
23
+ <div class="panel-heading">
24
+ <h4 class="panel-title"><%= yield(:phc_title) %></h4>
25
+ </div>
26
+ <!-- -PHCDEV- Panel - Heading -->
38
27
 
39
- </div>
40
- <!-- Panel - Body -->
28
+ <!-- -PHCDEV- Panel - Body -->
29
+ <div class="panel-body">
41
30
 
42
- </div>
43
- <!-- Panel -->
31
+ <!-- -PHCDEV- Edit Form -->
32
+ <%= render "form", { form_url: snippet_post_url_path } %>
33
+ <!-- -PHCDEV- Edit Form -->
44
34
 
45
35
  </div>
36
+ <!-- -PHCDEV- Panel - Body -->
37
+
46
38
  </div>
47
- <!-- Page Content -->
39
+ <!-- -PHCDEV- Panel -->