diff options
| author | cedricnjanga | 2017-12-29 11:09:36 +0100 | 
|---|---|---|
| committer | cedricnjanga | 2017-12-29 11:10:00 +0100 | 
| commit | 84874b0c001239211e18ff7eef2aff7e54721a0d (patch) | |
| tree | e2aea6f349e7f6c0d559c7c71f50c5ae27f58b8a | |
| parent | 89716d911267da006ad4662be210fa50f9d65373 (diff) | |
| download | chouette-core-84874b0c001239211e18ff7eef2aff7e54721a0d.tar.bz2 | |
Refs #5414 Small UI change for import file structure error
| -rw-r--r-- | app/views/imports/show.html.slim | 99 | 
1 files changed, 50 insertions, 49 deletions
| diff --git a/app/views/imports/show.html.slim b/app/views/imports/show.html.slim index 90c638d78..b23c4fdbb 100644 --- a/app/views/imports/show.html.slim +++ b/app/views/imports/show.html.slim @@ -11,57 +11,58 @@  - page_header_content_for @import -.error_messages -  = render 'import_messages', import_messages: @import.messages -  .page_content    .container-fluid      .row +      .col-lg-12 +        .error_messages +          = render 'import_messages', import_messages: @import.messages +    .row        .col-lg-6.col-md-6.col-sm-12.col-xs-12          = definition_list t('metadatas'), { 'Récupération des données' => '-', "Nom de l'archive" => @import.try(:file_identifier)} - -    .row -      .col-lg-12 -        = table_builder_2 @import.children, -          [ \ -            TableBuilderHelper::Column.new( \ -              name: 'Nom du jeu de données', \ -              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: 'Contrôle STIF', \ -              attribute: '', \ -              sortable: false, \ -            ), \ -            TableBuilderHelper::Column.new( \ -              name: 'Contrôle organisation', \ -              attribute: '', \ -              sortable: false, \ -            ) \ -          ], -          links: [], -          cls: 'table', -          overhead: [ \ -            {}, \ -            { \ -              title: "#{@import.children_succeedeed} jeu de données validé sur #{@import.children.count} présent(s) dans l'archive", \ -              width: 1, \ -              cls: "#{@import.import_status_css_class} full-border" \ -            }, { \ -              title: 'Bilan des jeux de contrôles d\'import <span title="Lorem ipsum..." class="fa fa-lg fa-info-circle text-info"></span>', \ -              width: 2, \ -              cls: 'overheaded-default colspan="2"' \ -            } \ -           ] +    - if @import.children.any? +      .row +        .col-lg-12 +          = table_builder_2 @import.children, +            [ \ +              TableBuilderHelper::Column.new( \ +                name: 'Nom du jeu de données', \ +                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: 'Contrôle STIF', \ +                attribute: '', \ +                sortable: false, \ +              ), \ +              TableBuilderHelper::Column.new( \ +                name: 'Contrôle organisation', \ +                attribute: '', \ +                sortable: false, \ +              ) \ +            ], +            links: [], +            cls: 'table', +            overhead: [ \ +              {}, \ +              { \ +                title: "#{@import.children_succeedeed} jeu de données validé sur #{@import.children.count} présent(s) dans l'archive", \ +                width: 1, \ +                cls: "#{@import.import_status_css_class} full-border" \ +              }, { \ +                title: 'Bilan des jeux de contrôles d\'import <span title="Lorem ipsum..." class="fa fa-lg fa-info-circle text-info"></span>', \ +                width: 2, \ +                cls: 'overheaded-default colspan="2"' \ +              } \ +            ] | 
