all repos — nirvash @ ae1606081f172a78242f998f427e5b5a87a55368

modular CMS using the quartzgun library

templates/config_set.html (raw)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
{{ $config := (.Context).Value "config" }}
{{ $cfgError := ((.Context).Value "adapter").SetConfig $config }}

{{ template "header" . }}

{{ if $cfgError }}
  <h2>Configuration Error</h2>
  <span class="adapter-error">{{($cfgError).Error}}</span>
{{ else }}
  <h2>Configuration Saved</h2>
  <span class="adapter-success">The adapter configuration has been saved</span>
{{ end }}

{{ template "footer" . }}