From 31796289344a47c9c0d27a0886fa294cb5f9d0e3 Mon Sep 17 00:00:00 2001 From: swag Date: Fri, 7 Jan 2022 22:43:19 -0500 Subject: [PATCH] Some front-end input validation to hint the user before I do the fun back-end part --- templates/sign.html.ep | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/templates/sign.html.ep b/templates/sign.html.ep index 3bdd1ad..09f7f22 100644 --- a/templates/sign.html.ep +++ b/templates/sign.html.ep @@ -4,15 +4,20 @@
<%= label_for name => 'Name' %> - <%= input_tag 'name' %> + <%= input_tag name =>'Anonymous', maxlength => 63, minlength => 1 %>
<%= label_for url => 'Homepage URL' %> - <%= input_tag 'url' %> + <%= input_tag 'url', maxlength => 255 %>
<%= label_for message => 'Message' %> - <%= text_area 'message', rows => 6 %> +

SwaggCAPTCHAâ„¢