update
This commit is contained in:
15
internal/handler/templates/pages/brand-form.html
Normal file
15
internal/handler/templates/pages/brand-form.html
Normal file
@ -0,0 +1,15 @@
|
||||
{{define "title"}}{{if .UID}}编辑品牌{{else}}新建品牌{{end}} · 管理后台{{end}}
|
||||
{{define "barLabel"}}管理后台 · {{if .UID}}编辑品牌{{else}}新建品牌{{end}}{{end}}
|
||||
{{define "barRight"}}<a href="/admin/brands">返回列表</a> · <a href="/admin/logout">退出</a>{{end}}
|
||||
{{define "content"}}
|
||||
{{template "bar" .}}
|
||||
<div class="main">
|
||||
<h1>{{if .UID}}编辑品牌{{else}}新建品牌{{end}}</h1>
|
||||
<form method="post" action="{{if .UID}}/admin/brands/{{.UID}}{{else}}/admin/brands{{end}}">
|
||||
{{if .Error}}<div class="err">{{.Error}}</div>{{end}}
|
||||
<label>英文名(name_en)</label><input name="name_en" value="{{.NameEn}}" placeholder="如 Acne Studios">
|
||||
<label>中文名(name_cn)</label><input name="name_cn" value="{{.NameCn}}" placeholder="如 艾克妮">
|
||||
<button type="submit">{{if .UID}}保存{{else}}创建{{end}}</button>
|
||||
</form>
|
||||
</div>
|
||||
{{end}}
|
||||
Reference in New Issue
Block a user