aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuc Donnet2018-05-22 09:15:36 +0200
committerGitHub2018-05-22 09:15:36 +0200
commitdd33794e295d5978abb7ccbbf5ded6a40ab42a2f (patch)
tree14f6ed107de13d3b381f3bd275c48b06485087ec
parente9445068154d740fd6ec9f0308ec89dc5a4d2ccf (diff)
parent098c8e0004136ca085fe119bba32e2b09898faa8 (diff)
downloadchouette-core-dd33794e295d5978abb7ccbbf5ded6a40ab42a2f.tar.bz2
Merge pull request #583 from af83/7088-workbench-workgroup-configure
Refs #7088 Workgroup#edit & workbench#edit
-rw-r--r--app/views/workbenches/_form.html.slim4
-rw-r--r--app/views/workbenches/edit.html.slim2
-rw-r--r--app/views/workgroups/_form.html.slim2
-rw-r--r--config/breadcrumbs.rb5
4 files changed, 11 insertions, 2 deletions
diff --git a/app/views/workbenches/_form.html.slim b/app/views/workbenches/_form.html.slim
index 819346c35..c7b6fd4f3 100644
--- a/app/views/workbenches/_form.html.slim
+++ b/app/views/workbenches/_form.html.slim
@@ -1,4 +1,6 @@
-= simple_form_for @workbench, html: { class: 'form-horizontal', id: 'workbench_form' }, wrapper: :horizontal_form do |f|
+= title_tag t('activerecord.models.compliance_control_set.other')
+
+= simple_form_for @workbench, html: { class: 'form-horizontal', id: 'workbench_form' }, wrapper: :horizontal_form, title: "prout" do |f|
.row
.col-lg-12
= f.fields_for :compliance_control_set_ids do |ff|
diff --git a/app/views/workbenches/edit.html.slim b/app/views/workbenches/edit.html.slim
index 893024490..0774610e1 100644
--- a/app/views/workbenches/edit.html.slim
+++ b/app/views/workbenches/edit.html.slim
@@ -1,4 +1,4 @@
-- breadcrumb @workbench
+- breadcrumb :workbench_configure, @workbench
- page_header_content_for @workbench
.page_content
diff --git a/app/views/workgroups/_form.html.slim b/app/views/workgroups/_form.html.slim
index 7245cfc40..52d1faca8 100644
--- a/app/views/workgroups/_form.html.slim
+++ b/app/views/workgroups/_form.html.slim
@@ -1,3 +1,5 @@
+= title_tag t('activerecord.models.compliance_control_set.other')
+
= simple_form_for @workgroup, html: { class: 'form-horizontal', id: 'workgroup_form' }, wrapper: :horizontal_form do |f|
table.table
thead
diff --git a/config/breadcrumbs.rb b/config/breadcrumbs.rb
index cfe9b7543..af1dec3ae 100644
--- a/config/breadcrumbs.rb
+++ b/config/breadcrumbs.rb
@@ -6,6 +6,11 @@ crumb :workbench do |workbench|
link workbench.name, workbench_path(workbench)
end
+crumb :workbench_configure do |workbench|
+ link I18n.t('workbenches.edit.title'), edit_workbench_path(workbench)
+ parent :workbench, workbench
+end
+
crumb :workbench_output do |workbench|
link I18n.t('workbench_outputs.show.title'), workbench_output_path(workbench)
parent :workbench, mutual_workbench(workbench)