aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/time_tables/_period_fields.html.slim
blob: 6b3fde3116213071fcdf55f4f6c21865d52f3d49 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
.nested-fields
  - if f.object.errors.has_key? :base
    .row
      .col-lg-12
        .alert.alert-danger
          - f.object.errors[:base].each do |message|
            p.small = message

  .wrapper
    div
      = f.input :period_start, as: :date, label: false, wrapper_html: { class: 'date smart_date' }
    div
      = f.input :period_end, as: :date, label: false, wrapper_html: { class: 'date smart_date' }
    div
      = link_to_remove_association '', f, class: 'fa fa-trash', data: { confirm: 'Etes-vous sûr(e) ?' }, title: t('actions.delete')