| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
 | - breadcrumb :routing_constraint_zones, @referential, @line
.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 [@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.input :route_id, collection: @line.routes, include_blank: false, input_html: { class: 'new_routing_constraint_zone_route', data: {url: new_referential_line_routing_constraint_zone_path(@referential, @line), object: @routing_constraint_zone.to_json }}
              .separator
              - @routing_constraint_zone.errors[:stop_point_ids].each do |error_message|
                .alert.alert-danger = error_message
              #ITL_stoppoints
                .subform
                  .nested-head
                    .wrapper
                      div
                        .form-group
                          label.control-label Arrêt
                      div
                        .form-group
                          label.control-label Commune
                      div
                  .nested-fields#stop_points
              = form.button :submit, t('actions.submit'), class: 'btn btn-default formSubmitr', form: 'itl_form'
 |