af83/chouette-core

View on GitHub
app/views/fare_zones/_form.html.slim

Summary

Maintainability
Test Coverage
= simple_form_for([@workbench, @fare_zone],
    html: { \
      multipart: true, \
      class: 'tailwind-form', \
      id: 'fare_zone_form'\
    }, \
    wrapper: :horizontal_form_tailwind \
  ) do |f|
  .row
    .col-lg-12
      h2.my-16
        = t("fare_zones.form.sections.identification")
      = f.input :name
  .separator.section_separator
  .row
    .col-lg-12
      h2.my-16
        = t('fare_zones.form.sections.internal')
      = f.association :fare_provider, as: :select, collection: candidate_fare_providers, include_blank: false

  .separator.section_separator

  = render 'codes/form', form: f

  = cancel_button
  = f.button :submit, t('actions.submit'), class: 'btn btn-default formSubmitr', form: 'fare_zone_form'