diff options
| author | jpl | 2017-02-14 15:13:35 +0100 | 
|---|---|---|
| committer | jpl | 2017-02-14 15:22:39 +0100 | 
| commit | 95c84e2bbd743e7b2799550ef41a6dde91889aaa (patch) | |
| tree | ba9edad0b357296fd878ac005f27ee79c2e01484 /app/views/referential_lines | |
| parent | d72d3a20e2faa2345d462ae64627b4cf46b6bb7b (diff) | |
| download | chouette-core-95c84e2bbd743e7b2799550ef41a6dde91889aaa.tar.bz2 | |
Refs #2600: adding definition list component
Diffstat (limited to 'app/views/referential_lines')
| -rw-r--r-- | app/views/referential_lines/show.html.slim | 75 | 
1 files changed, 38 insertions, 37 deletions
diff --git a/app/views/referential_lines/show.html.slim b/app/views/referential_lines/show.html.slim index 9eed5345e..24f52b8ce 100644 --- a/app/views/referential_lines/show.html.slim +++ b/app/views/referential_lines/show.html.slim @@ -6,43 +6,6 @@    / t('last_update', time: l(@line.updated_at, format: :short)),    / Below is secundary actions & optional contents (filters, ...)    .row -    .col-lg-12 -      .page_metalist -        .pm-col -          .pm-item -            span.label.label-default -              = @line.deactivated? ? 'Désactivée' : 'Activée' - -          .pm-item -            strong = "#{@line.human_attribute_name(:network)} : " -            = @line.network.nil? ? t('lines.index.unset') : @line.network.name - -          .pm-item -            strong = "#{@line.human_attribute_name(:company)} : " -            = @line.company.nil? ? t('lines.index.unset') : @line.company.name -         -        .pm-col -          .pm-item -            strong = "#{@line.human_attribute_name(:number)} : " -            = @line.number -          .pm-item -            strong = "#{@line.human_attribute_name(:published_name)} : " -            = @line.published_name -          .pm-item -            strong = "#{@line.human_attribute_name(:registration_number)} : " -            = @line.registration_number -        .pm-col -          .pm-item -            strong = "#{@line.human_attribute_name(:transport_mode)} : " -            = t("enumerize.line.transport_mode.#{@line.transport_mode}") if @line.transport_mode -          .pm-item -            strong = "#{@line.human_attribute_name(:transport_submode)} : " -            = t("enumerize.line.transport_submode.#{@line.transport_submode}") if @line.transport_submode -          .pm-item -            strong = "#{@line.human_attribute_name(:url)} : " -            = @line.try(:url) - -  .row      .col-lg-12.text-right.mb-sm        = link_to t('lines.actions.show_network'), [@referential, @line.network], class: 'btn btn-primary'        = link_to t('lines.actions.show_company'), [@referential, @line.company], class: 'btn btn-primary' @@ -65,6 +28,44 @@    .container-fluid      .row        .col-lg-12 +        / = definition_list t('metadatas'), +        /   {  } +        .page_metalist +          .pm-col +            .pm-item +              span.label.label-default +                = @line.deactivated? ? 'Désactivée' : 'Activée' + +            .pm-item +              strong = "#{@line.human_attribute_name(:network)} : " +              = @line.network.nil? ? t('lines.index.unset') : @line.network.name + +            .pm-item +              strong = "#{@line.human_attribute_name(:company)} : " +              = @line.company.nil? ? t('lines.index.unset') : @line.company.name +           +          .pm-col +            .pm-item +              strong = "#{@line.human_attribute_name(:number)} : " +              = @line.number +            .pm-item +              strong = "#{@line.human_attribute_name(:published_name)} : " +              = @line.published_name +            .pm-item +              strong = "#{@line.human_attribute_name(:registration_number)} : " +              = @line.registration_number +          .pm-col +            .pm-item +              strong = "#{@line.human_attribute_name(:transport_mode)} : " +              = t("enumerize.line.transport_mode.#{@line.transport_mode}") if @line.transport_mode +            .pm-item +              strong = "#{@line.human_attribute_name(:transport_submode)} : " +              = t("enumerize.line.transport_submode.#{@line.transport_submode}") if @line.transport_submode +            .pm-item +              strong = "#{@line.human_attribute_name(:url)} : " +              = @line.try(:url) +    .row +      .col-lg-12          - if @routes.any?            = new_pagination @routes, 'pull-right'  | 
