lesli_support 0.1.0 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (135) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/images/lesli_support/support-logo.svg +1 -9
  3. data/app/assets/javascripts/lesli_support/application.js +1 -4998
  4. data/app/assets/stylesheets/lesli_support/application.css +3 -3
  5. data/app/controllers/lesli_support/catalog/items_controller.rb +60 -0
  6. data/app/controllers/lesli_support/item/discussions_controller.rb +6 -0
  7. data/app/controllers/lesli_support/item/tasks_controller.rb +6 -0
  8. data/app/controllers/lesli_support/ticket/activities_controller.rb +60 -0
  9. data/app/controllers/lesli_support/ticket/discussions_controller.rb +1 -2
  10. data/app/controllers/lesli_support/tickets_controller.rb +37 -56
  11. data/app/helpers/lesli_support/{options_helper.rb → catalog/items_helper.rb} +1 -1
  12. data/app/helpers/lesli_support/ticket/activities_helper.rb +4 -0
  13. data/app/models/lesli_support/account.rb +5 -8
  14. data/app/models/lesli_support/catalog/item.rb +4 -0
  15. data/app/models/lesli_support/catalog.rb +3 -12
  16. data/app/models/lesli_support/dashboard.rb +6 -10
  17. data/app/models/lesli_support/item/activity.rb +4 -0
  18. data/app/models/lesli_support/item/discussion.rb +6 -0
  19. data/app/models/lesli_support/item/task.rb +6 -0
  20. data/app/models/lesli_support/ticket/activity.rb +4 -0
  21. data/app/models/lesli_support/ticket/discussion.rb +3 -4
  22. data/app/models/lesli_support/ticket.rb +66 -7
  23. data/app/services/lesli_support/ticket_service.rb +37 -55
  24. data/app/views/lesli_support/catalog/items/_form.html.erb +17 -0
  25. data/app/views/lesli_support/catalog/items/_item.html.erb +2 -0
  26. data/app/views/lesli_support/catalog/items/edit.html.erb +12 -0
  27. data/app/views/lesli_support/catalog/items/index.html.erb +16 -0
  28. data/app/views/lesli_support/catalog/items/new.html.erb +11 -0
  29. data/app/views/lesli_support/catalog/items/show.html.erb +10 -0
  30. data/app/views/lesli_support/dashboards/_component-latest-tickets.html.erb +34 -0
  31. data/app/views/lesli_support/dashboards/_component-tickets-by-category.html.erb +17 -0
  32. data/app/views/lesli_support/dashboards/_component-tickets-created.html.erb +10 -0
  33. data/app/views/lesli_support/dashboards/_component-tickets-open.html.erb +5 -0
  34. data/app/views/lesli_support/tickets/_form.html.erb +27 -0
  35. data/app/views/lesli_support/tickets/index.html.erb +35 -4
  36. data/app/views/lesli_support/tickets/new.html.erb +31 -14
  37. data/app/views/lesli_support/tickets/show.html.erb +30 -15
  38. data/config/locales/translations.en.yml +1 -42
  39. data/config/locales/translations.es.yml +1 -42
  40. data/config/locales/translations.fr.yml +1 -42
  41. data/config/locales/translations.it.yml +1 -42
  42. data/config/locales/translations.pt.yml +1 -42
  43. data/config/routes.rb +5 -25
  44. data/db/migrate/v1/0702000110_create_lesli_support_accounts.rb +10 -8
  45. data/db/migrate/v1/0702002010_create_lesli_support_catalogs.rb +37 -0
  46. data/db/migrate/v1/0702100110_create_lesli_support_slas.rb +2 -6
  47. data/db/migrate/v1/0702110110_create_lesli_support_tickets.rb +18 -49
  48. data/db/seed/development.rb +43 -22
  49. data/db/seed/production.rb +7 -2
  50. data/db/seed/seeds.json +64 -0
  51. data/db/seed/test.rb +2 -2
  52. data/db/seeds.rb +6 -13
  53. data/db/{migrate/v1/0702000210_create_lesli_support_account_settings.rb → tables/0010009010_create_feedbacks.rb} +21 -11
  54. data/db/{migrate/v1 → tables}/0702010110_create_lesli_support_catalog_workspaces.rb +7 -7
  55. data/db/{migrate/v1 → tables}/0702010210_create_lesli_support_catalog_types.rb +6 -6
  56. data/db/{migrate/v1 → tables}/0702010310_create_lesli_support_catalog_categories.rb +7 -7
  57. data/db/{migrate/v1 → tables}/0702010410_create_lesli_support_catalog_priorities.rb +7 -7
  58. data/lib/lesli_support/version.rb +2 -2
  59. data/readme.md +77 -25
  60. metadata +37 -91
  61. data/app/controllers/lesli_support/catalog_categories_controller.rb +0 -60
  62. data/app/controllers/lesli_support/catalog_priorities_controller.rb +0 -60
  63. data/app/controllers/lesli_support/catalog_types_controller.rb +0 -60
  64. data/app/controllers/lesli_support/catalog_workspaces_controller.rb +0 -60
  65. data/app/controllers/lesli_support/dashboard/components_controller.rb +0 -92
  66. data/app/controllers/lesli_support/options_controller.rb +0 -23
  67. data/app/helpers/lesli_support/catalog_categories_helper.rb +0 -4
  68. data/app/helpers/lesli_support/catalog_priorities_helper.rb +0 -4
  69. data/app/helpers/lesli_support/catalog_types_helper.rb +0 -4
  70. data/app/helpers/lesli_support/catalog_workspaces_helper.rb +0 -4
  71. data/app/models/lesli_support/catalog_category.rb +0 -5
  72. data/app/models/lesli_support/catalog_priority.rb +0 -5
  73. data/app/models/lesli_support/catalog_type.rb +0 -5
  74. data/app/models/lesli_support/catalog_workspace.rb +0 -5
  75. data/app/models/lesli_support/dashboard/component.rb +0 -18
  76. data/app/models/lesli_support/option.rb +0 -4
  77. data/app/views/layouts/lesli_support/application.html.erb +0 -15
  78. data/app/views/lesli_support/catalog_categories/_catalog_category.html.erb +0 -2
  79. data/app/views/lesli_support/catalog_categories/_form.html.erb +0 -17
  80. data/app/views/lesli_support/catalog_categories/edit.html.erb +0 -10
  81. data/app/views/lesli_support/catalog_categories/index.html.erb +0 -14
  82. data/app/views/lesli_support/catalog_categories/new.html.erb +0 -9
  83. data/app/views/lesli_support/catalog_categories/show.html.erb +0 -10
  84. data/app/views/lesli_support/catalog_priorities/_catalog_priority.html.erb +0 -2
  85. data/app/views/lesli_support/catalog_priorities/_form.html.erb +0 -17
  86. data/app/views/lesli_support/catalog_priorities/edit.html.erb +0 -10
  87. data/app/views/lesli_support/catalog_priorities/index.html.erb +0 -14
  88. data/app/views/lesli_support/catalog_priorities/new.html.erb +0 -9
  89. data/app/views/lesli_support/catalog_priorities/show.html.erb +0 -10
  90. data/app/views/lesli_support/catalog_types/_catalog_type.html.erb +0 -2
  91. data/app/views/lesli_support/catalog_types/_form.html.erb +0 -17
  92. data/app/views/lesli_support/catalog_types/edit.html.erb +0 -10
  93. data/app/views/lesli_support/catalog_types/index.html.erb +0 -14
  94. data/app/views/lesli_support/catalog_types/new.html.erb +0 -9
  95. data/app/views/lesli_support/catalog_types/show.html.erb +0 -10
  96. data/app/views/lesli_support/catalog_workspaces/_catalog_workspace.html.erb +0 -2
  97. data/app/views/lesli_support/catalog_workspaces/_form.html.erb +0 -17
  98. data/app/views/lesli_support/catalog_workspaces/edit.html.erb +0 -10
  99. data/app/views/lesli_support/catalog_workspaces/index.html.erb +0 -14
  100. data/app/views/lesli_support/catalog_workspaces/new.html.erb +0 -9
  101. data/app/views/lesli_support/catalog_workspaces/show.html.erb +0 -10
  102. data/app/views/lesli_support/dashboards/edit.html.erb +0 -1
  103. data/app/views/lesli_support/dashboards/index.html.erb +0 -1
  104. data/app/views/lesli_support/dashboards/new.html.erb +0 -1
  105. data/app/views/lesli_support/dashboards/show.html.erb +0 -1
  106. data/app/views/lesli_support/options/_form.html.erb +0 -17
  107. data/app/views/lesli_support/options/_option.html.erb +0 -2
  108. data/app/views/lesli_support/options/edit.html.erb +0 -10
  109. data/app/views/lesli_support/options/index.html.erb +0 -14
  110. data/app/views/lesli_support/options/new.html.erb +0 -9
  111. data/app/views/lesli_support/options/show.html.erb +0 -10
  112. data/app/views/lesli_support/ticket/discussions/_discussion.html.erb +0 -2
  113. data/app/views/lesli_support/ticket/discussions/_form.html.erb +0 -17
  114. data/app/views/lesli_support/ticket/discussions/edit.html.erb +0 -10
  115. data/app/views/lesli_support/ticket/discussions/index.html.erb +0 -14
  116. data/app/views/lesli_support/ticket/discussions/new.html.erb +0 -9
  117. data/app/views/lesli_support/ticket/discussions/show.html.erb +0 -10
  118. data/app/views/lesli_support/tickets/edit.html.erb +0 -20
  119. data/db/migrate/v1/0702050110_create_lesli_support_dashboards.rb +0 -50
  120. data/db/migrate/v1/0702050210_create_lesli_support_dashboard_components.rb +0 -50
  121. data/db/migrate/v1/0702110510_create_lesli_support_ticket_discussions.rb +0 -52
  122. data/lib/scss/application.scss +0 -11
  123. data/lib/vue/application.js +0 -93
  124. data/lib/vue/apps/dashboard/components/engine-version.vue +0 -71
  125. data/lib/vue/apps/dashboard/components/my-tasks.vue +0 -77
  126. data/lib/vue/apps/tickets/components/assignments.vue +0 -93
  127. data/lib/vue/apps/tickets/components/form.vue +0 -305
  128. data/lib/vue/apps/tickets/components/internal-comments.vue +0 -107
  129. data/lib/vue/apps/tickets/components/sla-info.vue +0 -115
  130. data/lib/vue/apps/tickets/index.vue +0 -145
  131. data/lib/vue/apps/tickets/new.vue +0 -78
  132. data/lib/vue/apps/tickets/show.vue +0 -183
  133. data/lib/vue/stores/tickets.js +0 -276
  134. data/lib/vue/stores/translations.json +0 -272
  135. /data/app/views/lesli_support/partials/{_engine-navigation.html.erb → _navigation.html.erb} +0 -0
@@ -1,92 +0,0 @@
1
- =begin
2
-
3
- Lesli
4
-
5
- Copyright (c) 2023, Lesli Technologies, S. A.
6
-
7
- This program is free software: you can redistribute it and/or modify
8
- it under the terms of the GNU General Public License as published by
9
- the Free Software Foundation, either version 3 of the License, or
10
- (at your option) any later version.
11
-
12
- This program is distributed in the hope that it will be useful,
13
- but WITHOUT ANY WARRANTY; without even the implied warranty of
14
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
- GNU General Public License for more details.
16
-
17
- You should have received a copy of the GNU General Public License
18
- along with this program. If not, see http://www.gnu.org/licenses/.
19
-
20
- Lesli · Ruby on Rails SaaS Development Framework.
21
-
22
- Made with ♥ by https://www.lesli.tech
23
- Building a better future, one line of code at a time.
24
-
25
- @contact hello@lesli.tech
26
- @website https://www.lesli.tech
27
- @license GPLv3 http://www.gnu.org/licenses/gpl-3.0.en.html
28
-
29
- // · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~
30
- // ·
31
- =end
32
-
33
- module LesliSupport
34
- class Dashboard::ComponentsController < ApplicationController
35
- before_action :set_dashboard_component, only: %i[ show edit update destroy ]
36
-
37
- # GET /dashboard/components
38
- def index
39
- @dashboard_components = Dashboard::Component.all
40
- end
41
-
42
- # GET /dashboard/components/1
43
- def show
44
- end
45
-
46
- # GET /dashboard/components/new
47
- def new
48
- @dashboard_component = Dashboard::Component.new
49
- end
50
-
51
- # GET /dashboard/components/1/edit
52
- def edit
53
- end
54
-
55
- # POST /dashboard/components
56
- def create
57
- @dashboard_component = Dashboard::Component.new(dashboard_component_params)
58
-
59
- if @dashboard_component.save
60
- redirect_to @dashboard_component, notice: "Component was successfully created."
61
- else
62
- render :new, status: :unprocessable_entity
63
- end
64
- end
65
-
66
- # PATCH/PUT /dashboard/components/1
67
- def update
68
- if @dashboard_component.update(dashboard_component_params)
69
- redirect_to @dashboard_component, notice: "Component was successfully updated.", status: :see_other
70
- else
71
- render :edit, status: :unprocessable_entity
72
- end
73
- end
74
-
75
- # DELETE /dashboard/components/1
76
- def destroy
77
- @dashboard_component.destroy
78
- redirect_to dashboard_components_url, notice: "Component was successfully destroyed.", status: :see_other
79
- end
80
-
81
- private
82
- # Use callbacks to share common setup or constraints between actions.
83
- def set_dashboard_component
84
- @dashboard_component = Dashboard::Component.find(params[:id])
85
- end
86
-
87
- # Only allow a list of trusted parameters through.
88
- def dashboard_component_params
89
- params.fetch(:dashboard_component, {})
90
- end
91
- end
92
- end
@@ -1,23 +0,0 @@
1
- module LesliSupport
2
- class OptionsController < ApplicationController
3
- before_action :set_option, only: %i[ show edit update destroy ]
4
-
5
- # GET /options
6
- def index
7
- respond_to do |format|
8
- format.html { }
9
- format.json do
10
-
11
- options = {
12
- types: CatalogType.select(:id, :name),
13
- categories: CatalogCategory.select(:id, :name),
14
- priorities: CatalogPriority.select(:id, :name).order(:weight),
15
- workspaces: CatalogWorkspace.select(:id, :name)
16
- }
17
-
18
- respond_with_successful(options)
19
- end
20
- end
21
- end
22
- end
23
- end
@@ -1,4 +0,0 @@
1
- module LesliSupport
2
- module CatalogCategoriesHelper
3
- end
4
- end
@@ -1,4 +0,0 @@
1
- module LesliSupport
2
- module CatalogPrioritiesHelper
3
- end
4
- end
@@ -1,4 +0,0 @@
1
- module LesliSupport
2
- module CatalogTypesHelper
3
- end
4
- end
@@ -1,4 +0,0 @@
1
- module LesliSupport
2
- module CatalogWorkspacesHelper
3
- end
4
- end
@@ -1,5 +0,0 @@
1
- module LesliSupport
2
- class CatalogCategory < ApplicationRecord
3
- has_many :tickets
4
- end
5
- end
@@ -1,5 +0,0 @@
1
- module LesliSupport
2
- class CatalogPriority < ApplicationRecord
3
- has_many :tickets
4
- end
5
- end
@@ -1,5 +0,0 @@
1
- module LesliSupport
2
- class CatalogType < ApplicationRecord
3
- has_many :tickets
4
- end
5
- end
@@ -1,5 +0,0 @@
1
- module LesliSupport
2
- class CatalogWorkspace < ApplicationRecord
3
- has_many :tickets
4
- end
5
- end
@@ -1,18 +0,0 @@
1
- module LesliSupport
2
- class Dashboard::Component < ApplicationRecord
3
-
4
- belongs_to :dashboard, inverse_of: :components
5
-
6
- def self.component_ids
7
- ["version", "my-tasks"]
8
- end
9
- # components_ids: {
10
- # list_new_tickets: "list_new_tickets",
11
- # list_my_tickets: "list_my_tickets",
12
- # list_unassigned_tickets: "list_unassigned_tickets",
13
- # chart_tickets_by_type: "chart_tickets_by_type",
14
- # chart_tickets_by_category: "chart_tickets_by_category",
15
- # hours_worked: "hours_worked"
16
- # }
17
- end
18
- end
@@ -1,4 +0,0 @@
1
- module LesliSupport
2
- class Option < ApplicationRecord
3
- end
4
- end
@@ -1,15 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>Lesli help</title>
5
- <%= csrf_meta_tags %>
6
- <%= csp_meta_tag %>
7
-
8
- <%= stylesheet_link_tag "lesli_support/application", media: "all" %>
9
- </head>
10
- <body>
11
-
12
- <%= yield %>
13
-
14
- </body>
15
- </html>
@@ -1,2 +0,0 @@
1
- <div id="<%= dom_id catalog_category %>">
2
- </div>
@@ -1,17 +0,0 @@
1
- <%= form_with(model: catalog_category) do |form| %>
2
- <% if catalog_category.errors.any? %>
3
- <div style="color: red">
4
- <h2><%= pluralize(catalog_category.errors.count, "error") %> prohibited this catalog_category from being saved:</h2>
5
-
6
- <ul>
7
- <% catalog_category.errors.each do |error| %>
8
- <li><%= error.full_message %></li>
9
- <% end %>
10
- </ul>
11
- </div>
12
- <% end %>
13
-
14
- <div>
15
- <%= form.submit %>
16
- </div>
17
- <% end %>
@@ -1,10 +0,0 @@
1
- <h1>Editing catalog category</h1>
2
-
3
- <%= render "form", catalog_category: @catalog_category %>
4
-
5
- <br>
6
-
7
- <div>
8
- <%= link_to "Show this catalog category", @catalog_category %> |
9
- <%= link_to "Back to catalog categories", catalog_categories_path %>
10
- </div>
@@ -1,14 +0,0 @@
1
- <p style="color: green"><%= notice %></p>
2
-
3
- <h1>Catalog categories</h1>
4
-
5
- <div id="catalog_categories">
6
- <% @catalog_categories.each do |catalog_category| %>
7
- <%= render catalog_category %>
8
- <p>
9
- <%= link_to "Show this catalog category", catalog_category %>
10
- </p>
11
- <% end %>
12
- </div>
13
-
14
- <%= link_to "New catalog category", new_catalog_category_path %>
@@ -1,9 +0,0 @@
1
- <h1>New catalog category</h1>
2
-
3
- <%= render "form", catalog_category: @catalog_category %>
4
-
5
- <br>
6
-
7
- <div>
8
- <%= link_to "Back to catalog categories", catalog_categories_path %>
9
- </div>
@@ -1,10 +0,0 @@
1
- <p style="color: green"><%= notice %></p>
2
-
3
- <%= render @catalog_category %>
4
-
5
- <div>
6
- <%= link_to "Edit this catalog category", edit_catalog_category_path(@catalog_category) %> |
7
- <%= link_to "Back to catalog categories", catalog_categories_path %>
8
-
9
- <%= button_to "Destroy this catalog category", @catalog_category, method: :delete %>
10
- </div>
@@ -1,2 +0,0 @@
1
- <div id="<%= dom_id catalog_priority %>">
2
- </div>
@@ -1,17 +0,0 @@
1
- <%= form_with(model: catalog_priority) do |form| %>
2
- <% if catalog_priority.errors.any? %>
3
- <div style="color: red">
4
- <h2><%= pluralize(catalog_priority.errors.count, "error") %> prohibited this catalog_priority from being saved:</h2>
5
-
6
- <ul>
7
- <% catalog_priority.errors.each do |error| %>
8
- <li><%= error.full_message %></li>
9
- <% end %>
10
- </ul>
11
- </div>
12
- <% end %>
13
-
14
- <div>
15
- <%= form.submit %>
16
- </div>
17
- <% end %>
@@ -1,10 +0,0 @@
1
- <h1>Editing catalog priority</h1>
2
-
3
- <%= render "form", catalog_priority: @catalog_priority %>
4
-
5
- <br>
6
-
7
- <div>
8
- <%= link_to "Show this catalog priority", @catalog_priority %> |
9
- <%= link_to "Back to catalog priorities", catalog_priorities_path %>
10
- </div>
@@ -1,14 +0,0 @@
1
- <p style="color: green"><%= notice %></p>
2
-
3
- <h1>Catalog priorities</h1>
4
-
5
- <div id="catalog_priorities">
6
- <% @catalog_priorities.each do |catalog_priority| %>
7
- <%= render catalog_priority %>
8
- <p>
9
- <%= link_to "Show this catalog priority", catalog_priority %>
10
- </p>
11
- <% end %>
12
- </div>
13
-
14
- <%= link_to "New catalog priority", new_catalog_priority_path %>
@@ -1,9 +0,0 @@
1
- <h1>New catalog priority</h1>
2
-
3
- <%= render "form", catalog_priority: @catalog_priority %>
4
-
5
- <br>
6
-
7
- <div>
8
- <%= link_to "Back to catalog priorities", catalog_priorities_path %>
9
- </div>
@@ -1,10 +0,0 @@
1
- <p style="color: green"><%= notice %></p>
2
-
3
- <%= render @catalog_priority %>
4
-
5
- <div>
6
- <%= link_to "Edit this catalog priority", edit_catalog_priority_path(@catalog_priority) %> |
7
- <%= link_to "Back to catalog priorities", catalog_priorities_path %>
8
-
9
- <%= button_to "Destroy this catalog priority", @catalog_priority, method: :delete %>
10
- </div>
@@ -1,2 +0,0 @@
1
- <div id="<%= dom_id catalog_type %>">
2
- </div>
@@ -1,17 +0,0 @@
1
- <%= form_with(model: catalog_type) do |form| %>
2
- <% if catalog_type.errors.any? %>
3
- <div style="color: red">
4
- <h2><%= pluralize(catalog_type.errors.count, "error") %> prohibited this catalog_type from being saved:</h2>
5
-
6
- <ul>
7
- <% catalog_type.errors.each do |error| %>
8
- <li><%= error.full_message %></li>
9
- <% end %>
10
- </ul>
11
- </div>
12
- <% end %>
13
-
14
- <div>
15
- <%= form.submit %>
16
- </div>
17
- <% end %>
@@ -1,10 +0,0 @@
1
- <h1>Editing catalog type</h1>
2
-
3
- <%= render "form", catalog_type: @catalog_type %>
4
-
5
- <br>
6
-
7
- <div>
8
- <%= link_to "Show this catalog type", @catalog_type %> |
9
- <%= link_to "Back to catalog types", catalog_types_path %>
10
- </div>
@@ -1,14 +0,0 @@
1
- <p style="color: green"><%= notice %></p>
2
-
3
- <h1>Catalog types</h1>
4
-
5
- <div id="catalog_types">
6
- <% @catalog_types.each do |catalog_type| %>
7
- <%= render catalog_type %>
8
- <p>
9
- <%= link_to "Show this catalog type", catalog_type %>
10
- </p>
11
- <% end %>
12
- </div>
13
-
14
- <%= link_to "New catalog type", new_catalog_type_path %>
@@ -1,9 +0,0 @@
1
- <h1>New catalog type</h1>
2
-
3
- <%= render "form", catalog_type: @catalog_type %>
4
-
5
- <br>
6
-
7
- <div>
8
- <%= link_to "Back to catalog types", catalog_types_path %>
9
- </div>
@@ -1,10 +0,0 @@
1
- <p style="color: green"><%= notice %></p>
2
-
3
- <%= render @catalog_type %>
4
-
5
- <div>
6
- <%= link_to "Edit this catalog type", edit_catalog_type_path(@catalog_type) %> |
7
- <%= link_to "Back to catalog types", catalog_types_path %>
8
-
9
- <%= button_to "Destroy this catalog type", @catalog_type, method: :delete %>
10
- </div>
@@ -1,2 +0,0 @@
1
- <div id="<%= dom_id catalog_workspace %>">
2
- </div>
@@ -1,17 +0,0 @@
1
- <%= form_with(model: catalog_workspace) do |form| %>
2
- <% if catalog_workspace.errors.any? %>
3
- <div style="color: red">
4
- <h2><%= pluralize(catalog_workspace.errors.count, "error") %> prohibited this catalog_workspace from being saved:</h2>
5
-
6
- <ul>
7
- <% catalog_workspace.errors.each do |error| %>
8
- <li><%= error.full_message %></li>
9
- <% end %>
10
- </ul>
11
- </div>
12
- <% end %>
13
-
14
- <div>
15
- <%= form.submit %>
16
- </div>
17
- <% end %>
@@ -1,10 +0,0 @@
1
- <h1>Editing catalog workspace</h1>
2
-
3
- <%= render "form", catalog_workspace: @catalog_workspace %>
4
-
5
- <br>
6
-
7
- <div>
8
- <%= link_to "Show this catalog workspace", @catalog_workspace %> |
9
- <%= link_to "Back to catalog workspaces", catalog_workspaces_path %>
10
- </div>
@@ -1,14 +0,0 @@
1
- <p style="color: green"><%= notice %></p>
2
-
3
- <h1>Catalog workspaces</h1>
4
-
5
- <div id="catalog_workspaces">
6
- <% @catalog_workspaces.each do |catalog_workspace| %>
7
- <%= render catalog_workspace %>
8
- <p>
9
- <%= link_to "Show this catalog workspace", catalog_workspace %>
10
- </p>
11
- <% end %>
12
- </div>
13
-
14
- <%= link_to "New catalog workspace", new_catalog_workspace_path %>
@@ -1,9 +0,0 @@
1
- <h1>New catalog workspace</h1>
2
-
3
- <%= render "form", catalog_workspace: @catalog_workspace %>
4
-
5
- <br>
6
-
7
- <div>
8
- <%= link_to "Back to catalog workspaces", catalog_workspaces_path %>
9
- </div>
@@ -1,10 +0,0 @@
1
- <p style="color: green"><%= notice %></p>
2
-
3
- <%= render @catalog_workspace %>
4
-
5
- <div>
6
- <%= link_to "Edit this catalog workspace", edit_catalog_workspace_path(@catalog_workspace) %> |
7
- <%= link_to "Back to catalog workspaces", catalog_workspaces_path %>
8
-
9
- <%= button_to "Destroy this catalog workspace", @catalog_workspace, method: :delete %>
10
- </div>
@@ -1 +0,0 @@
1
- <router-view></router-view>
@@ -1 +0,0 @@
1
- <router-view></router-view>
@@ -1 +0,0 @@
1
- <router-view></router-view>
@@ -1 +0,0 @@
1
- <router-view></router-view>
@@ -1,17 +0,0 @@
1
- <%= form_with(model: option) do |form| %>
2
- <% if option.errors.any? %>
3
- <div style="color: red">
4
- <h2><%= pluralize(option.errors.count, "error") %> prohibited this option from being saved:</h2>
5
-
6
- <ul>
7
- <% option.errors.each do |error| %>
8
- <li><%= error.full_message %></li>
9
- <% end %>
10
- </ul>
11
- </div>
12
- <% end %>
13
-
14
- <div>
15
- <%= form.submit %>
16
- </div>
17
- <% end %>
@@ -1,2 +0,0 @@
1
- <div id="<%= dom_id option %>">
2
- </div>
@@ -1,10 +0,0 @@
1
- <h1>Editing option</h1>
2
-
3
- <%= render "form", option: @option %>
4
-
5
- <br>
6
-
7
- <div>
8
- <%= link_to "Show this option", @option %> |
9
- <%= link_to "Back to options", options_path %>
10
- </div>
@@ -1,14 +0,0 @@
1
- <p style="color: green"><%= notice %></p>
2
-
3
- <h1>Options</h1>
4
-
5
- <div id="options">
6
- <% @options.each do |option| %>
7
- <%= render option %>
8
- <p>
9
- <%= link_to "Show this option", option %>
10
- </p>
11
- <% end %>
12
- </div>
13
-
14
- <%= link_to "New option", new_option_path %>
@@ -1,9 +0,0 @@
1
- <h1>New option</h1>
2
-
3
- <%= render "form", option: @option %>
4
-
5
- <br>
6
-
7
- <div>
8
- <%= link_to "Back to options", options_path %>
9
- </div>
@@ -1,10 +0,0 @@
1
- <p style="color: green"><%= notice %></p>
2
-
3
- <%= render @option %>
4
-
5
- <div>
6
- <%= link_to "Edit this option", edit_option_path(@option) %> |
7
- <%= link_to "Back to options", options_path %>
8
-
9
- <%= button_to "Destroy this option", @option, method: :delete %>
10
- </div>
@@ -1,2 +0,0 @@
1
- <div id="<%= dom_id discussion %>">
2
- </div>
@@ -1,17 +0,0 @@
1
- <%= form_with(model: ticket_discussion) do |form| %>
2
- <% if ticket_discussion.errors.any? %>
3
- <div style="color: red">
4
- <h2><%= pluralize(ticket_discussion.errors.count, "error") %> prohibited this ticket_discussion from being saved:</h2>
5
-
6
- <ul>
7
- <% ticket_discussion.errors.each do |error| %>
8
- <li><%= error.full_message %></li>
9
- <% end %>
10
- </ul>
11
- </div>
12
- <% end %>
13
-
14
- <div>
15
- <%= form.submit %>
16
- </div>
17
- <% end %>
@@ -1,10 +0,0 @@
1
- <h1>Editing discussion</h1>
2
-
3
- <%= render "form", ticket_discussion: @ticket_discussion %>
4
-
5
- <br>
6
-
7
- <div>
8
- <%= link_to "Show this discussion", @ticket_discussion %> |
9
- <%= link_to "Back to discussions", ticket_discussions_path %>
10
- </div>
@@ -1,14 +0,0 @@
1
- <p style="color: green"><%= notice %></p>
2
-
3
- <h1>Discussions</h1>
4
-
5
- <div id="ticket_discussions">
6
- <% @ticket_discussions.each do |ticket_discussion| %>
7
- <%= render ticket_discussion %>
8
- <p>
9
- <%= link_to "Show this discussion", ticket_discussion %>
10
- </p>
11
- <% end %>
12
- </div>
13
-
14
- <%= link_to "New discussion", new_ticket_discussion_path %>
@@ -1,9 +0,0 @@
1
- <h1>New discussion</h1>
2
-
3
- <%= render "form", ticket_discussion: @ticket_discussion %>
4
-
5
- <br>
6
-
7
- <div>
8
- <%= link_to "Back to discussions", ticket_discussions_path %>
9
- </div>