guestbook-ng/templates/sign.html.ep

28 lines
901 B
Plaintext
Raw Normal View History

% 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>
<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">
<%= radio_button answer => 0 %>
<%= label_for answer => 'I don\'t want to sign (wrong answer)' %>
<%= radio_button answer => 'false' %>
<%= label_for answer => 'I\'m ready to sign (choose this one)' %>
<%= radio_button answer => undef %>
<%= label_for answer => 'This is spam/I\'m a bot, do not sign' %>
</div>
<%= submit_button 'Sign it', class => 'win95button' %>
</form>