ezii-os 0.0.0.1.0 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (190) hide show
  1. checksums.yaml +4 -4
  2. data/Icon/r +0 -0
  3. data/app/assets/stylesheets/apis.scss +3 -0
  4. data/app/assets/stylesheets/basecamp_integrations.scss +3 -0
  5. data/app/assets/stylesheets/code_link_batches.scss +3 -0
  6. data/app/assets/stylesheets/code_link_types.scss +3 -0
  7. data/app/assets/stylesheets/code_links.scss +3 -0
  8. data/app/assets/stylesheets/codes.scss +3 -0
  9. data/app/assets/stylesheets/cookie_changes.scss +3 -0
  10. data/app/assets/stylesheets/partners/get_paids.scss +3 -0
  11. data/app/assets/stylesheets/searches.scss +3 -0
  12. data/app/assets/stylesheets/types.scss +3 -0
  13. data/app/controllers/apis_controller.rb +74 -0
  14. data/app/controllers/basecamp_integrations_controller.rb +76 -0
  15. data/app/controllers/code_link_batches_controller.rb +74 -0
  16. data/app/controllers/code_link_types_controller.rb +74 -0
  17. data/app/controllers/code_links_controller.rb +74 -0
  18. data/app/controllers/codes_controller.rb +74 -0
  19. data/app/controllers/cookie_changes_controller.rb +78 -0
  20. data/app/controllers/directories_controller.rb +14 -14
  21. data/app/controllers/ezii_os_files_controller.rb +14 -1
  22. data/app/controllers/partners/get_paids_controller.rb +74 -0
  23. data/app/controllers/searches_controller.rb +74 -0
  24. data/app/controllers/types_controller.rb +74 -0
  25. data/app/helpers/apis_helper.rb +2 -0
  26. data/app/helpers/basecamp_integrations_helper.rb +2 -0
  27. data/app/helpers/code_link_batches_helper.rb +2 -0
  28. data/app/helpers/code_link_types_helper.rb +2 -0
  29. data/app/helpers/code_links_helper.rb +2 -0
  30. data/app/helpers/codes_helper.rb +2 -0
  31. data/app/helpers/cookie_changes_helper.rb +2 -0
  32. data/app/helpers/partners/get_paids_helper.rb +2 -0
  33. data/app/helpers/searches_helper.rb +2 -0
  34. data/app/helpers/types_helper.rb +2 -0
  35. data/app/models/api.rb +3 -0
  36. data/app/models/basecamp_integration.rb +2 -0
  37. data/app/models/code.rb +3 -0
  38. data/app/models/code_link.rb +3 -0
  39. data/app/models/code_link_batch.rb +3 -0
  40. data/app/models/code_link_type.rb +3 -0
  41. data/app/models/cookie_change.rb +2 -0
  42. data/app/models/partners/get_paid.rb +2 -0
  43. data/app/models/partners.rb +5 -0
  44. data/app/models/search.rb +2 -0
  45. data/app/models/type.rb +3 -0
  46. data/app/views/apis/_api.json.jbuilder +2 -0
  47. data/app/views/apis/_form.html.erb +32 -0
  48. data/app/views/apis/edit.html.erb +6 -0
  49. data/app/views/apis/index.html.erb +31 -0
  50. data/app/views/apis/index.json.jbuilder +1 -0
  51. data/app/views/apis/new.html.erb +5 -0
  52. data/app/views/apis/show.html.erb +19 -0
  53. data/app/views/apis/show.json.jbuilder +1 -0
  54. data/app/views/basecamp_integrations/_basecamp_integration.json.jbuilder +2 -0
  55. data/app/views/basecamp_integrations/_form.html.erb +27 -0
  56. data/app/views/basecamp_integrations/edit.html.erb +6 -0
  57. data/app/views/basecamp_integrations/index.html.erb +29 -0
  58. data/app/views/basecamp_integrations/index.json.jbuilder +1 -0
  59. data/app/views/basecamp_integrations/new.html.erb +5 -0
  60. data/app/views/basecamp_integrations/show.html.erb +14 -0
  61. data/app/views/basecamp_integrations/show.json.jbuilder +1 -0
  62. data/app/views/code_link_batches/_code_link_batch.json.jbuilder +2 -0
  63. data/app/views/code_link_batches/_form.html.erb +27 -0
  64. data/app/views/code_link_batches/edit.html.erb +6 -0
  65. data/app/views/code_link_batches/index.html.erb +29 -0
  66. data/app/views/code_link_batches/index.json.jbuilder +1 -0
  67. data/app/views/code_link_batches/new.html.erb +5 -0
  68. data/app/views/code_link_batches/show.html.erb +14 -0
  69. data/app/views/code_link_batches/show.json.jbuilder +1 -0
  70. data/app/views/code_link_types/_code_link_type.json.jbuilder +2 -0
  71. data/app/views/code_link_types/_form.html.erb +27 -0
  72. data/app/views/code_link_types/edit.html.erb +6 -0
  73. data/app/views/code_link_types/index.html.erb +29 -0
  74. data/app/views/code_link_types/index.json.jbuilder +1 -0
  75. data/app/views/code_link_types/new.html.erb +5 -0
  76. data/app/views/code_link_types/show.html.erb +14 -0
  77. data/app/views/code_link_types/show.json.jbuilder +1 -0
  78. data/app/views/code_links/_code_link.json.jbuilder +2 -0
  79. data/app/views/code_links/_form.html.erb +32 -0
  80. data/app/views/code_links/edit.html.erb +6 -0
  81. data/app/views/code_links/index.html.erb +31 -0
  82. data/app/views/code_links/index.json.jbuilder +1 -0
  83. data/app/views/code_links/new.html.erb +5 -0
  84. data/app/views/code_links/show.html.erb +19 -0
  85. data/app/views/code_links/show.json.jbuilder +1 -0
  86. data/app/views/codes/_code.json.jbuilder +2 -0
  87. data/app/views/codes/_form.html.erb +32 -0
  88. data/app/views/codes/edit.html.erb +6 -0
  89. data/app/views/codes/index.html.erb +31 -0
  90. data/app/views/codes/index.json.jbuilder +1 -0
  91. data/app/views/codes/new.html.erb +5 -0
  92. data/app/views/codes/show.html.erb +19 -0
  93. data/app/views/codes/show.json.jbuilder +1 -0
  94. data/app/views/cookie_changes/_cookie_change.json.jbuilder +2 -0
  95. data/app/views/cookie_changes/_form.html.erb +27 -0
  96. data/app/views/cookie_changes/edit.html.erb +6 -0
  97. data/app/views/cookie_changes/index.html.erb +29 -0
  98. data/app/views/cookie_changes/index.json.jbuilder +1 -0
  99. data/app/views/cookie_changes/new.html.erb +5 -0
  100. data/app/views/cookie_changes/show.html.erb +14 -0
  101. data/app/views/cookie_changes/show.json.jbuilder +1 -0
  102. data/app/views/directories/show.html.erb +6 -1
  103. data/app/views/ezii_os_files/_wit_ai_widget.html.erb +203 -49
  104. data/app/views/ezii_os_files/show.html.erb +6 -9
  105. data/app/views/layouts/application.html.erb +212 -52
  106. data/app/views/partners/get_paids/_form.html.erb +27 -0
  107. data/app/views/partners/get_paids/_partners_get_paid.json.jbuilder +2 -0
  108. data/app/views/partners/get_paids/edit.html.erb +6 -0
  109. data/app/views/partners/get_paids/index.html.erb +29 -0
  110. data/app/views/partners/get_paids/index.json.jbuilder +1 -0
  111. data/app/views/partners/get_paids/new.html.erb +5 -0
  112. data/app/views/partners/get_paids/show.html.erb +14 -0
  113. data/app/views/partners/get_paids/show.json.jbuilder +1 -0
  114. data/app/views/searches/_form.html.erb +22 -0
  115. data/app/views/searches/_search.json.jbuilder +2 -0
  116. data/app/views/searches/edit.html.erb +6 -0
  117. data/app/views/searches/index.html.erb +27 -0
  118. data/app/views/searches/index.json.jbuilder +1 -0
  119. data/app/views/searches/new.html.erb +5 -0
  120. data/app/views/searches/show.html.erb +9 -0
  121. data/app/views/searches/show.json.jbuilder +1 -0
  122. data/app/views/types/_form.html.erb +22 -0
  123. data/app/views/types/_type.json.jbuilder +2 -0
  124. data/app/views/types/edit.html.erb +6 -0
  125. data/app/views/types/index.html.erb +27 -0
  126. data/app/views/types/index.json.jbuilder +1 -0
  127. data/app/views/types/new.html.erb +5 -0
  128. data/app/views/types/show.html.erb +9 -0
  129. data/app/views/types/show.json.jbuilder +1 -0
  130. data/config/credentials.yml.enc +1 -1
  131. data/config/routes.rb +12 -0
  132. data/db/development.sqlite3 +0 -0
  133. data/db/migrate/20190827060151_create_searches.rb +9 -0
  134. data/db/migrate/20190827063427_create_partners_get_paids.rb +10 -0
  135. data/db/migrate/20190827180750_create_basecamp_integrations.rb +10 -0
  136. data/db/migrate/20190827180751_create_types.rb +9 -0
  137. data/db/migrate/20190827180752_create_code_link_types.rb +10 -0
  138. data/db/migrate/20190827180753_create_code_links.rb +11 -0
  139. data/db/migrate/20190827180754_create_codes.rb +11 -0
  140. data/db/migrate/20190828104427_create_apis.rb +12 -0
  141. data/db/migrate/20190828105156_create_code_link_batches.rb +10 -0
  142. data/db/migrate/20190829174432_create_cookie_changes.rb +10 -0
  143. data/db/schema.rb +88 -1
  144. data/db/seeds.rb +4 -0
  145. data/db/test.sqlite3 +0 -0
  146. data/ezii-os-0.0.0.1.0.gem +0 -0
  147. data/ezii-os.gemspec +1 -1
  148. data/lib/tasks/task.rake +5 -0
  149. data/log/development.log +13283 -0
  150. data/test/controllers/apis_controller_test.rb +48 -0
  151. data/test/controllers/basecamp_integrations_controller_test.rb +48 -0
  152. data/test/controllers/code_link_batches_controller_test.rb +48 -0
  153. data/test/controllers/code_link_types_controller_test.rb +48 -0
  154. data/test/controllers/code_links_controller_test.rb +48 -0
  155. data/test/controllers/codes_controller_test.rb +48 -0
  156. data/test/controllers/cookie_changes_controller_test.rb +48 -0
  157. data/test/controllers/partners/get_paids_controller_test.rb +48 -0
  158. data/test/controllers/searches_controller_test.rb +48 -0
  159. data/test/controllers/types_controller_test.rb +48 -0
  160. data/test/fixtures/apis.yml +11 -0
  161. data/test/fixtures/basecamp_integrations.yml +9 -0
  162. data/test/fixtures/code_link_batches.yml +9 -0
  163. data/test/fixtures/code_link_types.yml +9 -0
  164. data/test/fixtures/code_links.yml +11 -0
  165. data/test/fixtures/codes.yml +11 -0
  166. data/test/fixtures/cookie_changes.yml +9 -0
  167. data/test/fixtures/partners/get_paids.yml +9 -0
  168. data/test/fixtures/searches.yml +7 -0
  169. data/test/fixtures/types.yml +7 -0
  170. data/test/models/api_test.rb +7 -0
  171. data/test/models/basecamp_integration_test.rb +7 -0
  172. data/test/models/code_link_batch_test.rb +7 -0
  173. data/test/models/code_link_test.rb +7 -0
  174. data/test/models/code_link_type_test.rb +7 -0
  175. data/test/models/code_test.rb +7 -0
  176. data/test/models/cookie_change_test.rb +7 -0
  177. data/test/models/partners/get_paid_test.rb +7 -0
  178. data/test/models/search_test.rb +7 -0
  179. data/test/models/type_test.rb +7 -0
  180. data/test/system/apis_test.rb +47 -0
  181. data/test/system/basecamp_integrations_test.rb +45 -0
  182. data/test/system/code_link_batches_test.rb +45 -0
  183. data/test/system/code_link_types_test.rb +45 -0
  184. data/test/system/code_links_test.rb +47 -0
  185. data/test/system/codes_test.rb +47 -0
  186. data/test/system/cookie_changes_test.rb +45 -0
  187. data/test/system/partners/get_paids_test.rb +45 -0
  188. data/test/system/searches_test.rb +43 -0
  189. data/test/system/types_test.rb +43 -0
  190. metadata +176 -1
@@ -0,0 +1,74 @@
1
+ class Partners::GetPaidsController < ApplicationController
2
+ before_action :set_partners_get_paid, only: [:show, :edit, :update, :destroy]
3
+
4
+ # GET /partners/get_paids
5
+ # GET /partners/get_paids.json
6
+ def index
7
+ @partners_get_paids = Partners::GetPaid.all
8
+ end
9
+
10
+ # GET /partners/get_paids/1
11
+ # GET /partners/get_paids/1.json
12
+ def show
13
+ end
14
+
15
+ # GET /partners/get_paids/new
16
+ def new
17
+ @partners_get_paid = Partners::GetPaid.new
18
+ end
19
+
20
+ # GET /partners/get_paids/1/edit
21
+ def edit
22
+ end
23
+
24
+ # POST /partners/get_paids
25
+ # POST /partners/get_paids.json
26
+ def create
27
+ @partners_get_paid = Partners::GetPaid.new(partners_get_paid_params)
28
+
29
+ respond_to do |format|
30
+ if @partners_get_paid.save
31
+ format.html { redirect_to @partners_get_paid, notice: 'Get paid was successfully created.' }
32
+ format.json { render :show, status: :created, location: @partners_get_paid }
33
+ else
34
+ format.html { render :new }
35
+ format.json { render json: @partners_get_paid.errors, status: :unprocessable_entity }
36
+ end
37
+ end
38
+ end
39
+
40
+ # PATCH/PUT /partners/get_paids/1
41
+ # PATCH/PUT /partners/get_paids/1.json
42
+ def update
43
+ respond_to do |format|
44
+ if @partners_get_paid.update(partners_get_paid_params)
45
+ format.html { redirect_to @partners_get_paid, notice: 'Get paid was successfully updated.' }
46
+ format.json { render :show, status: :ok, location: @partners_get_paid }
47
+ else
48
+ format.html { render :edit }
49
+ format.json { render json: @partners_get_paid.errors, status: :unprocessable_entity }
50
+ end
51
+ end
52
+ end
53
+
54
+ # DELETE /partners/get_paids/1
55
+ # DELETE /partners/get_paids/1.json
56
+ def destroy
57
+ @partners_get_paid.destroy
58
+ respond_to do |format|
59
+ format.html { redirect_to partners_get_paids_url, notice: 'Get paid was successfully destroyed.' }
60
+ format.json { head :no_content }
61
+ end
62
+ end
63
+
64
+ private
65
+ # Use callbacks to share common setup or constraints between actions.
66
+ def set_partners_get_paid
67
+ @partners_get_paid = Partners::GetPaid.find(params[:id])
68
+ end
69
+
70
+ # Never trust parameters from the scary internet, only allow the white list through.
71
+ def partners_get_paid_params
72
+ params.require(:partners_get_paid).permit(:enter_invoice_number, :you_will_receive_this_when_question_mark)
73
+ end
74
+ end
@@ -0,0 +1,74 @@
1
+ class SearchesController < ApplicationController
2
+ before_action :set_search, only: [:show, :edit, :update, :destroy]
3
+
4
+ # GET /searches
5
+ # GET /searches.json
6
+ def index
7
+ @searches = Search.all
8
+ end
9
+
10
+ # GET /searches/1
11
+ # GET /searches/1.json
12
+ def show
13
+ end
14
+
15
+ # GET /searches/new
16
+ def new
17
+ @search = Search.new
18
+ end
19
+
20
+ # GET /searches/1/edit
21
+ def edit
22
+ end
23
+
24
+ # POST /searches
25
+ # POST /searches.json
26
+ def create
27
+ @search = Search.new(search_params)
28
+
29
+ respond_to do |format|
30
+ if @search.save
31
+ format.html { redirect_to @search, notice: 'Search was successfully created.' }
32
+ format.json { render :show, status: :created, location: @search }
33
+ else
34
+ format.html { render :new }
35
+ format.json { render json: @search.errors, status: :unprocessable_entity }
36
+ end
37
+ end
38
+ end
39
+
40
+ # PATCH/PUT /searches/1
41
+ # PATCH/PUT /searches/1.json
42
+ def update
43
+ respond_to do |format|
44
+ if @search.update(search_params)
45
+ format.html { redirect_to @search, notice: 'Search was successfully updated.' }
46
+ format.json { render :show, status: :ok, location: @search }
47
+ else
48
+ format.html { render :edit }
49
+ format.json { render json: @search.errors, status: :unprocessable_entity }
50
+ end
51
+ end
52
+ end
53
+
54
+ # DELETE /searches/1
55
+ # DELETE /searches/1.json
56
+ def destroy
57
+ @search.destroy
58
+ respond_to do |format|
59
+ format.html { redirect_to searches_url, notice: 'Search was successfully destroyed.' }
60
+ format.json { head :no_content }
61
+ end
62
+ end
63
+
64
+ private
65
+ # Use callbacks to share common setup or constraints between actions.
66
+ def set_search
67
+ @search = Search.find(params[:id])
68
+ end
69
+
70
+ # Never trust parameters from the scary internet, only allow the white list through.
71
+ def search_params
72
+ params.require(:search).permit(:query)
73
+ end
74
+ end
@@ -0,0 +1,74 @@
1
+ class TypesController < ApplicationController
2
+ before_action :set_type, only: [:show, :edit, :update, :destroy]
3
+
4
+ # GET /types
5
+ # GET /types.json
6
+ def index
7
+ @types = Type.all
8
+ end
9
+
10
+ # GET /types/1
11
+ # GET /types/1.json
12
+ def show
13
+ end
14
+
15
+ # GET /types/new
16
+ def new
17
+ @type = Type.new
18
+ end
19
+
20
+ # GET /types/1/edit
21
+ def edit
22
+ end
23
+
24
+ # POST /types
25
+ # POST /types.json
26
+ def create
27
+ @type = Type.new(type_params)
28
+
29
+ respond_to do |format|
30
+ if @type.save
31
+ format.html { redirect_to @type, notice: 'Type was successfully created.' }
32
+ format.json { render :show, status: :created, location: @type }
33
+ else
34
+ format.html { render :new }
35
+ format.json { render json: @type.errors, status: :unprocessable_entity }
36
+ end
37
+ end
38
+ end
39
+
40
+ # PATCH/PUT /types/1
41
+ # PATCH/PUT /types/1.json
42
+ def update
43
+ respond_to do |format|
44
+ if @type.update(type_params)
45
+ format.html { redirect_to @type, notice: 'Type was successfully updated.' }
46
+ format.json { render :show, status: :ok, location: @type }
47
+ else
48
+ format.html { render :edit }
49
+ format.json { render json: @type.errors, status: :unprocessable_entity }
50
+ end
51
+ end
52
+ end
53
+
54
+ # DELETE /types/1
55
+ # DELETE /types/1.json
56
+ def destroy
57
+ @type.destroy
58
+ respond_to do |format|
59
+ format.html { redirect_to types_url, notice: 'Type was successfully destroyed.' }
60
+ format.json { head :no_content }
61
+ end
62
+ end
63
+
64
+ private
65
+ # Use callbacks to share common setup or constraints between actions.
66
+ def set_type
67
+ @type = Type.find(params[:id])
68
+ end
69
+
70
+ # Never trust parameters from the scary internet, only allow the white list through.
71
+ def type_params
72
+ params.require(:type).permit(:code_id)
73
+ end
74
+ end
@@ -0,0 +1,2 @@
1
+ module ApisHelper
2
+ end
@@ -0,0 +1,2 @@
1
+ module BasecampIntegrationsHelper
2
+ end
@@ -0,0 +1,2 @@
1
+ module CodeLinkBatchesHelper
2
+ end
@@ -0,0 +1,2 @@
1
+ module CodeLinkTypesHelper
2
+ end
@@ -0,0 +1,2 @@
1
+ module CodeLinksHelper
2
+ end
@@ -0,0 +1,2 @@
1
+ module CodesHelper
2
+ end
@@ -0,0 +1,2 @@
1
+ module CookieChangesHelper
2
+ end
@@ -0,0 +1,2 @@
1
+ module Partners::GetPaidsHelper
2
+ end
@@ -0,0 +1,2 @@
1
+ module SearchesHelper
2
+ end
@@ -0,0 +1,2 @@
1
+ module TypesHelper
2
+ end
data/app/models/api.rb ADDED
@@ -0,0 +1,3 @@
1
+ class Api < ApplicationRecord
2
+ belongs_to :code
3
+ end
@@ -0,0 +1,2 @@
1
+ class BasecampIntegration < ApplicationRecord
2
+ end
@@ -0,0 +1,3 @@
1
+ class Code < ApplicationRecord
2
+ belongs_to :code_links
3
+ end
@@ -0,0 +1,3 @@
1
+ class CodeLink < ApplicationRecord
2
+ belongs_to :code_link_type
3
+ end
@@ -0,0 +1,3 @@
1
+ class CodeLinkBatch < ApplicationRecord
2
+ belongs_to :code_link
3
+ end
@@ -0,0 +1,3 @@
1
+ class CodeLinkType < ApplicationRecord
2
+ belongs_to :type
3
+ end
@@ -0,0 +1,2 @@
1
+ class CookieChange < ApplicationRecord
2
+ end
@@ -0,0 +1,2 @@
1
+ class Partners::GetPaid < ApplicationRecord
2
+ end
@@ -0,0 +1,5 @@
1
+ module Partners
2
+ def self.table_name_prefix
3
+ 'partners_'
4
+ end
5
+ end
@@ -0,0 +1,2 @@
1
+ class Search < ApplicationRecord
2
+ end
@@ -0,0 +1,3 @@
1
+ class Type < ApplicationRecord
2
+ belongs_to :code
3
+ end
@@ -0,0 +1,2 @@
1
+ json.extract! api, :id, :rfc, :rftrolling_foreign_key, :code_id, :created_at, :updated_at
2
+ json.url api_url(api, format: :json)
@@ -0,0 +1,32 @@
1
+ <%= form_with(model: api, local: true) do |form| %>
2
+ <% if api.errors.any? %>
3
+ <div id="error_explanation">
4
+ <h2><%= pluralize(api.errors.count, "error") %> prohibited this api from being saved:</h2>
5
+
6
+ <ul>
7
+ <% api.errors.full_messages.each do |message| %>
8
+ <li><%= message %></li>
9
+ <% end %>
10
+ </ul>
11
+ </div>
12
+ <% end %>
13
+
14
+ <div class="field">
15
+ <%= form.label :rfc %>
16
+ <%= form.text_area :rfc %>
17
+ </div>
18
+
19
+ <div class="field">
20
+ <%= form.label :rftrolling_foreign_key %>
21
+ <%= form.number_field :rftrolling_foreign_key %>
22
+ </div>
23
+
24
+ <div class="field">
25
+ <%= form.label :code_id %>
26
+ <%= form.text_field :code_id %>
27
+ </div>
28
+
29
+ <div class="actions">
30
+ <%= form.submit %>
31
+ </div>
32
+ <% end %>
@@ -0,0 +1,6 @@
1
+ <h1>Editing Api</h1>
2
+
3
+ <%= render 'form', api: @api %>
4
+
5
+ <%= link_to 'Show', @api %> |
6
+ <%= link_to 'Back', apis_path %>
@@ -0,0 +1,31 @@
1
+ <p id="notice"><%= notice %></p>
2
+
3
+ <h1>Apis</h1>
4
+
5
+ <table>
6
+ <thead>
7
+ <tr>
8
+ <th>Rfc</th>
9
+ <th>Rftrolling foreign key</th>
10
+ <th>Code</th>
11
+ <th colspan="3"></th>
12
+ </tr>
13
+ </thead>
14
+
15
+ <tbody>
16
+ <% @apis.each do |api| %>
17
+ <tr>
18
+ <td><%= api.rfc %></td>
19
+ <td><%= api.rftrolling_foreign_key %></td>
20
+ <td><%= api.code_id %></td>
21
+ <td><%= link_to 'Show', api %></td>
22
+ <td><%= link_to 'Edit', edit_api_path(api) %></td>
23
+ <td><%= link_to 'Destroy', api, method: :delete, data: { confirm: 'Are you sure?' } %></td>
24
+ </tr>
25
+ <% end %>
26
+ </tbody>
27
+ </table>
28
+
29
+ <br>
30
+
31
+ <%= link_to 'New Api', new_api_path %>
@@ -0,0 +1 @@
1
+ json.array! @apis, partial: "apis/api", as: :api
@@ -0,0 +1,5 @@
1
+ <h1>New Api</h1>
2
+
3
+ <%= render 'form', api: @api %>
4
+
5
+ <%= link_to 'Back', apis_path %>
@@ -0,0 +1,19 @@
1
+ <p id="notice"><%= notice %></p>
2
+
3
+ <p>
4
+ <strong>Rfc:</strong>
5
+ <%= @api.rfc %>
6
+ </p>
7
+
8
+ <p>
9
+ <strong>Rftrolling foreign key:</strong>
10
+ <%= @api.rftrolling_foreign_key %>
11
+ </p>
12
+
13
+ <p>
14
+ <strong>Code:</strong>
15
+ <%= @api.code_id %>
16
+ </p>
17
+
18
+ <%= link_to 'Edit', edit_api_path(@api) %> |
19
+ <%= link_to 'Back', apis_path %>
@@ -0,0 +1 @@
1
+ json.partial! "apis/api", api: @api
@@ -0,0 +1,2 @@
1
+ json.extract! basecamp_integration, :id, :description, :code, :created_at, :updated_at
2
+ json.url basecamp_integration_url(basecamp_integration, format: :json)
@@ -0,0 +1,27 @@
1
+ <%= form_with(model: basecamp_integration, local: true) do |form| %>
2
+ <% if basecamp_integration.errors.any? %>
3
+ <div id="error_explanation">
4
+ <h2><%= pluralize(basecamp_integration.errors.count, "error") %> prohibited this basecamp_integration from being saved:</h2>
5
+
6
+ <ul>
7
+ <% basecamp_integration.errors.full_messages.each do |message| %>
8
+ <li><%= message %></li>
9
+ <% end %>
10
+ </ul>
11
+ </div>
12
+ <% end %>
13
+
14
+ <div class="field">
15
+ <%= form.label :description %>
16
+ <%= form.text_field :description %>
17
+ </div>
18
+
19
+ <div class="field">
20
+ <%= form.label :code %>
21
+ <%= form.text_area :code %>
22
+ </div>
23
+
24
+ <div class="actions">
25
+ <%= form.submit %>
26
+ </div>
27
+ <% end %>
@@ -0,0 +1,6 @@
1
+ <h1>Editing Basecamp Integration</h1>
2
+
3
+ <%= render 'form', basecamp_integration: @basecamp_integration %>
4
+
5
+ <%= link_to 'Show', @basecamp_integration %> |
6
+ <%= link_to 'Back', basecamp_integrations_path %>
@@ -0,0 +1,29 @@
1
+ <p id="notice"><%= notice %></p>
2
+
3
+ <h1>Basecamp Integrations</h1>
4
+
5
+ <table>
6
+ <thead>
7
+ <tr>
8
+ <th>Description</th>
9
+ <th>Code</th>
10
+ <th colspan="3"></th>
11
+ </tr>
12
+ </thead>
13
+
14
+ <tbody>
15
+ <% @basecamp_integrations.each do |basecamp_integration| %>
16
+ <tr>
17
+ <td><%= basecamp_integration.description %></td>
18
+ <td><%= basecamp_integration.code %></td>
19
+ <td><%= link_to 'Show', basecamp_integration %></td>
20
+ <td><%= link_to 'Edit', edit_basecamp_integration_path(basecamp_integration) %></td>
21
+ <td><%= link_to 'Destroy', basecamp_integration, method: :delete, data: { confirm: 'Are you sure?' } %></td>
22
+ </tr>
23
+ <% end %>
24
+ </tbody>
25
+ </table>
26
+
27
+ <br>
28
+
29
+ <%= link_to 'New Basecamp Integration', new_basecamp_integration_path %>
@@ -0,0 +1 @@
1
+ json.array! @basecamp_integrations, partial: "basecamp_integrations/basecamp_integration", as: :basecamp_integration
@@ -0,0 +1,5 @@
1
+ <h1>New Basecamp Integration</h1>
2
+
3
+ <%= render 'form', basecamp_integration: @basecamp_integration %>
4
+
5
+ <%= link_to 'Back', basecamp_integrations_path %>
@@ -0,0 +1,14 @@
1
+ <p id="notice"><%= notice %></p>
2
+
3
+ <p>
4
+ <strong>Description:</strong>
5
+ <%= @basecamp_integration.description %>
6
+ </p>
7
+
8
+ <p>
9
+ <strong>Code:</strong>
10
+ <%= @basecamp_integration.code %>
11
+ </p>
12
+
13
+ <%= link_to 'Edit', edit_basecamp_integration_path(@basecamp_integration) %> |
14
+ <%= link_to 'Back', basecamp_integrations_path %>
@@ -0,0 +1 @@
1
+ json.partial! "basecamp_integrations/basecamp_integration", basecamp_integration: @basecamp_integration
@@ -0,0 +1,2 @@
1
+ json.extract! code_link_batch, :id, :description, :code_link_id, :created_at, :updated_at
2
+ json.url code_link_batch_url(code_link_batch, format: :json)
@@ -0,0 +1,27 @@
1
+ <%= form_with(model: code_link_batch, local: true) do |form| %>
2
+ <% if code_link_batch.errors.any? %>
3
+ <div id="error_explanation">
4
+ <h2><%= pluralize(code_link_batch.errors.count, "error") %> prohibited this code_link_batch from being saved:</h2>
5
+
6
+ <ul>
7
+ <% code_link_batch.errors.full_messages.each do |message| %>
8
+ <li><%= message %></li>
9
+ <% end %>
10
+ </ul>
11
+ </div>
12
+ <% end %>
13
+
14
+ <div class="field">
15
+ <%= form.label :description %>
16
+ <%= form.text_field :description %>
17
+ </div>
18
+
19
+ <div class="field">
20
+ <%= form.label :code_link_id %>
21
+ <%= form.text_field :code_link_id %>
22
+ </div>
23
+
24
+ <div class="actions">
25
+ <%= form.submit %>
26
+ </div>
27
+ <% end %>
@@ -0,0 +1,6 @@
1
+ <h1>Editing Code Link Batch</h1>
2
+
3
+ <%= render 'form', code_link_batch: @code_link_batch %>
4
+
5
+ <%= link_to 'Show', @code_link_batch %> |
6
+ <%= link_to 'Back', code_link_batches_path %>
@@ -0,0 +1,29 @@
1
+ <p id="notice"><%= notice %></p>
2
+
3
+ <h1>Code Link Batches</h1>
4
+
5
+ <table>
6
+ <thead>
7
+ <tr>
8
+ <th>Description</th>
9
+ <th>Code link</th>
10
+ <th colspan="3"></th>
11
+ </tr>
12
+ </thead>
13
+
14
+ <tbody>
15
+ <% @code_link_batches.each do |code_link_batch| %>
16
+ <tr>
17
+ <td><%= code_link_batch.description %></td>
18
+ <td><%= code_link_batch.code_link_id %></td>
19
+ <td><%= link_to 'Show', code_link_batch %></td>
20
+ <td><%= link_to 'Edit', edit_code_link_batch_path(code_link_batch) %></td>
21
+ <td><%= link_to 'Destroy', code_link_batch, method: :delete, data: { confirm: 'Are you sure?' } %></td>
22
+ </tr>
23
+ <% end %>
24
+ </tbody>
25
+ </table>
26
+
27
+ <br>
28
+
29
+ <%= link_to 'New Code Link Batch', new_code_link_batch_path %>
@@ -0,0 +1 @@
1
+ json.array! @code_link_batches, partial: "code_link_batches/code_link_batch", as: :code_link_batch
@@ -0,0 +1,5 @@
1
+ <h1>New Code Link Batch</h1>
2
+
3
+ <%= render 'form', code_link_batch: @code_link_batch %>
4
+
5
+ <%= link_to 'Back', code_link_batches_path %>
@@ -0,0 +1,14 @@
1
+ <p id="notice"><%= notice %></p>
2
+
3
+ <p>
4
+ <strong>Description:</strong>
5
+ <%= @code_link_batch.description %>
6
+ </p>
7
+
8
+ <p>
9
+ <strong>Code link:</strong>
10
+ <%= @code_link_batch.code_link_id %>
11
+ </p>
12
+
13
+ <%= link_to 'Edit', edit_code_link_batch_path(@code_link_batch) %> |
14
+ <%= link_to 'Back', code_link_batches_path %>
@@ -0,0 +1 @@
1
+ json.partial! "code_link_batches/code_link_batch", code_link_batch: @code_link_batch
@@ -0,0 +1,2 @@
1
+ json.extract! code_link_type, :id, :type_description, :type_id, :created_at, :updated_at
2
+ json.url code_link_type_url(code_link_type, format: :json)
@@ -0,0 +1,27 @@
1
+ <%= form_with(model: code_link_type, local: true) do |form| %>
2
+ <% if code_link_type.errors.any? %>
3
+ <div id="error_explanation">
4
+ <h2><%= pluralize(code_link_type.errors.count, "error") %> prohibited this code_link_type from being saved:</h2>
5
+
6
+ <ul>
7
+ <% code_link_type.errors.full_messages.each do |message| %>
8
+ <li><%= message %></li>
9
+ <% end %>
10
+ </ul>
11
+ </div>
12
+ <% end %>
13
+
14
+ <div class="field">
15
+ <%= form.label :type_description %>
16
+ <%= form.text_area :type_description %>
17
+ </div>
18
+
19
+ <div class="field">
20
+ <%= form.label :type_id %>
21
+ <%= form.text_field :type_id %>
22
+ </div>
23
+
24
+ <div class="actions">
25
+ <%= form.submit %>
26
+ </div>
27
+ <% end %>