diff options
Diffstat (limited to 'app/views')
| -rw-r--r-- | app/views/imports/index.html.slim | 61 |
1 files changed, 49 insertions, 12 deletions
diff --git a/app/views/imports/index.html.slim b/app/views/imports/index.html.slim index 6e2d49f73..a3e06840f 100644 --- a/app/views/imports/index.html.slim +++ b/app/views/imports/index.html.slim @@ -1,12 +1,49 @@ -= title_tag t('.title') -- @imports.each do |import| - .import - li = link_to import.name, workbench_import_path(@workbench, import) - li = import.referential.name if import.referential - li = link_to import.file.file.filename, import.file.url, target: :_blank - hr - -.warning = t('.warning') -- content_for :sidebar do - ul.actions - li = link_to t('imports.actions.new'), new_workbench_import_path(workbench_id: @workbench), class: 'add' +/ PageHeader += pageheader 'map-marker', + t('.title'), + '', + '', + link_to(t('imports.actions.new'), new_workbench_import_path(workbench_id: @workbench), class: 'btn btn-primary') + +/ PageContent +.page_content + .container-fluid + - if @imports.any? + .row + .col-lg-12 + = table_builder_2 @imports, + [ \ + TableBuilderHelper::Column.new( \ + key: :status, \ + attribute: 'status' \ + ), \ + TableBuilderHelper::Column.new( \ + key: :started_at, \ + attribute: 'started_at' \ + ), \ + TableBuilderHelper::Column.new( \ + key: :name, \ + attribute: 'name' \ + ), \ + # TableBuilderHelper::Column.new( \ + # name: 'Opérateur', \ + # attribute: '' \ + # ) \ + ], + links: [], + cls: 'table has-search' + + / = new_pagination @imports, 'pull-right' + + - unless @imports.any? + .row + .col-lg-12 + = replacement_msg t('imports.search_no_results') + + .separator + + .alert.alert-info + - @imports.each do |import| + .import + li = link_to import.file.file.filename, import.file.url, target: '_blank' + hr |
