subscription_detail.html 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. {% extends "pbp_store/admin_base.html" %}
  2. {% load url from future %}
  3. {% load catalog_filters %}
  4. {% block body %}
  5. <div class='span8'></div>
  6. {% for order_item in order_items %}
  7. <h3>Subscription Type:
  8. {% if order_item.product.child.renewal %} Renewal{% elif order_item.is_gift %} Gift{% else %} New{% endif %}
  9. </h3>
  10. <h5><a href="{% url 'view_order_detail' order.pk %}">Order: #{{order.pk}}</a></h5>
  11. <table class="table table-condensed table-bordered">
  12. <tbody>
  13. <tr><td>Paper:</td><td>{{order_item.product.title}}</td></tr>
  14. <tr><td>Duration:</td><td>{{order_item.product.child.duration}}</td></tr>
  15. <tr><td>Shipping Method:</td><td>{{order_item.product.child.shipping_method}}</td></tr>
  16. <tr><td>Email:</td><td>{{order.user.email}}</td></tr>
  17. <tr><th colspan="2">{% if not order_item.is_gift %}Shipping Address:{% else %}Gift From:{% endif %}</th></tr>
  18. <tr><td>Name:</td><td>{{order.user.first_name}} {{order.user.last_name}}</td></tr>
  19. <tr><td>Company:</td><td>{{order.user.my_profile.company}}</td></tr>
  20. <tr><td>address1:</td><td>{{order.user.my_profile.address1}}</td></tr>
  21. <tr><td>address2:</td><td>{{order.user.my_profile.address2}}</td></tr>
  22. <tr><td>City:</td><td>{{order.user.my_profile.city}}</td></tr>
  23. <tr><td>State:</td><td>{{order.user.my_profile.region}}</td></tr>
  24. <tr><td>Country:</td><td>{{order.user.my_profile.country}}</td></tr>
  25. <tr><td>Other:</td><td>{{order.user.my_profile.country_other}}</td></tr>
  26. <tr><td>Zip:</td><td>{{order.user.my_profile.postal_code}}{% if order.user.my_profile.plus_four %}-{{order.user.my_profile.plus_four}}{% endif %}</td></tr>
  27. <tr><td>Phone:</td><td>{{order.user.my_profile.phone}}</td></tr>
  28. {% if not order_item.is_gift %}
  29. <tr><th colspan="2">Secondary Shipping Address:</th></tr>
  30. <tr><td>Date Effective:</td>
  31. <td>{% if order.user.my_profile.secondary_address.address_from %}From: {{ order.user.my_profile.secondary_address.address_from }}{% endif %}
  32. {% if order.user.my_profile.secondary_address.address_to %}To: {{ order.user.my_profile.secondary_address.address_to }}{% endif %}</td></tr>
  33. <tr><td>Name:</td><td>{{order.user.my_profile.secondary_address.first_name}} {{order.user.my_profile.secondary_address.last_name}}</td></tr>
  34. <tr><td>Company:</td><td>{{order.user.my_profile.secondary_address.company}}</td></tr>
  35. <tr><td>address1:</td><td>{{order.user.my_profile.secondary_address.address1}}</td></tr>
  36. <tr><td>address2:</td><td>{{order.user.my_profile.secondary_address.address2}}</td></tr>
  37. <tr><td>City:</td><td>{{order.user.my_profile.secondary_address.city}}</td></tr>
  38. <tr><td>State:</td><td>{{order.user.my_profile.secondary_address.region}}</td></tr>
  39. <tr><td>Country:</td><td>{{order.user.my_profile.secondary_address.country}}</td></tr>
  40. <tr><td>Other:</td><td>{{order.user.my_profile.secondary_address.country_other}}</td></tr>
  41. <tr><td>Zip:</td><td>{{order.user.my_profile.secondary_address.postal_code}}{% if order.user.my_profile.secondary_address.plus_four %}-{{order.user.my_profile.secondary_address.plus_four}}{% endif %}</td></tr>
  42. <tr><td>Phone:</td><td>{{order.user.my_profile.secondary_address.phone}}</td></tr>
  43. {% else %}
  44. <tr><th colspan="2">Gift To:</th></tr>
  45. <tr><td>Name:</td><td>{{order_item.gift_detail.first_name}} {{order_item.gift_detail.last_name}}</td></tr>
  46. <tr><td>Company:</td><td>{{order_item.gift_detail.company}}</td></tr>
  47. <tr><td>address1:</td><td>{{order_item.gift_detail.address1}}</td></tr>
  48. <tr><td>address2:</td><td>{{order_item.gift_detail.address2}}</td></tr>
  49. <tr><td>City:</td><td>{{order_item.gift_detail.city}}</td></tr>
  50. <tr><td>State:</td><td>{{order_item.gift_detail.region}}</td></tr>
  51. <tr><td>Country:</td><td>{{order_item.gift_detail.country}}</td></tr>
  52. <tr><td>Other:</td><td>{{order_item.gift_detail.country_other}}</td></tr>
  53. <tr><td>Zip:</td><td>{{order_item.gift_detail.postal_code}}{% if order_item.gift_detail.plus_four %}-{{order_item.gift_detail.plus_four}}{% endif %}</td></tr>
  54. <tr><td>Phone:</td><td>{{order_item.gift_detail.phone}}</td></tr>
  55. <tr><td>Email:</td><td>{{order_item.gift_detail.email}}</td></tr>
  56. <tr><th colspan="2">Gift Detail:</th></tr>
  57. <tr><td>Next Renewal:</td><td>{% if order_item.gift_detail.bill_on_renewal == "PURCHASER"%}Bill Purchaser{% else %}Bill Recipient{% endif %}</td></tr>
  58. <tr><td>Gift Card:</td><td>{% if not order_item.gift_detail.gift_card_delivery %}No gift card{% elif order_item.gift_detail.gift_card_delivery == "PURCHASER" %}Send gift card to purchaser{% else %}Send gift cards to sender{% endif %}</td></tr>
  59. <tr><td>Gift Card Text:</td><td>{{order_item.gift_detail.message}}</td></tr>
  60. {% endif %}
  61. </tbody>
  62. </table>
  63. {% endfor %}
  64. {% endblock body %}