update
This commit is contained in:
@ -13,16 +13,14 @@
|
||||
<button type="submit">保存字段</button>
|
||||
</form>
|
||||
|
||||
<h2>图片管理({{len .Images}} 张)</h2>
|
||||
<div class="grid">
|
||||
{{range .Images}}<div class="cell">
|
||||
<button class="thumb" type="button" data-zoom><img src="{{.Image}}" loading="lazy"></button>
|
||||
<div class="acts">
|
||||
<form method="post" action="/admin/runways/{{$.UID}}/cover"><input type="hidden" name="image" value="{{.Image}}"><button type="submit">设封面</button></form>
|
||||
<form method="post" action="/admin/runways/{{$.UID}}/images/{{.ID}}/delete"><button type="submit" class="reject">删除</button></form>
|
||||
</div>
|
||||
</div>{{end}}
|
||||
{{template "imageGrid" .}}
|
||||
|
||||
{{if eq .Runway.Status "pending"}}
|
||||
<div class="review-actions">
|
||||
<form method="post" action="/admin/articles/runway/{{.Runway.ID}}/approve"><button type="submit" class="op op-primary">通过并发布</button></form>
|
||||
<form method="post" action="/admin/articles/runway/{{.Runway.ID}}/reject"><input name="reason" placeholder="驳回理由(可选)"><button type="submit" class="op op-danger">驳回</button></form>
|
||||
</div>
|
||||
{{end}}
|
||||
|
||||
<form method="post" action="/admin/runways/{{.UID}}/toggle" style="margin-top:22px">
|
||||
{{if .IsDown}}<input type="hidden" name="deleted" value="0"><button type="submit">重新上架</button>{{else}}<input type="hidden" name="deleted" value="1"><button type="submit" class="reject">下架(对外不可见)</button>{{end}}
|
||||
|
||||
Reference in New Issue
Block a user