update
This commit is contained in:
39
internal/handler/templates/pages/runways.html
Normal file
39
internal/handler/templates/pages/runways.html
Normal file
@ -0,0 +1,39 @@
|
||||
{{define "title"}}走秀档案 · 管理后台{{end}}
|
||||
{{define "barLabel"}}管理后台 · 走秀档案{{end}}
|
||||
{{define "barRight"}}<a href="/admin/logout">退出</a>{{end}}
|
||||
{{define "content"}}
|
||||
{{template "bar" .}}
|
||||
<div class="main">
|
||||
<h1>走秀列表</h1>
|
||||
<form class="toolbar" method="get" action="/admin/runways">
|
||||
<select name="collection">
|
||||
<option value="" {{if eq .Collection ""}}selected{{end}}>全部系列</option>
|
||||
<option value="rtw" {{if eq .Collection "rtw"}}selected{{end}}>RTW 成衣</option>
|
||||
<option value="menswear" {{if eq .Collection "menswear"}}selected{{end}}>男装</option>
|
||||
<option value="couture" {{if eq .Collection "couture"}}selected{{end}}>高定</option>
|
||||
<option value="resort" {{if eq .Collection "resort"}}selected{{end}}>度假</option>
|
||||
<option value="pre_fall" {{if eq .Collection "pre_fall"}}selected{{end}}>早秋</option>
|
||||
</select>
|
||||
<select name="season">
|
||||
<option value="" {{if eq .Season ""}}selected{{end}}>全部季节</option>
|
||||
<option value="spring" {{if eq .Season "spring"}}selected{{end}}>春夏</option>
|
||||
<option value="fall" {{if eq .Season "fall"}}selected{{end}}>秋冬</option>
|
||||
</select>
|
||||
<input name="year" placeholder="年份" value="{{if gt .Year 0}}{{.Year}}{{end}}" style="width:90px">
|
||||
<select name="sort">
|
||||
<option value="" {{if eq .Sort ""}}selected{{end}}>默认排序</option>
|
||||
<option value="year_desc" {{if eq .Sort "year_desc"}}selected{{end}}>年份 ↓</option>
|
||||
<option value="year_asc" {{if eq .Sort "year_asc"}}selected{{end}}>年份 ↑</option>
|
||||
</select>
|
||||
<button type="submit">筛选</button>
|
||||
<a href="/admin/runways">清除</a>
|
||||
</form>
|
||||
<table>
|
||||
<thead><tr><th>编码 ID</th><th>品牌</th><th>标题</th><th>系列</th><th>季节</th><th>年份</th><th>季节码</th><th>图数</th><th></th></tr></thead>
|
||||
<tbody>
|
||||
{{range .Items}}<tr><td><code>{{.UID}}</code></td><td>{{.BrandName}}</td><td>{{.Title}}</td><td>{{.CollectionType}}</td><td>{{.Season}}</td><td>{{.Year}}</td><td>{{.SeasonCode}}</td><td>{{.ImageCount}}</td><td><a class="view" href="/admin/runways/{{.UID}}">查看</a></td></tr>{{end}}
|
||||
</tbody>
|
||||
</table>
|
||||
{{template "pager" .Pager}}
|
||||
</div>
|
||||
{{end}}
|
||||
Reference in New Issue
Block a user