You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. {% extends "base.html" %}
  2. {% load currency_filters %}
  3. {% load promotions %}
  4. {% block layout %}
  5. <div id="container">
  6. <div id="header">
  7. <p><a href="{% url promotions:home %}">Oscar // Flexible e-commerce for Django</a></p>
  8. <form method="get" action="{% url search:search %}">
  9. {{ search_form.as_p }}
  10. <input type="submit" value="Go!" />
  11. </form>
  12. {% if user.is_authenticated %}
  13. <a href="{% url customer:summary %}">Profile</a>
  14. <a href="{% url customer:logout %}">Logout</a>
  15. {% else %}
  16. <a href="{% url customer:login %}">Login</a>
  17. {% endif %}
  18. Basket total: {{ basket.total_incl_tax|currency }}
  19. <a href="{% url basket:summary %}">View basket</a>
  20. {% block header %}
  21. {% endblock %}
  22. </div>
  23. <div id="content">
  24. {% if messages %}
  25. <ul class="messages">
  26. {% for message in messages %}
  27. <li{% if message.tags %} class="{{ message.tags }}"{% endif %}>{{ message }}</li>
  28. {% endfor %}
  29. </ul>
  30. {% endif %}
  31. <div id="promotions">
  32. {% for promotion in promotions_page %}
  33. {% render_promotion promotion %}
  34. {% endfor %}
  35. </div>
  36. {% block content %}{% endblock %}
  37. </div>
  38. <div id="footer">{% block footer %}{% endblock %}</div>
  39. </div>
  40. {% endblock %}