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.
- checksums.yaml +4 -4
- data/app/assets/images/lesli_support/support-logo.svg +1 -9
- data/app/assets/javascripts/lesli_support/application.js +1 -4998
- data/app/assets/stylesheets/lesli_support/application.css +3 -3
- data/app/controllers/lesli_support/catalog/items_controller.rb +60 -0
- data/app/controllers/lesli_support/item/discussions_controller.rb +6 -0
- data/app/controllers/lesli_support/item/tasks_controller.rb +6 -0
- data/app/controllers/lesli_support/ticket/activities_controller.rb +60 -0
- data/app/controllers/lesli_support/ticket/discussions_controller.rb +1 -2
- data/app/controllers/lesli_support/tickets_controller.rb +37 -56
- data/app/helpers/lesli_support/{options_helper.rb → catalog/items_helper.rb} +1 -1
- data/app/helpers/lesli_support/ticket/activities_helper.rb +4 -0
- data/app/models/lesli_support/account.rb +5 -8
- data/app/models/lesli_support/catalog/item.rb +4 -0
- data/app/models/lesli_support/catalog.rb +3 -12
- data/app/models/lesli_support/dashboard.rb +6 -10
- data/app/models/lesli_support/item/activity.rb +4 -0
- data/app/models/lesli_support/item/discussion.rb +6 -0
- data/app/models/lesli_support/item/task.rb +6 -0
- data/app/models/lesli_support/ticket/activity.rb +4 -0
- data/app/models/lesli_support/ticket/discussion.rb +3 -4
- data/app/models/lesli_support/ticket.rb +66 -7
- data/app/services/lesli_support/ticket_service.rb +37 -55
- data/app/views/lesli_support/catalog/items/_form.html.erb +17 -0
- data/app/views/lesli_support/catalog/items/_item.html.erb +2 -0
- data/app/views/lesli_support/catalog/items/edit.html.erb +12 -0
- data/app/views/lesli_support/catalog/items/index.html.erb +16 -0
- data/app/views/lesli_support/catalog/items/new.html.erb +11 -0
- data/app/views/lesli_support/catalog/items/show.html.erb +10 -0
- data/app/views/lesli_support/dashboards/_component-latest-tickets.html.erb +34 -0
- data/app/views/lesli_support/dashboards/_component-tickets-by-category.html.erb +17 -0
- data/app/views/lesli_support/dashboards/_component-tickets-created.html.erb +10 -0
- data/app/views/lesli_support/dashboards/_component-tickets-open.html.erb +5 -0
- data/app/views/lesli_support/tickets/_form.html.erb +27 -0
- data/app/views/lesli_support/tickets/index.html.erb +35 -4
- data/app/views/lesli_support/tickets/new.html.erb +31 -14
- data/app/views/lesli_support/tickets/show.html.erb +30 -15
- data/config/locales/translations.en.yml +1 -42
- data/config/locales/translations.es.yml +1 -42
- data/config/locales/translations.fr.yml +1 -42
- data/config/locales/translations.it.yml +1 -42
- data/config/locales/translations.pt.yml +1 -42
- data/config/routes.rb +5 -25
- data/db/migrate/v1/0702000110_create_lesli_support_accounts.rb +10 -8
- data/db/migrate/v1/0702002010_create_lesli_support_catalogs.rb +37 -0
- data/db/migrate/v1/0702100110_create_lesli_support_slas.rb +2 -6
- data/db/migrate/v1/0702110110_create_lesli_support_tickets.rb +18 -49
- data/db/seed/development.rb +43 -22
- data/db/seed/production.rb +7 -2
- data/db/seed/seeds.json +64 -0
- data/db/seed/test.rb +2 -2
- data/db/seeds.rb +6 -13
- data/db/{migrate/v1/0702000210_create_lesli_support_account_settings.rb → tables/0010009010_create_feedbacks.rb} +21 -11
- data/db/{migrate/v1 → tables}/0702010110_create_lesli_support_catalog_workspaces.rb +7 -7
- data/db/{migrate/v1 → tables}/0702010210_create_lesli_support_catalog_types.rb +6 -6
- data/db/{migrate/v1 → tables}/0702010310_create_lesli_support_catalog_categories.rb +7 -7
- data/db/{migrate/v1 → tables}/0702010410_create_lesli_support_catalog_priorities.rb +7 -7
- data/lib/lesli_support/version.rb +2 -2
- data/readme.md +77 -25
- metadata +37 -91
- data/app/controllers/lesli_support/catalog_categories_controller.rb +0 -60
- data/app/controllers/lesli_support/catalog_priorities_controller.rb +0 -60
- data/app/controllers/lesli_support/catalog_types_controller.rb +0 -60
- data/app/controllers/lesli_support/catalog_workspaces_controller.rb +0 -60
- data/app/controllers/lesli_support/dashboard/components_controller.rb +0 -92
- data/app/controllers/lesli_support/options_controller.rb +0 -23
- data/app/helpers/lesli_support/catalog_categories_helper.rb +0 -4
- data/app/helpers/lesli_support/catalog_priorities_helper.rb +0 -4
- data/app/helpers/lesli_support/catalog_types_helper.rb +0 -4
- data/app/helpers/lesli_support/catalog_workspaces_helper.rb +0 -4
- data/app/models/lesli_support/catalog_category.rb +0 -5
- data/app/models/lesli_support/catalog_priority.rb +0 -5
- data/app/models/lesli_support/catalog_type.rb +0 -5
- data/app/models/lesli_support/catalog_workspace.rb +0 -5
- data/app/models/lesli_support/dashboard/component.rb +0 -18
- data/app/models/lesli_support/option.rb +0 -4
- data/app/views/layouts/lesli_support/application.html.erb +0 -15
- data/app/views/lesli_support/catalog_categories/_catalog_category.html.erb +0 -2
- data/app/views/lesli_support/catalog_categories/_form.html.erb +0 -17
- data/app/views/lesli_support/catalog_categories/edit.html.erb +0 -10
- data/app/views/lesli_support/catalog_categories/index.html.erb +0 -14
- data/app/views/lesli_support/catalog_categories/new.html.erb +0 -9
- data/app/views/lesli_support/catalog_categories/show.html.erb +0 -10
- data/app/views/lesli_support/catalog_priorities/_catalog_priority.html.erb +0 -2
- data/app/views/lesli_support/catalog_priorities/_form.html.erb +0 -17
- data/app/views/lesli_support/catalog_priorities/edit.html.erb +0 -10
- data/app/views/lesli_support/catalog_priorities/index.html.erb +0 -14
- data/app/views/lesli_support/catalog_priorities/new.html.erb +0 -9
- data/app/views/lesli_support/catalog_priorities/show.html.erb +0 -10
- data/app/views/lesli_support/catalog_types/_catalog_type.html.erb +0 -2
- data/app/views/lesli_support/catalog_types/_form.html.erb +0 -17
- data/app/views/lesli_support/catalog_types/edit.html.erb +0 -10
- data/app/views/lesli_support/catalog_types/index.html.erb +0 -14
- data/app/views/lesli_support/catalog_types/new.html.erb +0 -9
- data/app/views/lesli_support/catalog_types/show.html.erb +0 -10
- data/app/views/lesli_support/catalog_workspaces/_catalog_workspace.html.erb +0 -2
- data/app/views/lesli_support/catalog_workspaces/_form.html.erb +0 -17
- data/app/views/lesli_support/catalog_workspaces/edit.html.erb +0 -10
- data/app/views/lesli_support/catalog_workspaces/index.html.erb +0 -14
- data/app/views/lesli_support/catalog_workspaces/new.html.erb +0 -9
- data/app/views/lesli_support/catalog_workspaces/show.html.erb +0 -10
- data/app/views/lesli_support/dashboards/edit.html.erb +0 -1
- data/app/views/lesli_support/dashboards/index.html.erb +0 -1
- data/app/views/lesli_support/dashboards/new.html.erb +0 -1
- data/app/views/lesli_support/dashboards/show.html.erb +0 -1
- data/app/views/lesli_support/options/_form.html.erb +0 -17
- data/app/views/lesli_support/options/_option.html.erb +0 -2
- data/app/views/lesli_support/options/edit.html.erb +0 -10
- data/app/views/lesli_support/options/index.html.erb +0 -14
- data/app/views/lesli_support/options/new.html.erb +0 -9
- data/app/views/lesli_support/options/show.html.erb +0 -10
- data/app/views/lesli_support/ticket/discussions/_discussion.html.erb +0 -2
- data/app/views/lesli_support/ticket/discussions/_form.html.erb +0 -17
- data/app/views/lesli_support/ticket/discussions/edit.html.erb +0 -10
- data/app/views/lesli_support/ticket/discussions/index.html.erb +0 -14
- data/app/views/lesli_support/ticket/discussions/new.html.erb +0 -9
- data/app/views/lesli_support/ticket/discussions/show.html.erb +0 -10
- data/app/views/lesli_support/tickets/edit.html.erb +0 -20
- data/db/migrate/v1/0702050110_create_lesli_support_dashboards.rb +0 -50
- data/db/migrate/v1/0702050210_create_lesli_support_dashboard_components.rb +0 -50
- data/db/migrate/v1/0702110510_create_lesli_support_ticket_discussions.rb +0 -52
- data/lib/scss/application.scss +0 -11
- data/lib/vue/application.js +0 -93
- data/lib/vue/apps/dashboard/components/engine-version.vue +0 -71
- data/lib/vue/apps/dashboard/components/my-tasks.vue +0 -77
- data/lib/vue/apps/tickets/components/assignments.vue +0 -93
- data/lib/vue/apps/tickets/components/form.vue +0 -305
- data/lib/vue/apps/tickets/components/internal-comments.vue +0 -107
- data/lib/vue/apps/tickets/components/sla-info.vue +0 -115
- data/lib/vue/apps/tickets/index.vue +0 -145
- data/lib/vue/apps/tickets/new.vue +0 -78
- data/lib/vue/apps/tickets/show.vue +0 -183
- data/lib/vue/stores/tickets.js +0 -276
- data/lib/vue/stores/translations.json +0 -272
- /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,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,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,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,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,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,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,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,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,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,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,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,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,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,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 %>
|