_form.html.haml 936 B

12345678910111213141516171819202122232425262728
  1. .fields-group
  2. = form.input :starts_at,
  3. html5: true,
  4. include_blank: true,
  5. input_html: { pattern: datetime_pattern, placeholder: datetime_placeholder },
  6. wrapper: :with_block_label
  7. = form.input :ends_at,
  8. html5: true,
  9. include_blank: true,
  10. input_html: { pattern: datetime_pattern, placeholder: datetime_placeholder },
  11. wrapper: :with_block_label
  12. .fields-group
  13. = form.input :all_day,
  14. as: :boolean,
  15. wrapper: :with_label
  16. .fields-group
  17. = form.input :text,
  18. wrapper: :with_block_label
  19. - unless form.object.published?
  20. .fields-group
  21. = form.input :scheduled_at,
  22. html5: true,
  23. include_blank: true,
  24. input_html: { pattern: datetime_pattern, placeholder: datetime_placeholder },
  25. wrapper: :with_block_label