From 7d7f39190fe5d38d2f92d71da797806b3d558b43 Mon Sep 17 00:00:00 2001 From: Thomas Citharel <tcit@tcit.fr> Date: Thu, 29 Mar 2018 11:03:17 +0200 Subject: [PATCH] Add MaxLength attribute on comment name Signed-off-by: Thomas Citharel <tcit@tcit.fr> --- tpl/part/comments.tpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tpl/part/comments.tpl b/tpl/part/comments.tpl index 1eb8ee45..0002b505 100644 --- a/tpl/part/comments.tpl +++ b/tpl/part/comments.tpl @@ -16,7 +16,7 @@ <fieldset id="add-comment"><legend>{__('Comments', 'Add a comment to the poll')}</legend> <div class="form-group"> <label for="comment_name" class="control-label">{__('Generic', 'Your name')}</label> - <input type="text" name="name" id="comment_name" class="form-control" /> + <input type="text" name="name" id="comment_name" class="form-control" maxlength="60" /> </div> <div class="form-group"> <label for="comment" class="control-label">{__('Comments', 'Your comment')}</label> @@ -30,4 +30,4 @@ <div class="clearfix"></div> </div> </form> -{/if} \ No newline at end of file +{/if} -- GitLab