guide_index.new.html 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. {% extends "marketplace/base.html" %}
  2. {% block title %}{{guide}} -{% endblock %}
  3. {% block loadtags %}{% for biz in businesses %}setupMap{{biz.id}}(); {% endfor %}{%endblock%}
  4. {% block javascript %}
  5. <link rel="stylesheet" href="{{MEDIA_URL}}/styles.css" type="text/css">
  6. {% endblock %}
  7. {% block content %}
  8. <td colspan="2" align="left" valign="top" bgcolor="white" width="565">
  9. <div class="dirservhead" align="center" style="padding-top:0px; margin-top:0px">
  10. <br>
  11. <h1>PBP Guides</h1>
  12. <p><span class="headline" style="margin-top:0px; padding-top:0px">Restaurant Guide</span>
  13. <a class="return" href="{% url mk-guide-index %}"><br>
  14. Click here to return to the Seasonal Guide.</a></p>
  15. <h4><strong><img src="{{MEDIA_URL}}/images/menus/menu_small.gif" alt="Menu" width="33" height="40"><br>
  16. This icon denotes a Cuisine Connection advertiser.<br>
  17. Click the icon to see their menu selection</strong></h4>
  18. <p><a href="#bluehill" class="dirservlinks">Blue Hill</a><span class="bullet">&bull;</span><a href="#brooklin" class="dirservlinks">Brooklin</a><span class="bullet">&bull;</span><a href="#brooksville" class="dirservlinks">Brooksville</a><span class="bullet">&bull;</span><a href="#castine" class="dirservlinks">Castine</a><span class="bullet">&bull;</span><a href="#deerisle" class="dirservlinks">Deer Isle</a><span class="bullet">&bull;</span><a href="#penobscot" class="dirservlinks">Penobscot</a><br>
  19. <a href="#sedgwick" class="dirservlinks">Sedgwick/Sargentville</a><span class="bullet">&bull;</span><a href="#stonington" class="dirservlinks">Stonington</a><span class="bullet">&bull;</span><a href="#surry" class="dirservlinks">Surry</a><strong><a href="../../../images/seasonal_guide/cc_arborvine.pdf" target="_blank"></a></strong></p>
  20. <hr>
  21. </div>
  22. <div class="dirservhead" style="padding-top:0px; margin-top:0px">
  23. {% regroup guide.businesses.all by point.town.name as town_list %}
  24. {% for town in town_list %}
  25. <h2 style="padding-top:0px; margin-top:0px"><a name="{{town.grouper|cut:" "}}"></a>{{town.grouper}} <br>
  26. <a class="return" href="#top">Return to top</a></h2>
  27. {% for business in town.list %}
  28. <p>
  29. {% if business.menu_set.all%}<a class="menu" href="{% for menu in business.menu_set.all%}{%if forloop.first %}{{menu.file.url}}{%endif%}{%endfor%}" target="_blank"><img src="{{MEDIA_URL}}images/menus/menu_small.gif" alt="Menu" width="33" height="40" align="right" border="0"></a>{% endif %}
  30. <strong>{{business}}</strong>, {% if business.point %}{{business.point.address}},{%endif%} {% if business.phone%}{{business.phone|cut:"207-"}}.{%endif%} {% if business.brief_hours %}{{business.brief_hours}} {{business.brief}}{%endif%} {% if business.url%}<a href="{{business.url}}" target="_blank">{{busienss.url|cut:"http://"}}</a>{%endif%}
  31. </p>
  32. {% endfor %}
  33. <br>
  34. {% endfor %}
  35. </div>
  36. </td>
  37. {% endblock %}