Add additional validation measures and create triggers for last modified columns

This commit is contained in:
Thilo Hohlt
2024-08-05 16:03:07 +02:00
parent fa500cf376
commit 62db2776a7
6 changed files with 127 additions and 28 deletions

View File

@@ -37,7 +37,7 @@
</label>
<label>
Title:
<input type="text" name="title" />
<input type="text" name="title" maxlength="50" pattern="\S(.*\S)?" required />
</label>
<button type="submit">Submit</button>
@@ -112,7 +112,14 @@
<input type="hidden" name="id" value={id} />
<label>
Title
<input type="text" name="title" value={title} />
<input
type="text"
name="title"
value={title}
maxlength="50"
pattern="\S(.*\S)?"
required
/>
</label>
<button type="submit">Submit</button>