updates! settings!

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

No files matched your search

+30
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#}}