full_profile_form.html 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  1. {% extends "pbp_store/store_base.html" %}
  2. {% load i18n %}
  3. {% load url from future %}
  4. {% load storefront_tags pbp_core_tags account_tags %}
  5. {% block style %}{{ block.super }}
  6. <link rel="stylesheet"
  7. href="http://code.jquery.com/ui/1.10.0/themes/base/jquery-ui.css"
  8. xmlns="http://www.w3.org/1999/html">
  9. <script src="http://code.jquery.com/jquery-1.9.0.js"></script>
  10. <script src="http://code.jquery.com/ui/1.10.0/jquery-ui.js"></script>
  11. {% endblock style %}
  12. {% block right-side %}{% endblock right-side %}
  13. {% block body %}
  14. <div id="store_details_sidebar">
  15. <h2 class="store_sectionhead">Account{% if not request.user.is_authenticated %} Creation{% endif %}</h2>
  16. <p style="color:#FF0000">NOTE: We have streamlined our online store and are no longer using customer accounts for our storefront.<br>
  17. This admin section is provided for reference for previous orders only <br>and does not include any orders placed after Nov. 20, 2013.</p>
  18. {% if request.user.is_authenticated %}
  19. <div class="sub_nav">
  20. <ul class="sub_nav_list">
  21. <li class="sub_nav_item_current"><a href="{% url 'profile_edit' %}" >{% trans 'Account'%}</a></li>
  22. <li class="sub_nav_item"><a href="{% url 'password_change' %}" class="sub_nav_link">Change Password</a></li>
  23. <li class="sub_nav_item"><a href="{% url 'profile_orders_subs' %}" class="sub_nav_link">Orders/Subscriptions</a></li>
  24. </ul>
  25. </div>
  26. {% endif %}
  27. </div>
  28. <div id="store_details">
  29. <div class="store_item">
  30. <form style="margin:0px; padding:0px" action="" method="post">{% csrf_token %}
  31. <h3 class="store_sectionsubhead">Shipping Address</h3>
  32. <p class="sub_form_address">
  33. {% if userform.non_field_errors %}
  34. <span class='required'>{{ userform.non_field_errors }}</span>
  35. {% endif %}
  36. {{ userform.first_name.errors }}{{ userform.last_name.errors }}
  37. First/Last Name<span class="required">*</span>
  38. {{ userform.first_name }} {{ userform.last_name }}<br />
  39. {{ userform.company.errors }}
  40. Company
  41. {{ userform.company }}<br />
  42. {{ userform.address.errors }}
  43. Address<span class="required">*</span>
  44. {{ userform.address1 }}<br />
  45. {{ userform.address2 }}<br />
  46. {{ userform.city.errors }}
  47. City<span class="required">*</span>
  48. {{ userform.city }}<br />
  49. {{ userform.region.errors }}
  50. State/Province<span class="required">*</span>
  51. {{ userform.region }}<br />
  52. {{ userform.country.errors }}
  53. Country<span class="required">*</span>
  54. {{ userform.country }}<br />
  55. {{ userform.country_other.errors }}
  56. Other <span class="fine_print">(Foreign only) </span>
  57. {{ userform.country_other}}<br />
  58. {{ userform.postal_code.errors }}{{userform.plus_four.errors }}
  59. ZIP+4<span class="required">*</span>
  60. {{ userform.postal_code }}-{{ userform.plus_four }}<br />
  61. {{ userform.phone.errors }}
  62. Phone<span class="required">*</span>
  63. {{ userform.phone }}<br />
  64. {{ userform.email.errors }}
  65. E-mail<span class="required">*</span>
  66. {{ userform.email }}<br />
  67. <span class="fine_print"><a href="{% url 'help' %}#emailhelp" class="basic_link">Why is an e-mail address mandatory?</a></span></br>
  68. {% if userform.password1 %}
  69. {{ userform.password1.errors }}{{ userform.password2.errors }}
  70. Password<span class="required">*</span>
  71. {{ userform.password1 }}<br />
  72. Confirm Password<span class="required">*</span>
  73. {{ userform.password2 }}<br />
  74. {% endif %}
  75. </p>
  76. {% if request.user.is_authenticated %}
  77. <h3 class="store_sectionsubhead">
  78. Secondary Shipping Address
  79. </h3>
  80. <p class="sub_form_address">
  81. {% if second_address.non_field_errors %}
  82. <span class='required'>{{ second_address.non_field_errors }}</span>
  83. {% endif %}
  84. {{ second_address.address_from.error }}{{ second_address.address_to.error }}
  85. Date Effective
  86. {{ second_address.address_from }} to {{ second_address.address_to }}<br />
  87. {{ second_address.first_name.error }} {{ second_address.last_name.error }}
  88. First/Last Name
  89. {{ second_address.first_name }} {{ second_address.last_name }}<br />
  90. {{ second_address.company.errors }}
  91. Company
  92. {{ second_address.company }}<br />
  93. {{ second_address.address.errors }}
  94. Address
  95. {{ second_address.address1 }}<br />
  96. {{ second_address.address2 }}<br />
  97. {{ second_address.city.errors }}
  98. City
  99. {{ second_address.city }}<br />
  100. {{ second_address.region.errors }}
  101. State/Province
  102. {{ second_address.region }}<br />
  103. {{ second_address.country.errors }}
  104. Country
  105. {{ second_address.country }}<br />
  106. {{ second_address.country_other.errors }}
  107. Other <span class="fine_print">(Foreign only) </span>
  108. {{ second_address.country_other}}<br />
  109. {{ second_address.postal_code.error }}{{second_address.plus_four.error }}
  110. ZIP+4
  111. {{ second_address.postal_code }}-{{ second_address.plus_four }}<br />
  112. {{ second_address.phone.error }}
  113. Phone
  114. {{ second_address.phone }}<br />
  115. </p>
  116. {% endif %}
  117. <p class="checkout"><button type="submit" >
  118. {% if request.user.is_authenticated %}Update profile
  119. {% else %}Create Account
  120. {% endif %}
  121. </button></p>
  122. </form>
  123. </div>
  124. </div>
  125. <script>
  126. $( "#id_form5-address_from" ).datepicker();
  127. $( "#id_form5-address_to" ).datepicker();
  128. </script>
  129. <script type="text/javascript" src="{{ MEDIA_URL }}js/pbp_store.js"></script>
  130. {% endblock body %}