Materiali
Categorie
Liste in attesa
Tipi evento
@if (tab() === 'materiali') {
Materiali proposti dalle organizzazioni, in attesa di approvazione.
@if (loading()) {
Caricamento...
} @else if (loadError()) {
{{ loadError() }}
} @else if (proposte().length > 0) {
Proposte in attesa di approvazione
@for (proposta of proposte(); track proposta.id) {
{{ proposta.nome }}
{{ proposta.categoria }} · {{ proposta.unitaMisura }} · proposto il {{ proposta.creatoIl | slice: 0 : 10 }}
@if (decisioneErroreId() === proposta.id) {
Impossibile registrare la decisione. Riprova più tardi.
}
}
} @else {
Nessuna proposta in attesa di approvazione
}
@if (materialiLoading()) {
Caricamento...
} @else if (materialiLoadError()) {
{{ materialiLoadError() }}
} @else {
@if (materiali().length === 0) {
Nessun materiale presente
} @else {
@for (materiale of materiali(); track materiale.id) {
{{ materiale.nome }}
{{ materiale.categoria }} · {{ materiale.unitaMisura }}
@if (materialeEliminaErroreId() === materiale.id) {
{{ materialeEliminaErroreMsg() }}
}
}
}
}
}
@if (tab() === 'categorie') {
Categorie di materiale: gestite direttamente dal moderatore, oppure proposte da un'organizzazione e in attesa di conferma.
@if (categorieLoading()) {
Caricamento...
} @else if (categorieLoadError()) {
{{ categorieLoadError() }}
} @else {
@if (categoriaProposte().length > 0) {
Proposte in attesa di approvazione
@for (categoria of categoriaProposte(); track categoria.id) {
{{ categoria.nome }}
⚠️
@if (categoriaApprovazioneErroreId() === categoria.id) {
{{ categoriaApprovazioneErroreMsg() }}
}
}
}
@if (categoriaConfermate().length > 0) {
@for (categoria of categoriaConfermate(); track categoria.id) {
{{ categoria.nome }}
@if (categoriaEliminaErroreId() === categoria.id) {
{{ categoriaEliminaErroreMsg() }}
}
}
} @else {
Nessuna categoria presente
}
}
}
@if (tab() === 'liste') {
Liste pubbliche proposte dagli utenti, in attesa di approvazione.
@if (listeLoading()) {
Caricamento...
} @else if (listeLoadError()) {
{{ listeLoadError() }}
} @else if (listeProposte().length === 0) {
Nessuna lista in attesa di approvazione
} @else {
@for (lista of listeProposte(); track lista.id) {
{{ lista.nome }}
{{ lista.voci.length }} voci · proposta il {{ lista.creataIl | slice: 0 : 10 }}
@if (listaDecisioneErroreId() === lista.id) {
Impossibile registrare la decisione. Riprova più tardi.
}
}
}
}
@if (tab() === 'tipiEvento') {
Tipi evento usati per classificare le liste pubbliche: gestiti direttamente dal moderatore, oppure proposti da un'organizzazione e in attesa di conferma.
@if (tipiEventoLoading()) {
Caricamento...
} @else if (tipiEventoLoadError()) {
{{ tipiEventoLoadError() }}
} @else {
@if (tipoEventoProposti().length > 0) {
Proposte in attesa di approvazione
@for (tipoEvento of tipoEventoProposti(); track tipoEvento.id) {
{{ tipoEvento.nome }}
⚠️
@if (tipoEventoApprovazioneErroreId() === tipoEvento.id) {
{{ tipoEventoApprovazioneErroreMsg() }}
}
}
}
@if (tipoEventoConfermati().length > 0) {
@for (tipoEvento of tipoEventoConfermati(); track tipoEvento.id) {
{{ tipoEvento.nome }}
@if (tipoEventoEliminaErroreId() === tipoEvento.id) {
{{ tipoEventoEliminaErroreMsg() }}
}
}
} @else {
Nessun tipo evento presente
}
}
}