diff options
| author | cedricnjanga | 2018-05-20 22:00:40 -0700 | 
|---|---|---|
| committer | cedricnjanga | 2018-05-20 22:00:40 -0700 | 
| commit | 098c8e0004136ca085fe119bba32e2b09898faa8 (patch) | |
| tree | 14f6ed107de13d3b381f3bd275c48b06485087ec | |
| parent | e9445068154d740fd6ec9f0308ec89dc5a4d2ccf (diff) | |
| download | chouette-core-098c8e0004136ca085fe119bba32e2b09898faa8.tar.bz2 | |
Refs #7088 Workgroup#edit & workbench#edit7088-workbench-workgroup-configure
| -rw-r--r-- | app/views/workbenches/_form.html.slim | 4 | ||||
| -rw-r--r-- | app/views/workbenches/edit.html.slim | 2 | ||||
| -rw-r--r-- | app/views/workgroups/_form.html.slim | 2 | ||||
| -rw-r--r-- | config/breadcrumbs.rb | 5 | 
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) | 
