app/views/routing_constraint_zones/edit.html.slim
- breadcrumb :routing_constraint_zone, @workbench, @referential, @line, @routing_constraint_zone
- page_header_content_for @routing_constraint_zone
.page_content
.container-fluid
.row
.col-lg-8.col-lg-offset-2.col-md-8.col-md-offset-2.col-sm-10.col-sm-offset-1
= simple_form_for [@workbench, @referential, @line, @routing_constraint_zone], html: {class: 'form-horizontal', id: 'itl_form'}, wrapper: :horizontal_form do |form|
.row
.col-lg-12
= form.input :name
= form.association :route, collection: @line.routes, disabled: true
.separator
#ITL_stoppoints
- @routing_constraint_zone.errors[:stop_point_ids].each do |error_message|
.alert.alert-danger.mb-md = error_message
.subform
.nested-head
.wrapper
div
.form-group
label.control-label= Chouette::StopArea.tmf(:name)
- referential.stop_area_referential.enabled_stops_selection_displayed_fields.each do |f|
div
.form-group
label.control-label= StopAreaReferential.tmf(f)
div
.nested-fields
= render( partial: 'routing_constraint_zones/stop_points', locals: { routing_constraint_zone: @routing_constraint_zone, stop_points: @routing_constraint_zone.route.stop_points } )
= cancel_button
= form.button :submit, t('actions.submit'), class: 'btn btn-default formSubmitr', form: 'itl_form'