diff options
| author | Robert | 2017-11-06 19:06:57 +0100 |
|---|---|---|
| committer | Robert | 2017-11-17 14:56:29 +0100 |
| commit | 76d11c7f973867e305d6841f69c62c5fd37d65a7 (patch) | |
| tree | 782bf6b84fae75a0645e2de341d1c6469d0b9f23 /app/views/compliance_check_sets | |
| parent | 36fec435004e595e2adbac72c8f634891a531b01 (diff) | |
| download | chouette-core-76d11c7f973867e305d6841f69c62c5fd37d65a7.tar.bz2 | |
Refs: #4283@16h;
- Implements the view
Missing:
- Spex failing (xpath navigation inside the display blocks is still faulty)
- Links to compliance_checks#show do not work (actually not this page's problem)
Diffstat (limited to 'app/views/compliance_check_sets')
| -rw-r--r-- | app/views/compliance_check_sets/show.html.slim | 54 |
1 files changed, 51 insertions, 3 deletions
diff --git a/app/views/compliance_check_sets/show.html.slim b/app/views/compliance_check_sets/show.html.slim index eefa5363f..4052707da 100644 --- a/app/views/compliance_check_sets/show.html.slim +++ b/app/views/compliance_check_sets/show.html.slim @@ -1,12 +1,60 @@ - breadcrumb :compliance_check_set, @workbench, @compliance_check_set / PageHeader = pageheader 'jeux-de-donnees', - @compliance_check_set.referential.name + t('compliance_check_sets.show.title', name: @compliance_check_set.name), + 'Lorem ipsum dolor sit amet' / PageContent .page_content .container-fluid .row .col-lg-6.col-md-6.col-sm-12.col-xs-12 = definition_list t('metadatas'), - ComplianceCheckSet.human_attribute_name(:id) => @compliance_check_set.referential.id, - ComplianceCheckSet.human_attribute_name(:name) => @compliance_check_set.referential.name + ComplianceCheckSet.human_attribute_name(:name) => @compliance_check_set.name + + - if params[:q].present? || @compliance_checks.any? || @direct_compliance_checks + .row + .col-lg-12 + h2 + = render '/compliance_checks/filters' + + - if @direct_compliance_checks.try(:any?) + .row + .col-lg-12 + h2 + = transport_mode_text() + .row + .col-lg-12 + .select_table + = table_builder_2 @direct_compliance_checks, + [ \ + TableBuilderHelper::Column.new( \ + key: :code, \ + attribute: 'code' \ + ), \ + TableBuilderHelper::Column.new( \ + key: :name, \ + attribute: 'name', \ + link_to: lambda do |compliance_check| \ + compliance_check_path(compliance_check) \ + end \ + ), \ + TableBuilderHelper::Column.new( \ + key: :criticity, \ + attribute: 'criticity' \ + ), \ + TableBuilderHelper::Column.new( \ + key: :comment, \ + attribute: 'comment' \ + ), \ + ], + sortable: true, + cls: 'table has-filter has-search', + model: ComplianceCheck + + - @compliance_checks.each do |block, compliance_checks| + + - if compliance_checks.try(:any?) + .row + .col-lg-12 + h2 + = transport_mode_text(block) |
