More validation fixes
This commit is contained in:
parent
697eebdc3a
commit
e800d9a600
|
@ -7,7 +7,8 @@
|
|||
<%= text_field author => session->{'author'}, (
|
||||
id => 'author',
|
||||
maxlength => 63,
|
||||
minlength => 1
|
||||
minlength => 1,
|
||||
required => undef
|
||||
) %>
|
||||
<% if (my $error = validation->error('author')) { =%>
|
||||
<p class="field-with-error">Invalid author: 1 to 63 characters please.</p>
|
||||
|
|
|
@ -7,7 +7,8 @@
|
|||
<%= text_field author => session->{'author'}, (
|
||||
id => 'author',
|
||||
maxlength => 63,
|
||||
minlength => 1
|
||||
minlength => 1,
|
||||
required => undef
|
||||
) %>
|
||||
<% if (my $error = validation->error('author')) { =%>
|
||||
<p class="field-with-error">Invalid author: 1 to 63 characters please.</p>
|
||||
|
@ -19,7 +20,8 @@
|
|||
id => 'title',
|
||||
maxlength => 127,
|
||||
minlength => 1,
|
||||
autofocus => undef
|
||||
autofocus => undef,
|
||||
required => undef
|
||||
) %>
|
||||
<% if (my $error = validation->error('title')) { =%>
|
||||
<p class="field-with-error">Invalid title: 1 to 127 characters please.</p>
|
||||
|
@ -31,7 +33,7 @@
|
|||
id => 'body',
|
||||
maxlength => 4000,
|
||||
minlength => 2,
|
||||
required => 'true',
|
||||
required => undef,
|
||||
rows => 6
|
||||
) %>
|
||||
<% if (my $error = validation->error('body')) { =%>
|
||||
|
|
Loading…
Reference in New Issue
Block a user