<% content_for :javascripts do %>
  <%= javascript_include_tag "initialize_datetimepickers" %>
  <%= javascript_include_tag "confirm_discard_changes" %>
<% end %>

<%= f.text_field :title,
  help_text: "The best titles are short and sweet." %>

<%= f.text_area :description,
  help_text: "There'll also be limited space for the description text. If you need something long-form, perhaps link to a longer announcement posted on external media." %>

<%= f.datetime_select :start_date,
  help_text: "When should the announcement appear?",
  less_than: "announcement_end_date" %>

<%= f.datetime_select :end_date,
  help_text: "When should the announcement come down?",
  greater_than: "announcement_start_date" %>

<!-- TODO: custom title 'Persistent Announcement?' -->
<%= f.check_box :persistent,
  help_text: "A persistent announcement ignores the 'end date' field above." %>

<% if @cud.administrator? then %>
  <%= f.check_box :system,
    help_text: "Check this to make a system-wide announcement." %>
<% end %>

<%= f.submit 'Submit' %>

<% content_for :javascripts do %>
  <%= javascript_include_tag "initialize_datetimepickers" %>
  <%= javascript_include_tag "confirm_discard_changes" %>
<% end %>

<%= f.text_field :title,
  help_text: "The best titles are short and sweet." %>

<%= f.text_area :description,
  help_text: "There'll also be limited space for the description text. If you need something long-form, perhaps link to a longer announcement posted on external media." %>

<%= f.datetime_select :start_date,
  help_text: "When should the announcement appear?",
  less_than: "announcement_end_date" %>

<%= f.datetime_select :end_date,
  help_text: "When should the announcement come down?",
  greater_than: "announcement_start_date" %>

<!-- TODO: custom title 'Persistent Announcement?' -->
<%= f.check_box :persistent,
  help_text: "A persistent announcement is shown on every page in the course." %>

<% if @cud.administrator? then %>
  <%= f.check_box :system,
    help_text: "Check this to make a system-wide announcement." %>
<% end %>

<%= f.submit 'Submit' %>

Fix description of persistent announcement
Fix description of persistent announcement
