2021-12-05 07:52:31 +00:00
|
|
|
% layout 'default';
|
2021-12-19 22:43:58 +00:00
|
|
|
% title 'Sign';
|
2021-12-12 00:01:43 +00:00
|
|
|
<h2>Sign the Guestbook</h2>
|
2021-12-05 07:52:31 +00:00
|
|
|
<form method="post">
|
2021-12-31 22:58:55 +00:00
|
|
|
<div class="name field">
|
|
|
|
<%= label_for name => 'Name' %>
|
|
|
|
<%= input_tag 'name' %>
|
|
|
|
</div>
|
|
|
|
<div class="url field">
|
|
|
|
<%= label_for url => 'Homepage URL (doesn\'t work yet 😩😭)' %>
|
|
|
|
<%= input_tag 'url' %>
|
|
|
|
</div>
|
|
|
|
<div class="message field">
|
|
|
|
<%= label_for message => 'Message' %>
|
|
|
|
<%= text_area 'message', rows => 6 %>
|
|
|
|
</div>
|
|
|
|
<h3>SwaggCAPTCHA™</h3>
|
|
|
|
<div class="captcha field">
|
2022-01-01 03:32:39 +00:00
|
|
|
<% for my $answer (@$answers) { =%>
|
|
|
|
<%= radio_button answer => $answer %>
|
|
|
|
<%= label_for answer =>
|
|
|
|
$answer ? $right_answer_label : pop @$wrong_answer_labels %>
|
|
|
|
<% } =%>
|
2021-12-31 22:58:55 +00:00
|
|
|
</div>
|
|
|
|
<%= submit_button 'Sign it', class => 'win95button' %>
|
2021-12-05 07:52:31 +00:00
|
|
|
</form>
|