<%= simple_form_for @poll, :html => { :class => "form-horizontal"} do |f| %>

  <h3>Settings</h3>
  <%= f.input :title, :hint => "How we'll refer to the poll in text messages and reports" %>
  <%= f.simple_fields_for :questions do |question| %>
    <%= render 'question_fields', :f => question %>
  <% end %>
  <% unless Rails.env.development? %>
    <%= f.input :phone, :hint => "Automatically assigned", :disabled => true %>
  <% else %>
    <%= f.input :phone, :hint => "Enter test phone number" %>
  <% end %>
 
  <div class="field" style="display:none;">
    <%= f.label :start_date %>
    <%= f.datetime_select :start_date %>
  </div>
  <div class="field">
    <%= f.input :end_date, :as => :date %>
  </div>

  <hr>
  <h3>Script</h3>
  <div class="links">
    <%= link_to_add_association 'Add Question', f, :questions, :class => "btn" %>
  </div>

<div class="form-actions">
    <%= f.button :submit, :class => 'btn btn-large btn-primary' %>
    <%= link_to 'Cancel', @poll, :class => 'btn btn-large' %>
</div>
<% end %>

<%= simple_form_for @poll, :html => { :class => "form-horizontal"} do |f| %>

  <h3>Settings</h3>
  <%= f.input :title, :hint => "How we'll refer to the poll in text messages and reports" %>
  <%= f.simple_fields_for :questions do |question| %>
    <%= render 'question_fields', :f => question %>
  <% end %>
  <% unless Rails.env.development? %>
    <%= f.input :phone, :hint => "Automatically assigned", :disabled => true %>
  <% else %>
    <%= f.input :phone, :hint => "Enter test phone number" %>
  <% end %>
 
  <div class="field" style="display:none;">
    <%= f.label :start_date %>
    <%= f.datetime_select :start_date %>
  </div>

  <div class="field">
    <fieldset>
      <div class="control-group">
          <%= f.label :end_date, :class => "control-label" %>
        <div class="controls">
          <%= f.date_select(:end_date, {:use_short_month => 1, :order => [:month, :day, :year]}, {:class => "span1"}) %>
        </div>
      </div>
  </fieldset>
  </div>

  <hr>
  <h3>Script</h3>
  <div class="links">
    <%= link_to_add_association 'Add Question', f, :questions, :class => "btn" %>
  </div>

<div class="form-actions">
    <%= f.button :submit, :class => 'btn btn-large btn-primary' %>
    <%= link_to 'Cancel', @poll, :class => 'btn btn-large' %>
</div>
<% end %>
Fix end date picker styles
Fix end date picker styles
