summaryrefslogtreecommitdiff
path: root/view/html/recipe-edit.html
AgeCommit message (Collapse)Author
2024-05-09Remove default recipe namexengineering
To avoid not clickable recipes on the /recipes page a default name used to be inserted on recipe creation. This was not a proper fix for the problem and also was annoying that the user first had to remove the default recipe name. This commit removes this default name.
2024-05-09view: Enforce recipe titlesxengineering
In addition to the enforcement of titles in the model package the HTML form field for the title is set to 'required' to give the user feedback via the browser that a title is required.
2024-04-04view: Add recipe step addingxengineering
2024-03-24view: Add step removalxengineering
2024-03-24view: Add editing of existing recipe stepsxengineering
2024-03-24view: Fix position of header tagxengineering
It should be inside the body tag but used to be before it.
2024-03-10view: Remove nested anchor and button elementsxengineering
There is the need to add buttons to the recipe server which act like a anchor tag (link). This can be achieved by nesting anchor and button tag. The problem is that if the user cycles through the elements of the page with the 'tab' key such a button is handled as two overlapping elements instead of one. This commit solves the issue by using buttons with the attribute `onclick="window.location.href='<url>';`.
2024-03-06view: Use textarea for recipe notesxengineering
They are intended to use multiple lines. This is easier to edit in a textarea element rather than in an input element.
2024-03-03view: Add template 'nav'xengineering
The <nav> section is the same on every page. This new template reduces code duplication.
2024-03-03Add ID to URL in recipe updatesxengineering
This makes the update URL more consistent with the other ones. A check ensures consistency of the URL and JSON ID values.
2024-03-03view: Send forms as JSON with JavaScriptxengineering
While forms can be send without JavaScript this new approach has the benefit that the whole data is send as one JSON. This JSON format can also be used for an API or testing.
2024-02-15view: Add doctype to HTMLxengineering
2024-02-15view: Reference /recipes with home buttonxengineering
The index page / provides a redirect to /recipes but this is inefficient since two HTTP requests are required.
2024-02-15view: Add edit view for model.Recipe typexengineering