nirvash/templates/config_set.html

18 lines
408 B
HTML
Raw Permalink Normal View History

2022-06-08 05:44:54 +00:00
{{ $config := (.Context).Value "config" }}
{{ $cfgError := ((.Context).Value "adapter").SetConfig $config }}
{{ template "header" . }}
{{ if $cfgError }}
2022-06-08 05:44:54 +00:00
<h2>Configuration Error</h2>
<span class="adapter-error">{{($cfgError).Error}}</span>
2022-06-08 05:44:54 +00:00
{{ else }}
2022-06-08 05:44:54 +00:00
<h2>Configuration Saved</h2>
<span class="adapter-success">The adapter configuration has been saved</span>
2022-06-08 05:44:54 +00:00
{{ end }}
{{ template "footer" . }}