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.

layout.html 1.9KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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. {% for banner in banners %}
  19. {{ banner.get_banner_html|safe }}
  20. {% endfor %}
  21. Add a:
  22. <a href="/admin/promotions/pagepromotion/add/?page_url={{ url_path }}" >promotion</a> /
  23. <a href="/admin/promotions/pagemerchandisingblock/add/?page_url={{ url_path }}" >merchandising block</a>
  24. to this page.
  25. Basket total: {{ basket.total_incl_tax|currency }}
  26. <a href="{% url basket:summary %}">View basket</a>
  27. {% block header %}
  28. {% endblock %}
  29. </div>
  30. <div id="content">
  31. {% if messages %}
  32. <ul class="messages">
  33. {% for message in messages %}
  34. <li{% if message.tags %} class="{{ message.tags }}"{% endif %}>{{ message }}</li>
  35. {% endfor %}
  36. </ul>
  37. {% endif %}
  38. {% for linked_block in merchandising_blocks %}
  39. {% render_merchandising_block linked_block %}
  40. {% endfor %}
  41. {% block content %}{% endblock %}
  42. </div>
  43. <div id="footer">{% block footer %}{% endblock %}</div>
  44. </div>
  45. {% endblock %}