tadd required attribute to input to signal required fields directly to the clie… | |
git clone git://src.adamsgaard.dk/vote | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 5adcb826f99b42970d38689b758d91812bf4483c | |
parent 3b3d8028f259aa8c06d9fda45c38de975b3df2d2 | |
Author: Hiltjo Posthuma <[email protected]> | |
Date: Sun, 4 Oct 2020 15:50:57 +0200 | |
add required attribute to input to signal required fields directly to the client | |
Signed-off-by: Anders Damsgaard <[email protected]> | |
Diffstat: | |
M vote.c | 6 +++--- | |
1 file changed, 3 insertions(+), 3 deletions(-) | |
--- | |
diff --git a/vote.c b/vote.c | |
t@@ -354,20 +354,20 @@ print_poll_create_form() | |
"<tr>\n" | |
" <td width=\"100%\" class=\"input\">\n" | |
" <input type=\"text\" name=\"poll\" " | |
- "placeholder=\"Name\" class=\"name\" />\n" | |
+ "placeholder=\"Name\" class=\"name\" required />\n" | |
" </td>\n" | |
"</tr>\n" | |
"<tr>\n" | |
" <td width=\"100%\" class=\"input\">\n" | |
" <textarea rows=\"2\" name=\"question\" " | |
"placeholder=\"Question (first line is header)\" " | |
- "class=\"question\"></textarea>\n" | |
+ "class=\"question\" required></textarea>\n" | |
" </td>\n" | |
"</tr>\n" | |
"<tr>\n" | |
" <td width=\"100%\" class=\"input\">\n" | |
" <textarea rows=\"5\" name=\"options\" " | |
- "placeholder=\"Options (one per line)\" class=\"options\"></te… | |
+ "placeholder=\"Options (one per line)\" class=\"options\" requ… | |
" </td>\n" | |
"</tr>\n" | |
"<tr>\n" |