guestbook-ng/templates/sign.html.ep

32 lines
900 B
Plaintext
Raw Normal View History

% layout 'default';
2021-12-19 17:43:58 -05:00
% title 'Sign';
2021-12-11 19:01:43 -05:00
<h2>Sign the Guestbook</h2>
<form method="post">
<div class="name field">
<%= label_for name => 'Name' %>
<%= input_tag name =>'Anonymous', maxlength => 63, minlength => 1 %>
</div>
<div class="url field">
2022-01-01 21:39:04 -05:00
<%= label_for url => 'Homepage URL' %>
<%= input_tag 'url', maxlength => 255 %>
</div>
<div class="message field">
<%= label_for message => 'Message' %>
<textarea
name="message"
maxlength="2000"
minlength="2"
required="true"
rows="6"></textarea>
</div>
<h3>SwaggCAPTCHA™</h3>
<div class="captcha field">
2021-12-31 22:32:39 -05:00
<% for my $answer (@$answers) { =%>
<%= radio_button answer => $answer %>
<%= label_for answer =>
$answer ? $right_answer_label : pop @$wrong_answer_labels %>
<% } =%>
</div>
<%= submit_button 'Sign it', class => 'win95button' %>
</form>