| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
 | - breadcrumb :compliance_check_set_executed, @workbench, @compliance_check_set
- page_header_content_for @compliance_check_set
.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(:name) => @compliance_check_set.name
  - if params[:q].present? || @blocks_to_compliance_checks_map.any? || @direct_compliance_checks
    .row
      .col-lg-12
        = render '/compliance_checks/filters'
        - if @direct_compliance_checks.try(:any?)
          .row
            .col-lg-12
              h2
                = transport_mode_text()
          .row
            .col-lg-12
              = 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
    - @blocks_to_compliance_checks_map.each do |block, compliance_checks|
      - if compliance_checks.try(:any?)
        .row
          .col-lg-12
            h2
              = transport_mode_text(block)
        .row
          .col-lg-12
            = table_builder_2 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
 |