diff options
| author | Xinhui | 2017-09-19 13:58:25 +0200 |
|---|---|---|
| committer | Xinhui | 2017-09-19 15:19:09 +0200 |
| commit | 14c4b49144f334e375b34c5b6a7b1d14c9617858 (patch) | |
| tree | 7878f3ab4e67ea97825bd1c0a094e2c8f4db6950 | |
| parent | 87134a30e859ab024c887c3ef60f79ba1c15c53e (diff) | |
| download | chouette-core-14c4b49144f334e375b34c5b6a7b1d14c9617858.tar.bz2 | |
Compliance Control index view
Refs #4543
| -rw-r--r-- | app/views/compliance_control_sets/index.html.slim | 1 | ||||
| -rw-r--r-- | app/views/compliance_controls/index.html.slim | 44 |
2 files changed, 44 insertions, 1 deletions
diff --git a/app/views/compliance_control_sets/index.html.slim b/app/views/compliance_control_sets/index.html.slim index 16879af5a..fa85c38f7 100644 --- a/app/views/compliance_control_sets/index.html.slim +++ b/app/views/compliance_control_sets/index.html.slim @@ -45,7 +45,6 @@ ) \ ], sortable: true, - links: [:show], cls: 'table has-filter has-search' diff --git a/app/views/compliance_controls/index.html.slim b/app/views/compliance_controls/index.html.slim index e69de29bb..fd1293837 100644 --- a/app/views/compliance_controls/index.html.slim +++ b/app/views/compliance_controls/index.html.slim @@ -0,0 +1,44 @@ +/ PageHeader +- header_params = ['jeux-de-donnees', + t('compliance_controls.index.title'), + ''] +- header_params << link_to(t('compliance_controls.actions.new'), new_compliance_control_set_compliance_control_path(@compliance_control_set), class: 'btn btn-default') if policy(ComplianceControl).create? += pageheader(*header_params) do + + .row.mb-sm + .col-lg-12.text-right + +.page_content + .container-fluid + .row + .col-lg-12 + /= render 'filters' + .row + .col-lg-12 + .select_table + = table_builder_2 @compliance_controls, + [ \ + TableBuilderHelper::Column.new( \ + key: :code, \ + attribute: 'code' \ + ), \ + TableBuilderHelper::Column.new( \ + key: :name, \ + attribute: 'name', \ + link_to: lambda do |compliance_control| \ + compliance_control_set_compliance_control_path(@compliance_control_set, compliance_control) \ + end \ + ), \ + TableBuilderHelper::Column.new( \ + key: :criticity, \ + attribute: 'criticity' \ + ), \ + TableBuilderHelper::Column.new( \ + key: :comment, \ + attribute: 'comment' \ + ), \ + ], + sortable: true, + cls: 'table has-filter has-search' + + |
