Guest User

Untitled

a guest
Jun 18th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.52 KB | None | 0 0
  1. <div class="error">
  2. <%= error_messages_for :applicant, :header_message => "There was a problem saving your information", :message => "" %>
  3. </div>
  4. <% form_for(@applicant, :url => welcome_path,:html => { :class => "default", :autocomplete => 'off' }) do |f| %>
  5. <h2>Welcome</h2>
  6. <p>We need some information to put here as an introduction to the online application that is both encouraging and informative towards the process and what the user can expect.</p>
  7. <p>Are you applying as a Freshman or Transfer student?</p>
  8. <ul>
  9. <script type="text/javascript">
  10. $(function() {
  11. $("select[id=applicant_applying_as]").change(function() {
  12. var value = $(this).val();
  13. if (value == "Freshman") {
  14.  
  15. $("p#freshman").show();
  16. $("p#transfer").hide();
  17. }
  18. if (value == "Transfer") {
  19.  
  20. $("p#freshman").hide();
  21. $("p#transfer").show();
  22. }
  23. });
  24. });
  25. </script>
  26. <li class="section">
  27. <%= f.select(:applying_as, ["Freshman", "Transfer"]) %>
  28. </li>
  29. <p id="freshman">this is our freshman stuff</p>
  30. <p id="transfer" style="display: none;">this is our transfer stuff</p>
  31.  
  32. <p>Are you a citizen of the United States of America?</p>
  33. <ul>
  34. <li class="section">
  35. <%= f.select(:united_states_citizen, [["Yes, I am", true],["No, I am not", false]]) %>
  36. </li>
  37.  
  38.  
  39.  
  40. <li class="section">
  41. <label class="desc">International Student Information Collection Area</label>
  42. <p>The following information is required by the University of Tulsa.</p>
  43. <div class="left">
  44. <label class="desc" for="citizenship">Country</label>
  45. <%= f.collection_select(:country_id, @countries, :id, :name, :caption => "Country of Citizenship") %>
  46.  
  47. <label for="citizenship">Country of citizenship</label>
  48. </div>
  49. <div class="right">
  50. <label class="desc" for="pra">PRA Number</label>
  51. <%= f.text_field :permanent_resident_alien_number, :size => '15', :class => "short textfield", :caption => "PRA Number" %>
  52.  
  53. <label for="pra_number">XXXXX-XX-XX-XXX</label>
  54. </div>
  55. </li>
  56.  
  57. <!--<li>
  58. <span>
  59. <label class="desc">School attending or last attended</label>
  60. <input type="text" class="medium textfield" />
  61. <label>Name of school</label>
  62. </span>
  63. </li>-->
  64.  
  65.  
  66. </ul>
  67.  
  68.  
  69.  
  70. <p>Applying to The University of Tulsa</p>
  71. <p>Thank you for your interest in applying to The University of Tulsa. Please read the following information before you complete the application for admission.</p>
  72.  
  73.  
  74. <%= submit_tag 'Begin' %>
  75. <% end %>
Add Comment
Please, Sign In to add comment