2023-06-13 23:58:13 +00:00
|
|
|
% layout 'default';
|
2023-06-17 22:22:19 +00:00
|
|
|
% title $thread_id ? "Flag Thread #$thread_id" : '?';
|
2023-06-13 23:58:13 +00:00
|
|
|
<h2 class="page-title"><%= title %></h2>
|
2023-06-17 22:22:19 +00:00
|
|
|
<% if ($thread_id) { =%>
|
2023-06-13 23:58:13 +00: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' %>
|
|
|
|
</div>
|
2023-06-14 00:22:07 +00:00
|
|
|
<button type="submit" class="form-button">Confirm</button>
|
2023-06-17 22:22:17 +00:00
|
|
|
</fieldset>
|
2023-06-13 23:58:13 +00:00
|
|
|
</form>
|
|
|
|
<% } =%>
|