Closed peterdesmet closed 2 weeks ago
@stevegerrits here's the suggested layout for the observation details:
Groot nest
Waarnemingen.be
Goedgekeurd op basis van foto
Gelieve een foto toe te voegen zodat we de waarneming kunnen valideren. Zonder lukt niet.
Peter Desmet
peter.desmet@inbo.be
0485 123456
Aangemaakt op 2023-05-22T10:00:00Z door Peter, gewijzigd op 2023-05-22T10:00:00Z door Steven.
d-none
style="display: none;"
observation-datetime
reservation
reserve-btn
reserved-by
cancel-reservation-btn
edit
readonly
<input>
form-control
form-control-plaintext
disabled
<select>
<input type="checkbox">
sections
nest
eradication
eradication-header
source
wn-id
contact
admin
Things I defined that should be done differently:
<body>
id
{{ ... }}
Ping me if you have questions.
what would "wijzigingen annuleren" do? Reset all original information?
It would not save the changes the user has made before saving. Would have the same result as closing modal (without save) or closing browser tab (without save).
is it needed then? As it's the same as closing the details screen?
No, probably not.
@stevegerrits here's the suggested layout for the observation details:
HTML
```html22 mei 2023, Sint-Pieters-Leeuw
Groot nest
Waarnemingen.be
Goedgekeurd op basis van foto
Gelieve een foto toe te voegen zodat we de waarneming kunnen valideren. Zonder lukt niet.
Peter Desmet
peter.desmet@inbo.be
0485 123456
Aangemaakt op 2023-05-22T10:00:00Z door Peter, gewijzigd op 2023-05-22T10:00:00Z door Steven.
```Notes
d-none
class (notstyle="display: none;"
) to hide elementsobservation-datetime
should be shown as a human readable date (in Dutch)reservation
sectionreserve-btn
if user can reservereserved-by
and remaining days)cancel-reservation-btn
if user is thereserved-by
or adminedit
sectionreadonly
to all<input>
s and change class fromform-control
toform-control-plaintext
disabled
to all<select>
and<input type="checkbox">
. Not sure how textareas are handleddisabled
unless user has edited fields (I think you can detect this with JS)sections
section uses Bootstrap accordion to collapse elements. Thenest
accordion-item is shown by defaulteradication
section has a badge in theeradication-header
showing the eradication status.nest
section uses a Bootstrap carousel to show the images.source
is waarnemingen.be, create a URL with thewn-id
to point to the observation. Otherwise, just show the source name.contact
section is only shown if the user has rightsadmin
section is only shown for the admin userThings I defined that should be done differently:
<body>
was just to get a smaller panelid
to indicate what field is shown. Should be translated to{{ ... }}
in Vue component.Ping me if you have questions.
what would "wijzigingen annuleren" do? Reset all original information?
It would not save the changes the user has made before saving. Would have the same result as closing modal (without save) or closing browser tab (without save).
is it needed then? As it's the same as closing the details screen?
No, probably not.