The code powering m.abunchtell.com https://m.abunchtell.com
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 

23 行
739 B

  1. - content_for :page_title do
  2. = t('.title')
  3. = simple_form_for @announcement, url: admin_announcement_path(@announcement) do |f|
  4. = render 'shared/error_messages', object: @announcement
  5. .fields-group
  6. = f.input :starts_at, include_blank: true, wrapper: :with_block_label
  7. = f.input :ends_at, include_blank: true, wrapper: :with_block_label
  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. - if @announcement.scheduled_at.present? && !@announcement.published?
  13. .fields-group
  14. = f.input :scheduled_at, include_blank: true, wrapper: :with_block_label
  15. .actions
  16. = f.button :button, t('generic.save_changes'), type: :submit