overzicht instrument toevoegen knop 17 (JS) - #83
Open
JulianDavelaar wants to merge 5 commits into
Open
Conversation
ThomasSeisveld
approved these changes
May 26, 2026
roxyfokker
requested changes
May 26, 2026
roxyfokker
left a comment
Owner
There was a problem hiding this comment.
Lekker bezig!
Dit is super:
- Status automatisch op 'Beschikbaar' zetten is top!
- Slug generatie is slim opgezet
- Formulier heeft overal
requiredattributen
Wat moet worden opgelost voor merge
- Route — Cannot GET /instrumenten/nieuw
- Actielog ontbreekt
- Label/input koppeling kapot
- Niet-gesloten div
- Error handling ontbreekt
…ment-toevoegen-knop(JS)
Collaborator
Author
|
Alle aanpassingen heb ik gemaakt in 'overzicht knop toevoegen 17 (styling) excuus. |
JulianDavelaar
commented
May 28, 2026
JulianDavelaar
left a comment
Collaborator
Author
There was a problem hiding this comment.
Update commit:
- Slug-key generatie hersteld (was per ongeluk verloren bij merge)
- POST naar Directus voor instrument aanmaken
- POST naar log toegevoegd
- Nieuw veld 'Toegevoegd door'
- Type-veld als , opties komen uit array in GET route Dubbele GET route opgeruimd CSS aangepast: select krijgt dezelfde styling als de inputs
… routes hier ook last van
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Wat is er veranderd?
Formulier voor instrument toevoegen op /instrumenten/nieuw met POST route. Velden: naam, serienummer, type, merk, eigendom van, allemaal verplichte velden. Server-side wordt een unieke key (slug) gegenereerd op basis van de naam, met automatisch nummer-suffix als de slug al bestaat. Status wordt auto-set op "Beschikbaar". Na succesvolle submit redirect naar /instrumenten.
Bij welke issue hoort deze pull request?
#17 wordt pas gesloten als styling ook aanwezig is
Issue volledig opgelost — formulier werkt, validatie via HTML5, instrument verschijnt in overzicht en detailpagina is bereikbaar via gegenereerde key.
Hoe wil je dat dit gereviewd wordt?
Eventuele live link, screenshot of bronnen:
Bronnen
RAPPE Principles
Hoe heb je deze site getest?
test-gitaar-01, detailpagina opent met de juiste data