From c5e7551dc2da9798ff51d91aa238098f5ac4605f Mon Sep 17 00:00:00 2001
From: xengineering <me@xengineering.eu>
Date: Mon, 22 Apr 2024 21:51:21 +0200
Subject: view: Enforce recipe titles

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.
---
 view/html/recipe-edit.html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'view/html/recipe-edit.html')

diff --git a/view/html/recipe-edit.html b/view/html/recipe-edit.html
index b5fea1d..3925293 100644
--- a/view/html/recipe-edit.html
+++ b/view/html/recipe-edit.html
@@ -13,7 +13,7 @@
 
 				<p>
 					<label>Title</label>
-					<input type="text" name="title" value="{{.Title}}">
+					<input type="text" name="title" value="{{.Title}}" required>
 				</p>
 
 				<p>
-- 
cgit v1.2.3-70-g09d2