File size: 923 Bytes
09a1836
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{% extends "base.html" %}
{% block title %}Find a Store{% endblock %}
{% block content %}
<div class="Stores_container">
  <h1>Find a Store</h1>
  <form class="Stores_form" method="get" action="/llb/shop/{{ store_finder_id }}">
    <label class="FormControl_label" for="term">City, State or Zip Code</label>
    <input class="FormControl_input" id="term" name="term" value="{{ term }}">
    <button class="Button_buttonComponent Button_transactional" type="submit">Search</button>
  </form>
  {% if stores %}
  <ul class="Stores_list">
    {% for s in stores %}
    <li class="Store_card">
      <h2>{{ s.name }}</h2>
      <p>{{ s.street }}<br>{{ s.city }}, {{ s.state }} {{ s.postal }}</p>
      <p>{{ s.phone }} &middot; {{ s.hours }}</p>
    </li>
    {% endfor %}
  </ul>
  {% else %}
  <p class="Stores_empty">No stores match "{{ term }}". Try another city, state or zip code.</p>
  {% endif %}
</div>
{% endblock %}