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.
- checksums.yaml +4 -4
- data/Icon/r +0 -0
- data/app/assets/stylesheets/apis.scss +3 -0
- data/app/assets/stylesheets/basecamp_integrations.scss +3 -0
- data/app/assets/stylesheets/code_link_batches.scss +3 -0
- data/app/assets/stylesheets/code_link_types.scss +3 -0
- data/app/assets/stylesheets/code_links.scss +3 -0
- data/app/assets/stylesheets/codes.scss +3 -0
- data/app/assets/stylesheets/cookie_changes.scss +3 -0
- data/app/assets/stylesheets/partners/get_paids.scss +3 -0
- data/app/assets/stylesheets/searches.scss +3 -0
- data/app/assets/stylesheets/types.scss +3 -0
- data/app/controllers/apis_controller.rb +74 -0
- data/app/controllers/basecamp_integrations_controller.rb +76 -0
- data/app/controllers/code_link_batches_controller.rb +74 -0
- data/app/controllers/code_link_types_controller.rb +74 -0
- data/app/controllers/code_links_controller.rb +74 -0
- data/app/controllers/codes_controller.rb +74 -0
- data/app/controllers/cookie_changes_controller.rb +78 -0
- data/app/controllers/directories_controller.rb +14 -14
- data/app/controllers/ezii_os_files_controller.rb +14 -1
- data/app/controllers/partners/get_paids_controller.rb +74 -0
- data/app/controllers/searches_controller.rb +74 -0
- data/app/controllers/types_controller.rb +74 -0
- data/app/helpers/apis_helper.rb +2 -0
- data/app/helpers/basecamp_integrations_helper.rb +2 -0
- data/app/helpers/code_link_batches_helper.rb +2 -0
- data/app/helpers/code_link_types_helper.rb +2 -0
- data/app/helpers/code_links_helper.rb +2 -0
- data/app/helpers/codes_helper.rb +2 -0
- data/app/helpers/cookie_changes_helper.rb +2 -0
- data/app/helpers/partners/get_paids_helper.rb +2 -0
- data/app/helpers/searches_helper.rb +2 -0
- data/app/helpers/types_helper.rb +2 -0
- data/app/models/api.rb +3 -0
- data/app/models/basecamp_integration.rb +2 -0
- data/app/models/code.rb +3 -0
- data/app/models/code_link.rb +3 -0
- data/app/models/code_link_batch.rb +3 -0
- data/app/models/code_link_type.rb +3 -0
- data/app/models/cookie_change.rb +2 -0
- data/app/models/partners/get_paid.rb +2 -0
- data/app/models/partners.rb +5 -0
- data/app/models/search.rb +2 -0
- data/app/models/type.rb +3 -0
- data/app/views/apis/_api.json.jbuilder +2 -0
- data/app/views/apis/_form.html.erb +32 -0
- data/app/views/apis/edit.html.erb +6 -0
- data/app/views/apis/index.html.erb +31 -0
- data/app/views/apis/index.json.jbuilder +1 -0
- data/app/views/apis/new.html.erb +5 -0
- data/app/views/apis/show.html.erb +19 -0
- data/app/views/apis/show.json.jbuilder +1 -0
- data/app/views/basecamp_integrations/_basecamp_integration.json.jbuilder +2 -0
- data/app/views/basecamp_integrations/_form.html.erb +27 -0
- data/app/views/basecamp_integrations/edit.html.erb +6 -0
- data/app/views/basecamp_integrations/index.html.erb +29 -0
- data/app/views/basecamp_integrations/index.json.jbuilder +1 -0
- data/app/views/basecamp_integrations/new.html.erb +5 -0
- data/app/views/basecamp_integrations/show.html.erb +14 -0
- data/app/views/basecamp_integrations/show.json.jbuilder +1 -0
- data/app/views/code_link_batches/_code_link_batch.json.jbuilder +2 -0
- data/app/views/code_link_batches/_form.html.erb +27 -0
- data/app/views/code_link_batches/edit.html.erb +6 -0
- data/app/views/code_link_batches/index.html.erb +29 -0
- data/app/views/code_link_batches/index.json.jbuilder +1 -0
- data/app/views/code_link_batches/new.html.erb +5 -0
- data/app/views/code_link_batches/show.html.erb +14 -0
- data/app/views/code_link_batches/show.json.jbuilder +1 -0
- data/app/views/code_link_types/_code_link_type.json.jbuilder +2 -0
- data/app/views/code_link_types/_form.html.erb +27 -0
- data/app/views/code_link_types/edit.html.erb +6 -0
- data/app/views/code_link_types/index.html.erb +29 -0
- data/app/views/code_link_types/index.json.jbuilder +1 -0
- data/app/views/code_link_types/new.html.erb +5 -0
- data/app/views/code_link_types/show.html.erb +14 -0
- data/app/views/code_link_types/show.json.jbuilder +1 -0
- data/app/views/code_links/_code_link.json.jbuilder +2 -0
- data/app/views/code_links/_form.html.erb +32 -0
- data/app/views/code_links/edit.html.erb +6 -0
- data/app/views/code_links/index.html.erb +31 -0
- data/app/views/code_links/index.json.jbuilder +1 -0
- data/app/views/code_links/new.html.erb +5 -0
- data/app/views/code_links/show.html.erb +19 -0
- data/app/views/code_links/show.json.jbuilder +1 -0
- data/app/views/codes/_code.json.jbuilder +2 -0
- data/app/views/codes/_form.html.erb +32 -0
- data/app/views/codes/edit.html.erb +6 -0
- data/app/views/codes/index.html.erb +31 -0
- data/app/views/codes/index.json.jbuilder +1 -0
- data/app/views/codes/new.html.erb +5 -0
- data/app/views/codes/show.html.erb +19 -0
- data/app/views/codes/show.json.jbuilder +1 -0
- data/app/views/cookie_changes/_cookie_change.json.jbuilder +2 -0
- data/app/views/cookie_changes/_form.html.erb +27 -0
- data/app/views/cookie_changes/edit.html.erb +6 -0
- data/app/views/cookie_changes/index.html.erb +29 -0
- data/app/views/cookie_changes/index.json.jbuilder +1 -0
- data/app/views/cookie_changes/new.html.erb +5 -0
- data/app/views/cookie_changes/show.html.erb +14 -0
- data/app/views/cookie_changes/show.json.jbuilder +1 -0
- data/app/views/directories/show.html.erb +6 -1
- data/app/views/ezii_os_files/_wit_ai_widget.html.erb +203 -49
- data/app/views/ezii_os_files/show.html.erb +6 -9
- data/app/views/layouts/application.html.erb +212 -52
- data/app/views/partners/get_paids/_form.html.erb +27 -0
- data/app/views/partners/get_paids/_partners_get_paid.json.jbuilder +2 -0
- data/app/views/partners/get_paids/edit.html.erb +6 -0
- data/app/views/partners/get_paids/index.html.erb +29 -0
- data/app/views/partners/get_paids/index.json.jbuilder +1 -0
- data/app/views/partners/get_paids/new.html.erb +5 -0
- data/app/views/partners/get_paids/show.html.erb +14 -0
- data/app/views/partners/get_paids/show.json.jbuilder +1 -0
- data/app/views/searches/_form.html.erb +22 -0
- data/app/views/searches/_search.json.jbuilder +2 -0
- data/app/views/searches/edit.html.erb +6 -0
- data/app/views/searches/index.html.erb +27 -0
- data/app/views/searches/index.json.jbuilder +1 -0
- data/app/views/searches/new.html.erb +5 -0
- data/app/views/searches/show.html.erb +9 -0
- data/app/views/searches/show.json.jbuilder +1 -0
- data/app/views/types/_form.html.erb +22 -0
- data/app/views/types/_type.json.jbuilder +2 -0
- data/app/views/types/edit.html.erb +6 -0
- data/app/views/types/index.html.erb +27 -0
- data/app/views/types/index.json.jbuilder +1 -0
- data/app/views/types/new.html.erb +5 -0
- data/app/views/types/show.html.erb +9 -0
- data/app/views/types/show.json.jbuilder +1 -0
- data/config/credentials.yml.enc +1 -1
- data/config/routes.rb +12 -0
- data/db/development.sqlite3 +0 -0
- data/db/migrate/20190827060151_create_searches.rb +9 -0
- data/db/migrate/20190827063427_create_partners_get_paids.rb +10 -0
- data/db/migrate/20190827180750_create_basecamp_integrations.rb +10 -0
- data/db/migrate/20190827180751_create_types.rb +9 -0
- data/db/migrate/20190827180752_create_code_link_types.rb +10 -0
- data/db/migrate/20190827180753_create_code_links.rb +11 -0
- data/db/migrate/20190827180754_create_codes.rb +11 -0
- data/db/migrate/20190828104427_create_apis.rb +12 -0
- data/db/migrate/20190828105156_create_code_link_batches.rb +10 -0
- data/db/migrate/20190829174432_create_cookie_changes.rb +10 -0
- data/db/schema.rb +88 -1
- data/db/seeds.rb +4 -0
- data/db/test.sqlite3 +0 -0
- data/ezii-os-0.0.0.1.0.gem +0 -0
- data/ezii-os.gemspec +1 -1
- data/lib/tasks/task.rake +5 -0
- data/log/development.log +13283 -0
- data/test/controllers/apis_controller_test.rb +48 -0
- data/test/controllers/basecamp_integrations_controller_test.rb +48 -0
- data/test/controllers/code_link_batches_controller_test.rb +48 -0
- data/test/controllers/code_link_types_controller_test.rb +48 -0
- data/test/controllers/code_links_controller_test.rb +48 -0
- data/test/controllers/codes_controller_test.rb +48 -0
- data/test/controllers/cookie_changes_controller_test.rb +48 -0
- data/test/controllers/partners/get_paids_controller_test.rb +48 -0
- data/test/controllers/searches_controller_test.rb +48 -0
- data/test/controllers/types_controller_test.rb +48 -0
- data/test/fixtures/apis.yml +11 -0
- data/test/fixtures/basecamp_integrations.yml +9 -0
- data/test/fixtures/code_link_batches.yml +9 -0
- data/test/fixtures/code_link_types.yml +9 -0
- data/test/fixtures/code_links.yml +11 -0
- data/test/fixtures/codes.yml +11 -0
- data/test/fixtures/cookie_changes.yml +9 -0
- data/test/fixtures/partners/get_paids.yml +9 -0
- data/test/fixtures/searches.yml +7 -0
- data/test/fixtures/types.yml +7 -0
- data/test/models/api_test.rb +7 -0
- data/test/models/basecamp_integration_test.rb +7 -0
- data/test/models/code_link_batch_test.rb +7 -0
- data/test/models/code_link_test.rb +7 -0
- data/test/models/code_link_type_test.rb +7 -0
- data/test/models/code_test.rb +7 -0
- data/test/models/cookie_change_test.rb +7 -0
- data/test/models/partners/get_paid_test.rb +7 -0
- data/test/models/search_test.rb +7 -0
- data/test/models/type_test.rb +7 -0
- data/test/system/apis_test.rb +47 -0
- data/test/system/basecamp_integrations_test.rb +45 -0
- data/test/system/code_link_batches_test.rb +45 -0
- data/test/system/code_link_types_test.rb +45 -0
- data/test/system/code_links_test.rb +47 -0
- data/test/system/codes_test.rb +47 -0
- data/test/system/cookie_changes_test.rb +45 -0
- data/test/system/partners/get_paids_test.rb +45 -0
- data/test/system/searches_test.rb +43 -0
- data/test/system/types_test.rb +43 -0
- 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
|
data/app/models/api.rb
ADDED
data/app/models/code.rb
ADDED
data/app/models/type.rb
ADDED
@@ -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,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,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,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,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,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,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,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,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,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 %>
|