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

59 lines
2.1 KiB
Cheetah

{{define "title"}}Place de marché - Administration - Arcad{{end}}
{{define "body"}}
{{template "header" .}}
<section class="block">
<div class="container">
<div>
{{template "admin_menu" "market"}}
</div>
<div>
{{template "flash" .}}
<form class="mb-4 pl-2 w-full" action="/admin/market" methode="GET">
<div class="flex">
<div class="w-2/3">
<input class="p-2 w-full border rounded-l" type="text" name="search" placeholder="Rechercher une application..." value="{{ .Search }}">
</div>
<div>
<button class="transform sm:w-1/3 rounded-r bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 font-bold duration-300">Rechercher</button>
</div>
</div>
</form>
<div class="mr-4 text-right">
<b>Total</b> {{ .ResultsCount }}
</div>
{{range .Results}}
<div class="m-4 sm:block md:lg:flex w-100">
<div class="flex flex-col md:flex-row md:max-w-xl rounded-lg bg-white shadow-lg">
<div class="p-6 flex flex-col justify-start">
<h5 class="text-gray-900 text-xl font-medium mb-2"><code>{{ .Name }}</code></h5>
<p class="md:max-w-xl break-all text-gray-700 text-base mb-4 max-width">
{{ .LatestRelease.Description }}
</p>
<div class="flex justify-between">
<div>
<p class="text-gray-600 text-xs">{{ localeTimeFormat .LatestRelease.CreatedAt.Time "02/01/2006 15:04" "fr_FR" }}</p>
<p class="text-gray-600 text-xs">{{ .Owner.Username }} - V{{ .LatestRelease.Version }} </p>
</div>
<div>
<a class="" href="/admin/market/{{ .ID }}/install"><img class="custom-icon" src="/icons/download-solid.svg"/></a>
</div>
</div>
</div>
</div>
</div>
{{else}}
<div>
Aucun résultat.
</div>
{{end}}
</div>
</div>
</section>
{{end}}
{{define "body_script"}}
<script defer src="/admin.js"></script>
{{end}}
{{template "base" .}}