{{ define "index-content" }}
<h1>MUNI Sign Configuration</h1>

<img src="/public/images/muni_train.jpg" alt="SF MUNI Train in front of Bay Bridge">

<p>Welcome!</p>
<p>To configure your MUNI Sign, select an agency and a stop ID and submit the
form below. You can obtain this information by visiting <a
href="http://www.nextbus.com" target="_blank">Nextbus' website</a>.</p>

<div>
  <h3>Current Configuration</h3>
  <div>Agency: <span>{{.Cfg.Agency}}</span></div>
  {{range .Cfg.StopIds}}
    <div>Stop ID: <span>{{.}}</span></div>
  {{end}}
</div>

<div>
  <h3>New Configuration</h3>
  <form action="/" method="POST">
    <div>Agency: 
      <select name="agency">
        {{range .Agencies}}
        <option label={{.Name}} value={{.Tag}} {{if eq (.Tag) ($.Cfg.Agency)}}selected="selected"{{end}}>
        {{end}}
      </select>
    </div>
    <div>Stop ID: <input type="text" name="stopId" value="{{index $.Cfg.StopIds 0}}"></div>
    <input type="submit" value="Submit">
  </form>
</div>

<datalist id="agencies">
</datalist>
{{ end }}

{{ define "index-content" }}
<h1>MUNI Sign Configuration</h1>

<img src="/public/images/muni_train.jpg" alt="SF MUNI Train in front of Bay Bridge">

<p>Welcome!</p>
<p>To configure your MUNI Sign, select an agency and a stop ID and submit the
form below. You can obtain this information by visiting <a
href="http://www.nextbus.com" target="_blank">Nextbus' website</a>.</p>

<div>
  <h3>Current Configuration</h3>
  <div>Agency: <span>{{.Cfg.Agency}}</span></div>
  {{range .Cfg.StopIds}}
    <div>Stop ID: <span>{{.}}</span></div>
  {{end}}
</div>

<div>
  <h3>New Configuration</h3>
  <form action="/" method="POST">
    <div>Agency: 
      <select name="agency">
        {{range .Agencies}}
        <option label={{.Name}} value={{.Tag}} {{if eq (.Tag) ($.Cfg.Agency)}}selected="selected"{{end}}>
        {{end}}
      </select>
    </div>
    <div>Stop IDs <em>(separated by space)</em>: <input type="text" name="stopIds" value="{{range $i, $e := .Cfg.StopIds}}{{if ne $i 0}} {{end}}{{$e}}{{end}}"></div>
    <input type="submit" value="Submit">
  </form>
</div>

<datalist id="agencies">
</datalist>
{{ end }}

Add missing template update for multiple stop selection.
Add missing template update for multiple stop selection.
