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
|
- breadcrumb :import, @workbench, @import
- page_header_content_for @import
.page_content
.container-fluid
.row
.col-lg-6.col-md-6.col-sm-12.col-xs-12
= definition_list t('metadatas'), { t('.data_recovery') => '-', t('.filename') => @import.try(:file_identifier)}
.row
.col-lg-12
.error_messages
= render 'shared/iev_interfaces/messages', messages: @import.messages
- if @import.children.any?
.row
.col-lg-12
= table_builder_2 @import.children,
[ \
TableBuilderHelper::Column.new( \
name: t('.referential_name'), \
attribute: 'name', \
sortable: false, \
link_to: lambda do |import| \
referential_path(import.referential) if import.referential.present? \
end \
), \
TableBuilderHelper::Column.new( \
key: :status, \
attribute: Proc.new { |n| import_status(n.status) }, \
sortable: false, \
link_to: lambda do |import| \
workbench_import_import_resources_path(import.workbench_id, import) \
end \
), \
TableBuilderHelper::Column.new( \
name: t('.stif_control'), \
attribute: '', \
sortable: false, \
), \
TableBuilderHelper::Column.new( \
name: t('.organisation_control'), \
attribute: '', \
sortable: false, \
) \
],
cls: 'table',
overhead: [ \
{}, \
{ \
title: I18n.t('imports.show.results', count: @import.children_succeedeed, total: @import.children.count), \
width: 1, \
cls: "#{@import.import_status_css_class} full-border" \
}, { \
title: I18n.t('imports.show.summary').html_safe, \
width: 2, \
cls: 'overheaded-default colspan="2"' \
} \
]
|