24 lines
No EOL
1.1 KiB
Text
24 lines
No EOL
1.1 KiB
Text
<form class='form' enctype='multipart/form-data' method='POST' action='<%= route %>'>
|
|
<h1 class='form-heading'>
|
|
<%= title %>
|
|
</h1>
|
|
<div class='form-message'></div>
|
|
<% if (!noCaptcha) { %>
|
|
<span class='form-key'>
|
|
<img class='captcha' src='/client/captcha?a'>
|
|
</span>
|
|
<input class='form-input' type='text' name='challenger' placeholder='Type the captcha'>
|
|
<% } %>
|
|
<% for (let elem of data) { %>
|
|
<span class='form-key'>
|
|
<%= elem.label %>
|
|
</span>
|
|
<% if (elem.type=='textarea' ) { %>
|
|
<textarea class='form-input' name='<%= elem.name %>'></textarea>
|
|
<% } else { %>
|
|
<input class='form-input' type='<%= elem.type %>' name='<%= elem.name %>'
|
|
value='<%= elem.hidden %>' <%=elem.hidden ? 'hidden ' : '' %>>
|
|
<% } %>
|
|
<% } %>
|
|
<input class='form-button' type='Submit' name='Submit'>
|
|
</form> |