Some front-end input validation to hint the user before I do the fun back-end part
This commit is contained in:
parent
a29096fc54
commit
3179628934
|
@ -4,15 +4,20 @@
|
||||||
<form method="post">
|
<form method="post">
|
||||||
<div class="name field">
|
<div class="name field">
|
||||||
<%= label_for name => 'Name' %>
|
<%= label_for name => 'Name' %>
|
||||||
<%= input_tag 'name' %>
|
<%= input_tag name =>'Anonymous', maxlength => 63, minlength => 1 %>
|
||||||
</div>
|
</div>
|
||||||
<div class="url field">
|
<div class="url field">
|
||||||
<%= label_for url => 'Homepage URL' %>
|
<%= label_for url => 'Homepage URL' %>
|
||||||
<%= input_tag 'url' %>
|
<%= input_tag 'url', maxlength => 255 %>
|
||||||
</div>
|
</div>
|
||||||
<div class="message field">
|
<div class="message field">
|
||||||
<%= label_for message => 'Message' %>
|
<%= label_for message => 'Message' %>
|
||||||
<%= text_area 'message', rows => 6 %>
|
<textarea
|
||||||
|
name="message"
|
||||||
|
maxlength="2000"
|
||||||
|
minlength="2"
|
||||||
|
required="true"
|
||||||
|
rows="6"></textarea>
|
||||||
</div>
|
</div>
|
||||||
<h3>SwaggCAPTCHA™</h3>
|
<h3>SwaggCAPTCHA™</h3>
|
||||||
<div class="captcha field">
|
<div class="captcha field">
|
||||||
|
|
Loading…
Reference in New Issue
Block a user