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.6KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. {% extends "base.html" %}
  2. {% load currency_filters %}
  3. {% load promotions %}
  4. {% block layout %}
  5. <div id="container">
  6. <div id="header">
  7. <h1>Oscar // Flexible e-commerce for Django</h1>
  8. <form method="get" action="{% url oscar-search %}">
  9. {{ search_form.as_p }}
  10. <input type="submit" value="Go!" />
  11. </form>
  12. {% if user.is_authenticated %}
  13. <a href="{% url oscar-customer-profile %}">Profile</a>
  14. <a href="">Logout</a>
  15. {% else %}
  16. <a href="">Login</a>
  17. {% endif %}
  18. {% for banner in banners %}
  19. {{ banner.get_banner_html|safe }}
  20. {% endfor %}
  21. <a href="/admin/promotions/pagepromotion/add/?page_url={{ url_path }}" >Add a promotion to this page</a>
  22. {% block header %}
  23. {% endblock %}
  24. </div>
  25. <div id="content">
  26. {% if messages %}
  27. <ul class="messages">
  28. {% for message in messages %}
  29. <li{% if message.tags %} class="{{ message.tags }}"{% endif %}>{{ message }}</li>
  30. {% endfor %}
  31. </ul>
  32. {% endif %}
  33. {% for linked_block in merchandising_blocks %}
  34. {% render_merchandising_block linked_block %}
  35. {% endfor %}
  36. {% block content %}{% endblock %}
  37. </div>
  38. <div id="footer">{% block footer %}{% endblock %}</div>
  39. </div>
  40. {% endblock %}