2023-06-13 19:58:13 -04:00
|
|
|
% layout 'default';
|
2023-06-13 23:04:52 -04:00
|
|
|
% title $valid_id ? "Flag Thread #$thread_id" : '?';
|
2023-06-13 19:58:13 -04:00
|
|
|
<h2 class="page-title"><%= title %></h2>
|
2023-06-13 23:04:52 -04:00
|
|
|
<% if ($valid_id) { =%>
|
2023-06-13 19:58:13 -04:00
|
|
|
<form class="form-body">
|
|
|
|
<div class="form-field">
|
|
|
|
<% if (my $error = validation->error('captcha')) { =%>
|
|
|
|
<p class="field-with-error">Must be between <%= $error->[2] %>
|
|
|
|
and <%= $error->[3] %> characters.</p>
|
|
|
|
<% } =%>
|
|
|
|
<%= label_for captcha => "Enter the word 'flag' to confirm:" %>
|
|
|
|
<%= text_field captcha => id => 'captcha' %>
|
2023-06-14 18:49:30 -04:00
|
|
|
<%= asset 'app.js' %>
|
2023-06-13 19:58:13 -04:00
|
|
|
</div>
|
2023-06-13 20:22:07 -04:00
|
|
|
<button type="submit" class="form-button">Confirm</button>
|
2023-06-13 19:58:13 -04:00
|
|
|
</form>
|
|
|
|
<% } =%>
|