cadoles-arcad/template/layouts/admin_apps_list.html.tmpl

69 lines
2.1 KiB
Cheetah

{{define "title"}}Applications - Administration - Arcad{{end}}
{{define "body"}}
{{template "header" .}}
<section class="home is-fullheight section">
<div class="container">
<div class="columns">
<div class="column is-2">
{{template "admin_menu" "apps"}}
</div>
<div class="column is-10">
{{template "flash" .}}
<h4 class="is-size-4">Liste des applications installées</h4>
<div class="has-text-right">
<b>Total</b> {{ .AppsCount }}
</div>
<div class="table-container">
<table class="table is-fullwidth is-striped">
<thead>
<tr>
<th>ID</th>
<th>Titre</th>
<th>Version</th>
<th>Ordre d'affichage</th>
<th>Publiée ?</th>
<th>Tags</th>
<th class="has-text-right">Actions</th>
</tr>
</thead>
<tbody>
{{range .Apps}}
<tr>
<td><code>{{ .ID }}</code></td>
<td>{{ .Manifest.Title }}</td>
<td>{{ if eq .Manifest.Version "" }}--{{else}}{{ .Manifest.Version }}{{end}}</td>
<td>{{ .Order }}</td>
<td>{{ if .Published }}oui{{else}}non{{end}}</td>
<td>
{{range .Manifest.Tags}}
<span class="tag is-info">{{ . }}</span>
{{end}}
</td>
<td>
<div class="buttons are-small is-right">
<a class="button is-link" href="/admin/apps/{{ .ID }}">Modifier</a>
</div>
</td>
</tr>
{{else}}
<tr class="has-text-centered is-italic">
<td colspan="7">
Aucune application installée.
</td>
</tr>
{{end}}
</tbody>
</table>
</div>
</div>
</div>
</div>
</section>
{{end}}
{{define "body_script"}}
<script defer src="/admin.js"></script>
{{end}}
{{template "base" .}}