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

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