updates! settings!

This commit is contained in:
Henrique Dias
2015-09-13 22:48:52 +01:00
parent 082073acda
commit 788218e115
4 changed files with 182 additions and 36 deletions

View File

@@ -0,0 +1,30 @@
{{#HEADER#}}
{{ with .Body }}
<div class="content">
<h1>Settings</h1>
<form>
{{ range $key, $value := . }}
{{ if isMap $value }}
<h2>{{ splitCapitalize $key }}</h2>
<div id="{{ $key }}">
<!-- call this range again -->
</div>
{{ else }}
<label for="{{ $key }}">{{ splitCapitalize $key }}</label>
<input name="{{ $key }}" id="{{ $key }}" value="{{ $value }}"></input><br>
{{ end }}
{{ end }}
</form>
</div>
{{ end }}
{{#FOOTER#}}