lista_utenti: add rappresentanti to the user tags.

This commit is contained in:
2022-09-17 22:26:03 +02:00
parent cff45dc92f
commit cd0383245b
4 changed files with 40 additions and 5 deletions
+8 -3
View File
@@ -1,4 +1,4 @@
{{template "base" .}}
{{template "base" .}}
{{define "title"}}Utenti • PHC{{end}}
{{define "body"}}
<script src="https://unpkg.com/alpinejs@3.x.x/dist/cdn.min.js"></script>
@@ -37,8 +37,8 @@
<template x-for="entry in searchResults" :key="entry.item.uid">
<div class="user-item card">
<a class="full-name" :href="'{{ $.Config.UserPagesBaseUrl }}' + entry.item.uid" x-text="
sortMode === 'surname' ?
entry.item.cognome + ' ' + entry.item.nome :
sortMode === 'surname' ?
entry.item.cognome + ' ' + entry.item.nome :
entry.item.nome + ' ' + entry.item.cognome
"></a>
<template x-if="entry.item.tags?.includes('macchinista')">
@@ -46,6 +46,11 @@
<i class="fas fa-wrench"></i>
</div>
</template>
<template x-if="entry.item.tags?.includes('rappresentante')">
<div class="icon" title="Rappresentante">
<i class="fas fa-landmark"></i>
</div>
</template>
<!-- <template x-if="entry.score">
<span x-text="entry.score"></span>
</template> -->