<div class="outline">
{{ if not .Group }}
<form action="/savegroup" method="POST">
<input type="hidden" name="CSRF" value="{{ .SaveCSRF }}">
Add a new group.
<p><label for=name>group name: (alnum)</label><br><input tabindex=1 type="text" name="name" autocomplete=off>
<p><label for=display>display name:</label><br><input tabindex=1 type="text" name="display" autocomplete=off>
<p><label for=desc>description:</label><br>
<textarea class="large" tabindex=1 name="desc">{{ .Group.Desc }}</textarea>
<p><label class="button" for="iscomposite">composite:</label>
<input tabindex=1 type="checkbox" id="iscomposite" name="iscomposite" value="1"><span></span>
<p><button tabindex=1>create</button>
</form>
{{ else }}
<form action="/savegroup" method="POST">
<input type="hidden" name="CSRF" value="{{ .SaveCSRF }}">
<input type="hidden" name="update" value="1">
<input type="hidden" name="name" value="{{ .Group.Name }}">
Edit group: {{ .Group.Name }}
<p>{{ .Group.HTDesc }}
{{ if .Group.IsLocal }}
<p><label for=display>display name:</label><br><input tabindex=1 type="text" name="display" value="{{ .Group.Display }}" autocomplete=off>
<p><label for=desc>description:</label><br>
<textarea class="large" tabindex=1 name="desc">{{ .Group.Desc }}</textarea>
<p><label for=featured>featured:</label><br>
<textarea class="small" tabindex=1 name="featured">{{ range .Group.Featured }}
{{ . }}{{ end }}</textarea>
<p><label class="button" for="modposts">moderate posts:</label>
<input tabindex=1 type="checkbox" id="modposts" name="modposts" value="1" {{ if .Group.ModPosts }}checked{{ end }}><span></span>
<p><label class="button" for="haschat">has chat:</label>
<input tabindex=1 type="checkbox" id="haschat" name="haschat" value="1" {{ if .Group.HasChat }}checked{{ end }}><span></span>
{{ end }}
<p><label class="button" for="picfocus">pic focused:</label>
<input tabindex=1 type="checkbox" id="picfocus" name="picfocus" value="1" {{ if .Group.PicFocus }}checked{{ end }}><span></span>
<p><button tabindex=1>update</button>
</form>
{{ end }}
</div>
