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
|
- breadcrumb :compliance_control_sets
.page_content
.container-fluid
.row
.col-lg-12
= render 'filters'
.row
.col-lg-12
.select_table
= table_builder_2 @compliance_control_sets,
[ \
TableBuilderHelper::Column.new( \
key: :name, \
attribute: 'name', \
link_to: lambda do |compliance_control_set| \
compliance_control_set_path(compliance_control_set) \
end \
), \
TableBuilderHelper::Column.new( \
key: :assigned_to, \
attribute: 'assignment' \
), \
TableBuilderHelper::Column.new( \
key: :owner_jdc, \
attribute: Proc.new {|n| n.organisation.name } \
), \
TableBuilderHelper::Column.new( \
key: :control_numbers, \
attribute: Proc.new {|n| n.compliance_controls.count }\
), \
TableBuilderHelper::Column.new( \
key: :updated_at, \
attribute: Proc.new { |n| l(n.updated_at, format: :long) if n.updated_at }, \
) \
],
sortable: true,
cls: 'table has-filter has-search'
= new_pagination @compliance_control_sets, 'pull-right'
- unless @compliance_control_sets.any?
.row.mt-xs
.col-lg-12
= replacement_msg t('compliance_control_sets.search_no_results')
= javascript_pack_tag 'date_filters'
|