ajout catégories randonnée dans le frontend
This commit is contained in:
parent
bdb3728494
commit
22314d7b9e
3 changed files with 41 additions and 1 deletions
|
@ -61,6 +61,9 @@
|
|||
</div>
|
||||
</div>
|
||||
}
|
||||
<pre>
|
||||
{{currentPreset() | json}}
|
||||
</pre>
|
||||
|
||||
<div class="row">
|
||||
<label>Type</label>
|
||||
|
|
|
@ -3,10 +3,11 @@ import { FormBuilder, FormGroup, ReactiveFormsModule, Validators } from '@angula
|
|||
import { NgFor, NgIf } from '@angular/common';
|
||||
import oedb from '../../../oedb-types';
|
||||
import { OedbApi } from '../../services/oedb-api';
|
||||
import { JsonPipe } from '@angular/common';
|
||||
|
||||
@Component({
|
||||
selector: 'app-edit-form',
|
||||
imports: [ReactiveFormsModule],
|
||||
imports: [ReactiveFormsModule, JsonPipe],
|
||||
templateUrl: './edit-form.html',
|
||||
styleUrl: './edit-form.scss'
|
||||
})
|
||||
|
|
|
@ -197,6 +197,42 @@ const oedb = {
|
|||
magnitude: { label: 'Magnitude (Mw)', writable: true },
|
||||
depth_km: { label: 'Profondeur (km)', writable: true }
|
||||
}
|
||||
},
|
||||
|
||||
// catégories pour la randonnée
|
||||
'traffic.interruption': {
|
||||
emoji: '⛓️💥',
|
||||
label: 'Interruption d\'itinéraire',
|
||||
category: 'Randonnée',
|
||||
description: 'Interruption d\'itinéraire',
|
||||
durationHours: 200,
|
||||
properties: {
|
||||
reason: { label: 'Raison', writable: true },
|
||||
route: { label: 'Itinéraire', writable: true },
|
||||
|
||||
}
|
||||
},
|
||||
'traffic.wrong_way': {
|
||||
emoji: '⛖',
|
||||
label: 'Mauvais sens de circulation',
|
||||
category: 'Randonnée',
|
||||
description: 'Mauvais sens de circulation',
|
||||
durationHours: 200,
|
||||
properties: {
|
||||
reason: { label: 'Raison', writable: true },
|
||||
route: { label: 'Itinéraire', writable: true },
|
||||
|
||||
}
|
||||
},
|
||||
'traffic.contestation': {
|
||||
emoji: '🤯',
|
||||
label: 'Contestation d\'itinéraire',
|
||||
category: 'Randonnée',
|
||||
description: 'Contestation d\'itinéraire',
|
||||
durationHours: 200,
|
||||
properties: {
|
||||
route: { label: 'Itinéraire', writable: true },
|
||||
}
|
||||
}
|
||||
// ici ajouter d'autres catégories d'évènements à suggérer
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue