Design anpassungen
This commit is contained in:
@@ -1,18 +1,43 @@
|
||||
{{ define "admin_categoryList" }}
|
||||
<h1>Adminpage vom {{ .spiel.Name }}</h1>
|
||||
{{ if .error }}
|
||||
<div class="alert alert-warning">
|
||||
{{ range $i, $msg := .error }}
|
||||
{{ $msg }}<br/>
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ end }}
|
||||
{{ range $i, $category := .categories }}
|
||||
<li><a href="/products/cat/{{ $category.ID }}">{{ $category.Name }}</a></li>
|
||||
{{ end }}
|
||||
|
||||
{{ template "admin_categoryAdd" $d := .spiel.ID }}
|
||||
|
||||
<section class="breadcrumb-section pb-3 pt-3">
|
||||
<div class="container">
|
||||
<ol class="breadcrumb">
|
||||
<li class="breadcrumb-item"><a href="/">Home</a></li>
|
||||
<li class="breadcrumb-item"><a href="/section/{{ .spiel.ID }}">{{ .spiel.Name }}</a></li>
|
||||
<!--<li class="breadcrumb-item active" aria-current="page">{{ .product.Name}}</li>-->
|
||||
</ol>
|
||||
</div>
|
||||
</section>
|
||||
<section class="pb-4 pt-4">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-lg-8 col-md-4">
|
||||
<div class="sidebar">
|
||||
<div class="sidebar-widget">
|
||||
<div class="widget-title">
|
||||
<h3>Admin page vom {{ .spiel.Name }}</h3>
|
||||
</div>
|
||||
<div class="widget-content">
|
||||
{{ if .error }}
|
||||
<div class="alert alert-warning">
|
||||
{{ range $i, $msg := .error }}
|
||||
{{ $msg }}<br/>
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ end }}
|
||||
<ul>
|
||||
{{ range $i, $category := .categories }}
|
||||
<li>{{ $category.Name }}</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
{{ template "admin_categoryAdd" $d := .spiel.ID }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
{{ end }}
|
||||
|
||||
|
||||
@@ -31,7 +56,6 @@
|
||||
<button type="submit" class="btn btn-primary my-4">Speichern</button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
{{ end }}
|
||||
|
||||
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
<div class="container">
|
||||
<ol class="breadcrumb">
|
||||
<li class="breadcrumb-item"><a href="/">Home</a></li>
|
||||
<li class="breadcrumb-item"><a href="/products">Products</a></li>
|
||||
<li class="breadcrumb-item active" aria-current="page">{{ .product.Name}}</li>
|
||||
<li class="breadcrumb-item"><a href="/section/{{ .game.ID }}">{{ .game.Name }}</a></li>
|
||||
<!--<li class="breadcrumb-item active" aria-current="page">{{ .product.Name}}</li>-->
|
||||
</ol>
|
||||
</div>
|
||||
</section>
|
||||
@@ -16,6 +16,11 @@
|
||||
<div class="sidebar-widget">
|
||||
<div class="widget-title">
|
||||
<h3>Kategorien</h3>
|
||||
{{ if .user }}
|
||||
{{ if .user.Admin }}
|
||||
<a href="/admin/category/{{ .game.ID }}">Bearbeiten</a>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</div>
|
||||
<div class="widget-content widget-categories">
|
||||
<ul>
|
||||
|
||||
@@ -2,8 +2,9 @@
|
||||
<section class="breadcrumb-section pb-3 pt-3">
|
||||
<div class="container">
|
||||
<ol class="breadcrumb">
|
||||
<li class="breadcrumb-item"><a href="#">Home</a></li>
|
||||
<li class="breadcrumb-item active" aria-current="page">Products</li>
|
||||
<li class="breadcrumb-item"><a href="/">Home</a></li>
|
||||
<li class="breadcrumb-item" aria-current="page"><a href="/section/{{.category.Section.ID}}">{{ .category.Section.Name }}</a></li>
|
||||
<li class="breadcrumb-item active" aria-current="page">{{ .category.Name }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</section>
|
||||
@@ -78,6 +79,11 @@
|
||||
<div class="products-top">
|
||||
<div class="products-top-inner">
|
||||
<div class="products-found">
|
||||
{{ if .user }}
|
||||
{{ if .user.Admin }}
|
||||
<a href="/admin/product/add/{{.category.ID}}">Hinzufügen</a>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ if eq (len .products) 1 }}
|
||||
<p><span>1 Produkt gefunden</span></p>
|
||||
{{ else }}
|
||||
|
||||
Reference in New Issue
Block a user