af83/chouette-core

View on GitHub
app/views/entrances/show.html.slim

Summary

Maintainability
Test Coverage
- breadcrumb :entrance, @workbench, @entrance
- page_header_content_for @entrance
- javascript_additional_packs 'entrances/show'

/ PageContent
.page_content
  .container-fluid
    .row
      .col-lg-6.col-md-6.col-sm-12.col-xs-12
        = simple_block_for @entrance, title: t('entrances.form.sections.identification') do |d|
          = d.attribute :objectid, as: :objectid
          = d.attribute :name
          = d.attribute :short_name
          = d.attribute :stop_area, as: :association, link: workbench_stop_area_referential_stop_area_path(@workbench, @entrance.stop_area)
          = d.attribute :entry_flag, as: :boolean
          = d.attribute :exit_flag, as: :boolean
          = d.attribute :entrance_type, as: :enumerize
          = d.attribute :description

      .col-lg-6.col-md-6.col-sm-12.col-xs-12
        = simple_block_for @entrance, title: t('entrances.form.sections.localization') do |d|
          = d.attribute :position_input
          = d.attribute :address_line_1
          = d.attribute :zip_code
          = d.attribute :city_name
          = d.attribute :postal_region
          = d.attribute :country
          = d.attribute :stop_area_provider, as: :association, link: workbench_stop_area_referential_stop_area_provider_path(@workbench, @entrance.stop_area_provider), label: StopAreaProvider.model_name.human

    .row
      .col-lg-6.col-md-6.col-sm-12.col-xs-12
        = render 'codes/block', model: @entrance

      .col-lg-6.col-md-6.col-sm-12.col-xs-12
        h4.underline= t('entrances.show.map')
        #entrance_map.map