Branca
Categoria
Periodo dell'anno
@if (caricamento()) {
Caricamento...
} @else if (erroreCaricamento()) {
{{ erroreCaricamento() }}
} @else {
@if (tab() === 'branca') {
@if (brancaProposte().length > 0) {
Proposte in attesa di approvazione
@for (branca of brancaProposte(); track branca.id) {
{{ branca.nome }}
⚠️
@if (approvazioneErroreId() === branca.id) {
{{ approvazioneErroreMsg() }}
}
}
}
@if (brancaConfermate().length > 0) {
@for (branca of brancaConfermate(); track branca.id) {
{{ branca.nome }}
@if (branca.inizioEta !== null || branca.fineEta !== null) {
Età {{ branca.inizioEta ?? '?' }}-{{ branca.fineEta ?? '?' }}
}
@if (branca.colore) {
· {{ branca.colore }}
}
@if (eliminaErroreId() === branca.id) {
{{ eliminaErroreMsg() }}
}
}
} @else {
}
}
@if (tab() === 'categoria') {
@if (categoriaProposte().length > 0) {
Proposte in attesa di approvazione
@for (categoria of categoriaProposte(); track categoria.id) {
{{ categoria.nome }}
⚠️
@if (approvazioneErroreId() === categoria.id) {
{{ approvazioneErroreMsg() }}
}
}
}
@if (categoriaConfermate().length > 0) {
@for (categoria of categoriaConfermate(); track categoria.id) {
{{ categoria.nome }}
{{ tipoCategoriaNome(categoria.tipoId) }}
@if (categoriaPadreNome(categoria.padreId); as padreNome) {
· figlia di {{ padreNome }}
}
@if (eliminaErroreId() === categoria.id) {
{{ eliminaErroreMsg() }}
}
}
} @else {
Nessuna categoria presente
}
}
@if (tab() === 'periodoAnno') {
@if (periodoProposti().length > 0) {
Proposte in attesa di approvazione
@for (periodo of periodoProposti(); track periodo.id) {
{{ periodo.nome }}
⚠️
@if (approvazioneErroreId() === periodo.id) {
{{ approvazioneErroreMsg() }}
}
}
}
@if (periodoConfermati().length > 0) {
@for (periodo of periodoConfermati(); track periodo.id) {
{{ periodo.nome }}
@if (periodo.inizioMese !== null || periodo.fineMese !== null) {
Mese {{ periodo.inizioMese ?? '?' }}-{{ periodo.fineMese ?? '?' }}
}
@if (eliminaErroreId() === periodo.id) {
{{ eliminaErroreMsg() }}
}
}
} @else {
}
}
}