{{ define "title" }}
dodo app: status
{{ end }}
{{- define "content" -}}
<form id="create-app" action="" method="POST">
	<fieldset class="grid">
		<input type="text" name="name" placeholder="name (optional)" />
		<details class="dropdown">
			<summary>network</summary>
			<ul>
				{{- range $i, $n := .Networks -}}
				<li>
					<label>
						<input type="radio" name="network" oninput="dropdownSelected(this, '{{ $n.Name }}')" value="{{$n.Name}}" />
						{{ $n.Name }} - {{ $n.Domain }}
					</label>
				</li>
				{{- end -}}
			</ul>
		</details>
		<input type="text" name="subdomain" placeholder="subdomain" />
		<details class="dropdown">
			<summary>template</summary>
			<ul>
				{{- range $i, $t := .Types -}}
				<li>
					<label>
						<input type="radio" name="type" oninput="dropdownSelected(this, '{{ $t }}')" value="{{$t}}" />
						{{ $t }}
					</label>
				</li>
				{{- end -}}
			</ul>
		</details>
		<button id="create-app-button" aria-busy="false" type="submit" name="create-app">create app</button>
	</fieldset>
</form>
<hr class="divider">
<aside>
	<nav>
		<ul>
			{{- range .Apps -}}
			<li>
				<a class="app-info-link" href="/{{ . }}">{{ . }}</a>
			</li>
			{{- end -}}
		</ul>
	</nav>
</aside>
{{- end -}}
