5d66c62bd6
Claude-Session: https://claude.ai/code/session_01GzammAMzsJTgpQHqxwM2bC
42 lines
1.6 KiB
HTML
42 lines
1.6 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Felhom Hub — {{if .IsNew}}Add Customer{{else}}Edit {{.Config.CustomerID}}{{end}}</title>
|
|
<link rel="stylesheet" href="/style.css?v={{hubVersion}}">
|
|
{{template "inline_confirm_js"}}
|
|
</head>
|
|
<body>
|
|
{{template "icon_sprite"}}
|
|
<div class="container">
|
|
<header>
|
|
<h1>Felhom <span>Hub</span></h1>
|
|
<nav class="nav-links">
|
|
<a href="/" class="nav-link">Dashboard</a>
|
|
<a href="/configs" class="nav-link active">Customers</a>
|
|
<a href="/apps" class="nav-link">Apps</a>
|
|
<a href="/hosts" class="nav-link">Hosts</a>
|
|
<a href="/offsite" class="nav-link">Offsite</a>
|
|
<a href="/configuration" class="nav-link">Configuration</a>
|
|
</nav>
|
|
</header>
|
|
|
|
<a href="{{if .IsNew}}/configs{{else}}/customers/{{.Config.CustomerID}}{{end}}" class="back-link">← Back</a>
|
|
<h2>{{if .IsNew}}Add Customer{{else}}Edit: {{.Config.CustomerID}}{{end}}</h2>
|
|
|
|
{{if .Error}}
|
|
<div class="flash flash-error">{{.Error}}</div>
|
|
{{end}}
|
|
|
|
{{/* v0.48.0 edit-a: the form body is shared with the customer page's Edit tab —
|
|
one sub-template, two render surfaces (the host_detail_body pattern). */}}
|
|
{{template "config_form_body" .}}
|
|
|
|
<footer>
|
|
<p>Felhom Hub {{hubVersion}} — Configuration Management</p>
|
|
</footer>
|
|
</div>
|
|
</body>
|
|
</html>
|