Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 17th, 2012  |  syntax: None  |  size: 0.71 KB  |  hits: 11  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <div class="nested-fields">
  2.   <fieldset>
  3.     <legend>Patient Device Assignment</legend>
  4.     <p>
  5.       <%= f.label :patient_id, "Patient" %><br />
  6.       <%= f.collection_select(:patient_id, :patients, :id, :full_name_location, :prompt => true) %>
  7.     </p>
  8.     <p>
  9.       <%= f.label :device_id, "Device" %><br />
  10.       <%= f.collection_select(:device_id, :devices, :id, :serial_number, :prompt => true) %>
  11.     </p>
  12.     <p>
  13.       <%= f.label :monitor_start, "Start Date" %><br />
  14.       <%= f.date_select :monitor_start %>
  15.     </p>
  16.     <p>
  17.       <%= f.label :monitor_end, "End Date" %><br />
  18.       <%= f.date_select :monitor_end %>
  19.     </p>
  20.     <%= link_to_remove_association "Remove Patient Assignment", f %>
  21.   </fieldset>
  22. </div>