phcscriptcdn 2.0.4 → 3.0.0.pre.beta

Sign up to get free protection for your applications and to get access to all the features.
Files changed (98) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +7 -3
  3. data/app/assets/javascripts/phcscriptcdn/script/licences.js +2 -0
  4. data/app/assets/stylesheets/phcscriptcdn/_custom.scss +9 -0
  5. data/app/assets/stylesheets/phcscriptcdn/application.scss +14 -15
  6. data/app/controllers/phcscriptcdn/script/authors_controller.rb +74 -0
  7. data/app/controllers/phcscriptcdn/script/extensions_controller.rb +65 -0
  8. data/app/controllers/phcscriptcdn/script/licences_controller.rb +65 -0
  9. data/app/controllers/phcscriptcdn/script/listings_controller.rb +65 -0
  10. data/app/controllers/phcscriptcdn/script/urls_controller.rb +75 -0
  11. data/app/controllers/phcscriptcdn/script/versions_controller.rb +65 -0
  12. data/app/helpers/phcscriptcdn/application_helper.rb +2 -2
  13. data/app/helpers/phcscriptcdn/script/licences_helper.rb +4 -0
  14. data/app/models/phcscriptcdn/script/author.rb +10 -0
  15. data/app/models/phcscriptcdn/script/extension.rb +4 -0
  16. data/app/models/phcscriptcdn/script/licence.rb +4 -0
  17. data/app/models/phcscriptcdn/script/listing.rb +13 -0
  18. data/app/models/phcscriptcdn/script/url.rb +10 -0
  19. data/app/models/phcscriptcdn/script/version.rb +5 -0
  20. data/app/models/phcscriptcdn/{scriptcdn.rb → script.rb} +2 -2
  21. data/app/views/layouts/phcscriptcdn/application.html.erb +3 -5
  22. data/app/views/phcscriptcdn/{scriptcdn → script}/authors/_form.html.erb +14 -12
  23. data/app/views/phcscriptcdn/script/authors/edit.html.erb +32 -0
  24. data/app/views/phcscriptcdn/script/authors/index.html.erb +55 -0
  25. data/app/views/phcscriptcdn/script/authors/new.html.erb +32 -0
  26. data/app/views/phcscriptcdn/script/authors/show.html.erb +4 -0
  27. data/app/views/phcscriptcdn/script/extensions/_form.html.erb +22 -0
  28. data/app/views/phcscriptcdn/script/extensions/edit.html.erb +32 -0
  29. data/app/views/phcscriptcdn/script/extensions/index.html.erb +49 -0
  30. data/app/views/phcscriptcdn/script/extensions/new.html.erb +32 -0
  31. data/app/views/phcscriptcdn/script/extensions/show.html.erb +4 -0
  32. data/app/views/phcscriptcdn/script/licences/_form.html.erb +42 -0
  33. data/app/views/phcscriptcdn/script/licences/edit.html.erb +32 -0
  34. data/app/views/phcscriptcdn/script/licences/index.html.erb +59 -0
  35. data/app/views/phcscriptcdn/script/licences/new.html.erb +32 -0
  36. data/app/views/phcscriptcdn/script/licences/show.html.erb +4 -0
  37. data/app/views/phcscriptcdn/{scriptcdn/informations → script/listings}/_form.html.erb +15 -10
  38. data/app/views/phcscriptcdn/script/listings/edit.html.erb +31 -0
  39. data/app/views/phcscriptcdn/script/listings/index.html.erb +54 -0
  40. data/app/views/phcscriptcdn/script/listings/new.html.erb +31 -0
  41. data/app/views/phcscriptcdn/script/listings/show.html.erb +27 -0
  42. data/app/views/phcscriptcdn/script/urls/_form.html.erb +12 -0
  43. data/app/views/phcscriptcdn/script/urls/edit.html.erb +32 -0
  44. data/app/views/phcscriptcdn/script/urls/index.html.erb +47 -0
  45. data/app/views/phcscriptcdn/script/urls/new.html.erb +32 -0
  46. data/app/views/phcscriptcdn/script/urls/show.html.erb +4 -0
  47. data/app/views/phcscriptcdn/script/versions/_form.html.erb +12 -0
  48. data/app/views/phcscriptcdn/script/versions/edit.html.erb +32 -0
  49. data/app/views/phcscriptcdn/script/versions/index.html.erb +47 -0
  50. data/app/views/phcscriptcdn/script/versions/new.html.erb +32 -0
  51. data/app/views/phcscriptcdn/script/versions/show.html.erb +4 -0
  52. data/config/routes.rb +13 -14
  53. data/db/migrate/20160731205205_create_phcscriptcdn_script_extensions.rb +15 -0
  54. data/db/migrate/20160731205917_create_phcscriptcdn_script_listings.rb +26 -0
  55. data/db/migrate/20160731205954_create_phcscriptcdn_script_versions.rb +13 -0
  56. data/db/migrate/20160731210626_create_phcscriptcdn_script_urls.rb +16 -0
  57. data/db/migrate/20160731210723_create_phcscriptcdn_script_authors.rb +20 -0
  58. data/db/migrate/20160801032225_create_phcscriptcdn_script_licences.rb +21 -0
  59. data/lib/phcscriptcdn/version.rb +1 -1
  60. metadata +172 -74
  61. data/app/controllers/phcscriptcdn/scriptcdn/authors_controller.rb +0 -69
  62. data/app/controllers/phcscriptcdn/scriptcdn/informations_controller.rb +0 -69
  63. data/app/controllers/phcscriptcdn/scriptcdn/mains_controller.rb +0 -62
  64. data/app/controllers/phcscriptcdn/scriptcdn/urls_controller.rb +0 -84
  65. data/app/controllers/phcscriptcdn/scriptcdn/versions_controller.rb +0 -69
  66. data/app/models/phcscriptcdn/scriptcdn/author.rb +0 -8
  67. data/app/models/phcscriptcdn/scriptcdn/information.rb +0 -8
  68. data/app/models/phcscriptcdn/scriptcdn/main.rb +0 -11
  69. data/app/models/phcscriptcdn/scriptcdn/url.rb +0 -8
  70. data/app/models/phcscriptcdn/scriptcdn/version.rb +0 -8
  71. data/app/views/phcscriptcdn/scriptcdn/authors/_formpatch.html.erb +0 -29
  72. data/app/views/phcscriptcdn/scriptcdn/authors/edit.html.erb +0 -3
  73. data/app/views/phcscriptcdn/scriptcdn/authors/index.html.erb +0 -23
  74. data/app/views/phcscriptcdn/scriptcdn/authors/new.html.erb +0 -3
  75. data/app/views/phcscriptcdn/scriptcdn/informations/_formpatch.html.erb +0 -49
  76. data/app/views/phcscriptcdn/scriptcdn/informations/edit.html.erb +0 -3
  77. data/app/views/phcscriptcdn/scriptcdn/informations/index.html.erb +0 -26
  78. data/app/views/phcscriptcdn/scriptcdn/informations/new.html.erb +0 -3
  79. data/app/views/phcscriptcdn/scriptcdn/informations/show.html.erb +0 -58
  80. data/app/views/phcscriptcdn/scriptcdn/mains/_form.html.erb +0 -13
  81. data/app/views/phcscriptcdn/scriptcdn/mains/edit.html.erb +0 -3
  82. data/app/views/phcscriptcdn/scriptcdn/mains/index.html.erb +0 -19
  83. data/app/views/phcscriptcdn/scriptcdn/mains/new.html.erb +0 -3
  84. data/app/views/phcscriptcdn/scriptcdn/urls/_form.html.erb +0 -17
  85. data/app/views/phcscriptcdn/scriptcdn/urls/_formpatch.html.erb +0 -17
  86. data/app/views/phcscriptcdn/scriptcdn/urls/edit.html.erb +0 -3
  87. data/app/views/phcscriptcdn/scriptcdn/urls/index.html.erb +0 -21
  88. data/app/views/phcscriptcdn/scriptcdn/urls/new.html.erb +0 -3
  89. data/app/views/phcscriptcdn/scriptcdn/versions/_form.html.erb +0 -13
  90. data/app/views/phcscriptcdn/scriptcdn/versions/_formpatch.html.erb +0 -13
  91. data/app/views/phcscriptcdn/scriptcdn/versions/edit.html.erb +0 -3
  92. data/app/views/phcscriptcdn/scriptcdn/versions/index.html.erb +0 -20
  93. data/app/views/phcscriptcdn/scriptcdn/versions/new.html.erb +0 -3
  94. data/db/migrate/20160704004828_create_phcscriptcdn_scriptcdn_authors.rb +0 -20
  95. data/db/migrate/20160704005455_create_phcscriptcdn_scriptcdn_information.rb +0 -27
  96. data/db/migrate/20160704011123_create_phcscriptcdn_scriptcdn_urls.rb +0 -19
  97. data/db/migrate/20160704011452_create_phcscriptcdn_scriptcdn_versions.rb +0 -15
  98. data/db/migrate/20160704011727_create_phcscriptcdn_scriptcdn_mains.rb +0 -11
@@ -1,69 +0,0 @@
1
- require_dependency "phcscriptcdn/application_controller"
2
-
3
- module Phcscriptcdn
4
- class Scriptcdn::VersionsController < ApplicationController
5
-
6
- # Security & Action Filters
7
- layout '/layouts/phcscriptcdn/application.html.erb'
8
- before_action :set_scriptcdn_version, only: [:edit, :update, :destroy]
9
-
10
- # Script Version Index
11
- def index
12
- scriptcdn_main = Scriptcdn::Main.find(params[:main_id])
13
- @scriptcdn_versions = scriptcdn_main.versions
14
- end
15
-
16
- # New Script Version
17
- def new
18
- scriptcdn_main = Scriptcdn::Main.find(params[:main_id])
19
- @scriptcdn_version = scriptcdn_main.versions.build
20
- end
21
-
22
- # Edit Script Version
23
- def edit
24
- scriptcdn_main = Scriptcdn::Main.find(params[:main_id])
25
- @scriptcdn_version = scriptcdn_main.versions.find(params[:id])
26
- end
27
-
28
- # POST Script Version
29
- def create
30
- @scriptcdn_main = Scriptcdn::Main.find(params[:main_id])
31
- @scriptcdn_version = @scriptcdn_main.versions.create(scriptcdn_version_params)
32
- if @scriptcdn_version.save
33
- redirect_to scriptcdn_main_versions_path, notice: 'Script version was successfully created.'
34
- else
35
- render :new
36
- end
37
- end
38
-
39
- # PATCH/PUT Script Version
40
- def update
41
- if @scriptcdn_version.update(scriptcdn_version_params)
42
- redirect_to scriptcdn_main_versions_path, notice: 'Script version was successfully updated.'
43
- else
44
- render :edit
45
- end
46
- end
47
-
48
- # DELETE Script Version
49
- def destroy
50
- @scriptcdn_main = Scriptcdn::Main.find(params[:main_id])
51
- @scriptcdn_version = @scriptcdn_main.versions.find(params[:id])
52
- @scriptcdn_version.destroy
53
- redirect_to scriptcdn_main_versions_path, notice: 'Script version was successfully destroyed.'
54
- end
55
-
56
- private
57
-
58
- # Callbacks
59
- def set_scriptcdn_version
60
- @scriptcdn_version = Scriptcdn::Version.find(params[:id])
61
- end
62
-
63
- # Whitelist
64
- def scriptcdn_version_params
65
- params.require(:scriptcdn_version).permit(:versionnumber, :main_id)
66
- end
67
-
68
- end
69
- end
@@ -1,8 +0,0 @@
1
- module Phcscriptcdn
2
- class Scriptcdn::Author < ActiveRecord::Base
3
-
4
- # Relationships
5
- belongs_to :main, class_name: 'Scriptcdn::Main'
6
-
7
- end
8
- end
@@ -1,8 +0,0 @@
1
- module Phcscriptcdn
2
- class Scriptcdn::Information < ActiveRecord::Base
3
-
4
- # Relationships
5
- belongs_to :main, class_name: 'Scriptcdn::Main'
6
-
7
- end
8
- end
@@ -1,11 +0,0 @@
1
- module Phcscriptcdn
2
- class Scriptcdn::Main < ActiveRecord::Base
3
-
4
- # Relationships
5
- has_many :versions, class_name: 'Scriptcdn::Version'
6
- has_many :informations, class_name: 'Scriptcdn::Information'
7
- has_many :urls, class_name: 'Scriptcdn::Url'
8
- has_many :authors, class_name: 'Scriptcdn::Author'
9
-
10
- end
11
- end
@@ -1,8 +0,0 @@
1
- module Phcscriptcdn
2
- class Scriptcdn::Url < ActiveRecord::Base
3
-
4
- # Relationships
5
- belongs_to :main, class_name: 'Scriptcdn::Main'
6
-
7
- end
8
- end
@@ -1,8 +0,0 @@
1
- module Phcscriptcdn
2
- class Scriptcdn::Version < ActiveRecord::Base
3
-
4
- # Relationships
5
- belongs_to :main, class_name: 'Scriptcdn::Main'
6
-
7
- end
8
- end
@@ -1,29 +0,0 @@
1
- <%= form_for([@scriptcdn_author.main, @scriptcdn_author], url: scriptcdn_main_author_path, method: :patch) do |f| %>
2
-
3
- <%= render 'phcnotifi/validations', :object => @scriptcdn_author %>
4
-
5
- <div class="form-group field_with_error">
6
- <%= f.label :authorfirstname, "Author First Name" %>
7
- <%= f.text_field :authorfirstname, placeholder: "Author First Name", class: "form-control" %>
8
- </div>
9
- <div class="form-group field_with_error">
10
- <%= f.label :authorlastname, "Author Last Name" %>
11
- <%= f.text_field :authorlastname, placeholder: "Author Last Name", class: "form-control" %>
12
- </div>
13
- <div class="form-group field_with_error">
14
- <%= f.label :authorwebsite, "Author Website" %>
15
- <%= f.text_field :authorwebsite, placeholder: "Author Website", class: "form-control" %>
16
- </div>
17
- <div class="form-group field_with_error">
18
- <%= f.label :authorgithub, "Author Github" %>
19
- <%= f.text_field :authorgithub, placeholder: "Author Github", class: "form-control" %>
20
- </div>
21
- <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
- </div>
25
- <div class="actions">
26
- <%= f.submit class: "btn blue-hoki" %>
27
- </div>
28
-
29
- <% end %>
@@ -1,3 +0,0 @@
1
- <h1>Edit Author</h1>
2
-
3
- <%= render 'formpatch', scriptcdn_author: @scriptcdn_author %>
@@ -1,23 +0,0 @@
1
- <p id="notice"><%= notice %></p>
2
-
3
- <h1>Authors</h1>
4
-
5
- <table>
6
- <thead>
7
- <tr>
8
- <th>Firstname</th>
9
- <th>Lastname</th>
10
- <th></th>
11
- </tr>
12
- </thead>
13
-
14
- <tbody>
15
- <% @scriptcdn_authors.each do |scriptcdn_author| %>
16
- <tr>
17
- <td><%= link_to scriptcdn_author.authorfirstname, edit_scriptcdn_main_author_path(scriptcdn_author.main, scriptcdn_author) %></td>
18
- <td><%= link_to scriptcdn_author.authorlastname, edit_scriptcdn_main_author_path(scriptcdn_author.main, scriptcdn_author) %></td>
19
- <td><%= link_to 'Destroy', scriptcdn_main_author_path(scriptcdn_author.main, scriptcdn_author), method: :delete, data: { confirm: 'Are you sure?' }, class: "btn red-mint" %></td>
20
- </tr>
21
- <% end %>
22
- </tbody>
23
- </table>
@@ -1,3 +0,0 @@
1
- <h1>New Author</h1>
2
-
3
- <%= render 'form', scriptcdn_author: @scriptcdn_author %>
@@ -1,49 +0,0 @@
1
- <%= form_for([@scriptcdn_information.main, @scriptcdn_information], url: scriptcdn_main_information_path, method: :patch) do |f| %>
2
-
3
- <%= render 'phcnotifi/validations', :object => @scriptcdn_information %>
4
-
5
- <div class="form-group field_with_error">
6
- <%= f.label :scripttitle, "Script Title" %>
7
- <%= f.text_field :scripttitle, placeholder: "Script Information Title", class: "form-control" %>
8
- </div>
9
- <div class="form-group field_with_error">
10
- <%= f.label :scriptdescription, "Script Description" %>
11
- <%= f.text_field :scriptdescription, placeholder: "Script Information Description", class: "form-control" %>
12
- </div>
13
- <div class="form-group field_with_error">
14
- <%= f.label :scriptcategory, "Script Category" %>
15
- <%= f.select( :scriptcategory, [['HTML','html'],['CSS','css']], { :multiple => true, :size => 5 }, {class: "form-control form-control"}) %>
16
- </div>
17
- <div class="form-group field_with_error">
18
- <%= f.label :scriptwebsite, "Script Website" %>
19
- <%= f.text_field :scriptwebsite, placeholder: "Script Information Website", class: "form-control" %>
20
- </div>
21
- <div class="form-group field_with_error">
22
- <%= f.label :scripttwitter, "Script Twitter" %>
23
- <%= f.text_field :scripttwitter, placeholder: "Script Information Twitter Address", class: "form-control" %>
24
- </div>
25
- <div class="form-group field_with_error">
26
- <%= f.label :scriptgithub, "Script Github" %>
27
- <%= f.text_field :scriptgithub, placeholder: "Script Information Github Address", class: "form-control" %>
28
- </div>
29
- <div class="form-group field_with_error">
30
- <%= f.label :scriptinitialrelease, "Initial Release" %>
31
- <%= f.date_select :scriptinitialrelease, class: "form-control" %>
32
- </div>
33
- <div class="form-group field_with_error">
34
- <%= f.label :scriptlicence, "Script Licence" %>
35
- <%= f.select( :scriptlicence, [['MIT','MIT'],['Apache 2.0','Apache v2']], {}, {class: "form-control form-control-sm"}) %>
36
- </div>
37
- <div class="form-group field_with_error">
38
- <%= f.label :scriptplatform, "Script Platform" %>
39
- <%= f.select( :scriptplatform, [['Web Engine','Web Engine']], {}, {class: "form-control form-control"}) %>
40
- </div>
41
- <div class="form-group field_with_error">
42
- <%= f.label :scriptstatus, "Script Status" %>
43
- <%= f.select( :scriptstatus, [['Active','Active'],['Outdated','Out Dated'],['Deactivated','Not Active']], {}, {class: "form-control form-control"}) %>
44
- </div>
45
- <div class="form-group field_with_error">
46
- <%= f.submit class: "btn blue-hoki" %>
47
- </div>
48
-
49
- <% end %>
@@ -1,3 +0,0 @@
1
- <h1>Edit Information</h1>
2
-
3
- <%= render 'formpatch', scriptcdn_information: @scriptcdn_information %>
@@ -1,26 +0,0 @@
1
- <p id="notice"><%= notice %></p>
2
- <h1>Information</h1>
3
-
4
- <table>
5
- <thead>
6
- <tr>
7
- <th>Title</th>
8
- <th>Category</th>
9
- <th>Licence</th>
10
- <th>Platform</th>
11
- <th></th>
12
- </tr>
13
- </thead>
14
-
15
- <tbody>
16
- <% @scriptcdn_informations.each do |scriptcdn_information| %>
17
- <tr>
18
- <td><%= link_to scriptcdn_information.scripttitle, edit_scriptcdn_main_information_path(scriptcdn_information.main, scriptcdn_information) %></td>
19
- <td><%= link_to scriptcdn_information.scriptcategory, edit_scriptcdn_main_information_path(scriptcdn_information.main, scriptcdn_information) %></td>
20
- <td><%= link_to scriptcdn_information.scriptlicence, edit_scriptcdn_main_information_path(scriptcdn_information.main, scriptcdn_information) %></td>
21
- <td><%= link_to scriptcdn_information.scriptplatform, edit_scriptcdn_main_information_path(scriptcdn_information.main, scriptcdn_information) %></td>
22
- <td><%= link_to 'Destroy', scriptcdn_main_information_path(scriptcdn_information.main, scriptcdn_information), method: :delete, data: { confirm: 'Are you sure?' }, class: "btn red-mint" %></td>
23
- </tr>
24
- <% end %>
25
- </tbody>
26
- </table>
@@ -1,3 +0,0 @@
1
- <h1>New Information</h1>
2
-
3
- <%= render 'form', scriptcdn_information: @scriptcdn_information %>
@@ -1,58 +0,0 @@
1
- <p id="notice"><%= notice %></p>
2
-
3
- <p>
4
- <strong>Scripttitle:</strong>
5
- <%= @scriptcdn_information.scripttitle %>
6
- </p>
7
-
8
- <p>
9
- <strong>Scriptdescription:</strong>
10
- <%= @scriptcdn_information.scriptdescription %>
11
- </p>
12
-
13
- <p>
14
- <strong>Scriptcategory:</strong>
15
- <%= @scriptcdn_information.scriptcategory %>
16
- </p>
17
-
18
- <p>
19
- <strong>Scriptwebsite:</strong>
20
- <%= @scriptcdn_information.scriptwebsite %>
21
- </p>
22
-
23
- <p>
24
- <strong>Scripttwitter:</strong>
25
- <%= @scriptcdn_information.scripttwitter %>
26
- </p>
27
-
28
- <p>
29
- <strong>Scriptgithub:</strong>
30
- <%= @scriptcdn_information.scriptgithub %>
31
- </p>
32
-
33
- <p>
34
- <strong>Scriptinitialrelease:</strong>
35
- <%= @scriptcdn_information.scriptinitialrelease.parse(date) %>
36
- </p>
37
-
38
- <p>
39
- <strong>Scriptlicence:</strong>
40
- <%= @scriptcdn_information.scriptlicence %>
41
- </p>
42
-
43
- <p>
44
- <strong>Scriptplatform:</strong>
45
- <%= @scriptcdn_information.scriptplatform %>
46
- </p>
47
-
48
- <p>
49
- <strong>Version:</strong>
50
- <%= @scriptcdn_information.version %>
51
- </p>
52
-
53
- <p>
54
- <strong>Main:</strong>
55
- <%= @scriptcdn_information.main %>
56
- </p>
57
-
58
- <%= link_to 'Back', scriptcdn_information_main_index_path %>
@@ -1,13 +0,0 @@
1
- <%= form_for(@scriptcdn_main) do |f| %>
2
-
3
- <%= render 'phcnotifi/validations', :object => @scriptcdn_main %>
4
-
5
- <div class="form-group field_with_error">
6
- <%= f.label :scriptname, "Script Name" %>
7
- <%= f.text_field :scriptname, placeholder: "Script Information Website", class: "form-control" %>
8
- </div>
9
- <div class="form-group field_with_error">
10
- <%= f.submit class: "btn blue-hoki" %>
11
- </div>
12
-
13
- <% end %>
@@ -1,3 +0,0 @@
1
- <h1>Edit Script Pack Name</h1>
2
-
3
- <%= render 'form', scriptcdn_main: @scriptcdn_main %>
@@ -1,19 +0,0 @@
1
- <p id="notice"><%= notice %></p>
2
-
3
- <h1>Script CDN Main List</h1>
4
-
5
- <table>
6
- <thead>
7
- <tr>
8
- <th>Script Name</th>
9
- </tr>
10
- </thead>
11
-
12
- <tbody>
13
- <% @scriptcdn_mains.each do |scriptcdn_main| %>
14
- <tr>
15
- <td><%= link_to scriptcdn_main.scriptname, edit_scriptcdn_main_path(scriptcdn_main) %></td>
16
- </tr>
17
- <% end %>
18
- </tbody>
19
- </table>
@@ -1,3 +0,0 @@
1
- <h1>New Script Pack for CDN</h1>
2
-
3
- <%= render 'form', scriptcdn_main: @scriptcdn_main %>
@@ -1,17 +0,0 @@
1
- <%= form_for([@scriptcdn_url.main, @scriptcdn_url], url: scriptcdn_main_urls_path) do |f| %>
2
-
3
- <%= render 'phcnotifi/validations', :object => @scriptcdn_url %>
4
-
5
- <div class="form-group field_with_error">
6
- <%= f.label :scripturl, "Script URL" %>
7
- <%= f.text_field :scripturl, placeholder: "Script Name", class: "form-control" %>
8
- </div>
9
- <div class="form-group field_with_error">
10
- <%= f.label :scripturlext, "Script Extention" %>
11
- <%= f.select( :scripturlext, [['.css','css'],['.js','js'],['.html','html'],['.scss','scss']], {}, {class: "form-control form-control"}) %>
12
- </div>
13
- <div class="form-group field_with_error">
14
- <%= f.submit class: "btn blue-hoki" %>
15
- </div>
16
-
17
- <% end %>
@@ -1,17 +0,0 @@
1
- <%= form_for([@scriptcdn_url.main, @scriptcdn_url], url: scriptcdn_main_url_path, method: :patch) do |f| %>
2
-
3
- <%= render 'phcnotifi/validations', :object => @scriptcdn_script %>
4
-
5
- <div class="form-group field_with_error">
6
- <%= f.label :scripturl, "Script URL" %>
7
- <%= f.text_field :scripturl, placeholder: "Script Name", class: "form-control" %>
8
- </div>
9
- <div class="form-group field_with_error">
10
- <%= f.label :scripturlext, "Script Extention" %>
11
- <%= f.select( :scripturlext, [['.css','css'],['.js','js'],['.html','html'],['.scss','scss']], {}, {class: "form-control form-control"}) %>
12
- </div>
13
- <div class="form-group field_with_error">
14
- <%= f.submit class: "btn blue-hoki" %>
15
- </div>
16
-
17
- <% end %>
@@ -1,3 +0,0 @@
1
- <h1>Edit Script Url</h1>
2
-
3
- <%= render 'formpatch', scriptcdn_url: @scriptcdn_url %>
@@ -1,21 +0,0 @@
1
- <p id="notice"><%= notice %></p>
2
-
3
- <h1>Scriptcdn Url List</h1>
4
-
5
- <table>
6
- <thead>
7
- <tr>
8
- <th>URL Path</th>
9
- <th></th>
10
- </tr
11
- </thead>
12
-
13
- <tbody>
14
- <% @scriptcdn_urls.each do |scriptcdn_url| %>
15
- <tr>
16
- <td><%= link_to scriptcdn_url.scripturl, edit_scriptcdn_main_url_path(scriptcdn_url.main, scriptcdn_url) %></td>
17
- <td><%= link_to 'Destroy', scriptcdn_main_url_path(scriptcdn_url.main, scriptcdn_url), method: :delete, data: { confirm: 'Are you sure?' }, class: "btn red-mint" %></td>
18
- </tr>
19
- <% end %>
20
- </tbody>
21
- </table>
@@ -1,3 +0,0 @@
1
- <h1>New Script Url</h1>
2
-
3
- <%= render 'form', scriptcdn_url: @scriptcdn_url %>
@@ -1,13 +0,0 @@
1
- <%= form_for([@scriptcdn_version.main, @scriptcdn_version], url: scriptcdn_main_versions_path) do |f| %>
2
-
3
- <%= render 'phcnotifi/validations', :object => @scriptcdn_version %>
4
-
5
- <div class="form-group field_with_error">
6
- <%= f.label :versionnumber %>
7
- <%= f.text_field :versionnumber, placeholder: "Script Version", class: "form-control" %>
8
- </div>
9
- <div class="form-group field_with_error">
10
- <%= f.submit class: "btn blue-hoki" %>
11
- </div>
12
-
13
- <% end %>
@@ -1,13 +0,0 @@
1
- <%= form_for([@scriptcdn_version.main, @scriptcdn_version], url: scriptcdn_main_version_path, method: :patch) do |f| %>
2
-
3
- <%= render 'phcnotifi/validations', :object => @scriptcdn_version %>
4
-
5
- <div class="form-group field_with_error">
6
- <%= f.label :versionnumber %>
7
- <%= f.text_field :versionnumber, placeholder: "Script Version", class: "form-control" %>
8
- </div>
9
- <div class="form-group field_with_error">
10
- <%= f.submit class: "btn blue-hoki" %>
11
- </div>
12
-
13
- <% end %>
@@ -1,3 +0,0 @@
1
- <h1>Edit Script Version</h1>
2
-
3
- <%= render 'formpatch', scriptcdn_version: @scriptcdn_version %>
@@ -1,20 +0,0 @@
1
- <p id="notice"><%= notice %></p>
2
-
3
- <h1>Script Version</h1>
4
-
5
- <table>
6
- <thead>
7
- <tr>
8
- <th>Script Version</th>
9
- <th></th>
10
- </tr>
11
- </thead>
12
- <tbody>
13
- <% @scriptcdn_versions.each do |scriptcdn_version| %>
14
- <tr>
15
- <td><%= link_to scriptcdn_version.versionnumber, edit_scriptcdn_main_version_path(scriptcdn_version.main, scriptcdn_version) %></td>
16
- <td><%= link_to 'Destroy', scriptcdn_main_version_path(scriptcdn_version.main, scriptcdn_version), method: :delete, data: { confirm: 'Are you sure?' }, class: "btn red-mint" %></td>
17
- </tr>
18
- <% end %>
19
- </tbody>
20
- </table>
@@ -1,3 +0,0 @@
1
- <h1>New Script Version</h1>
2
-
3
- <%= render 'form', scriptcdn_version: @scriptcdn_version %>
@@ -1,20 +0,0 @@
1
- class CreatePhcscriptcdnScriptcdnAuthors < ActiveRecord::Migration[5.0]
2
- def change
3
-
4
- create_table :phcscriptcdn_scriptcdn_authors do |t|
5
-
6
- t.string :authorfirstname
7
- t.string :authorlastname
8
-
9
- t.string :authorwebsite
10
- t.string :authorgithub
11
- t.string :authortwitter
12
-
13
- t.references :main, index: true
14
-
15
- t.timestamps null: false
16
-
17
- end
18
-
19
- end
20
- end
@@ -1,27 +0,0 @@
1
- class CreatePhcscriptcdnScriptcdnInformation < ActiveRecord::Migration[5.0]
2
- def change
3
-
4
- create_table :phcscriptcdn_scriptcdn_information do |t|
5
-
6
- t.string :scripttitle
7
- t.text :scriptdescription
8
-
9
- t.string :scriptcategory
10
-
11
- t.string :scriptwebsite
12
- t.string :scripttwitter
13
- t.string :scriptgithub
14
-
15
- t.date :scriptinitialrelease
16
- t.string :scriptlicence
17
- t.string :scriptplatform
18
- t.string :scriptstatus
19
-
20
- t.references :main, index: true
21
-
22
- t.timestamps null: false
23
-
24
- end
25
-
26
- end
27
- end
@@ -1,19 +0,0 @@
1
- class CreatePhcscriptcdnScriptcdnUrls < ActiveRecord::Migration[5.0]
2
- def change
3
-
4
- create_table :phcscriptcdn_scriptcdn_urls do |t|
5
-
6
- t.string :scripturl
7
- t.string :scripturlext
8
-
9
- t.references :main, index: true
10
-
11
- t.string :user_id
12
- t.string :membership_id
13
- t.string :oganization_id
14
-
15
- t.timestamps null: false
16
- end
17
-
18
- end
19
- end
@@ -1,15 +0,0 @@
1
- class CreatePhcscriptcdnScriptcdnVersions < ActiveRecord::Migration[5.0]
2
- def change
3
-
4
- create_table :phcscriptcdn_scriptcdn_versions do |t|
5
-
6
- t.string :versionnumber
7
-
8
- t.references :main, index: true
9
-
10
- t.timestamps null: false
11
-
12
- end
13
-
14
- end
15
- end
@@ -1,11 +0,0 @@
1
- class CreatePhcscriptcdnScriptcdnMains < ActiveRecord::Migration[5.0]
2
- def change
3
- create_table :phcscriptcdn_scriptcdn_mains do |t|
4
-
5
- t.string :scriptname
6
-
7
- t.timestamps null: false
8
-
9
- end
10
- end
11
- end