aaronsw / watchdog

The watchdog project.

This URL has Read+Write access

watchdog / templates / find_multi.html
100644 23 lines (15 sloc) 0.62 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
$def with (zip, districts)
 
$var width: 90%
$var color: white
 
$var title: Multiple districts
 
<h1>Multiple districts</h1>
 
<p>It looks like the zip code <strong>$zip</strong> crosses multiple districts. If you know your district, you can select it:</p>
 
<ul>
$for d in districts:
    <li><a href="/us/$d.name.lower()">$d.name</a> (Rep. $d.representatives[0].name)</li>
</ul>
 
<form method="GET" action="/us/">
  <input type="hidden" name="zip" value="$zip" />
  
  <p>Otherwise, enter your address and we'll try to locate you:</p>
  <p><input type="text" name="address" /> <button type="submit">Go</button></p>
</form>