guestbook-ng/templates/sign.html.ep

27 lines
771 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' %>
</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">
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>