new.html.haml 938 B

123456789101112131415161718192021
  1. - content_for :page_title do
  2. = t('.title')
  3. = simple_form_for @announcement, url: admin_announcements_path, html: { novalidate: false } do |f|
  4. = render 'shared/error_messages', object: @announcement
  5. .fields-group
  6. = f.input :starts_at, include_blank: true, wrapper: :with_block_label, html5: true, input_html: { pattern: datetime_pattern, placeholder: datetime_placeholder }
  7. = f.input :ends_at, include_blank: true, wrapper: :with_block_label, html5: true, input_html: { pattern: datetime_pattern, placeholder: datetime_placeholder }
  8. .fields-group
  9. = f.input :all_day, as: :boolean, wrapper: :with_label
  10. .fields-group
  11. = f.input :text, wrapper: :with_block_label
  12. .fields-group
  13. = f.input :scheduled_at, include_blank: true, wrapper: :with_block_label, html5: true, input_html: { pattern: datetime_pattern, placeholder: datetime_placeholder }
  14. .actions
  15. = f.button :button, t('.create'), type: :submit