bigly-chat/views/form_bare.ejs

24 lines
1.1 KiB
Text
Raw Normal View History

2024-10-27 00:26:02 -04:00
<form class='form' enctype='multipart/form-data' method='POST' action='<%= route %>'>
<h1 class='form-heading'>
<%= title %>
</h1>
<div class='form-message'></div>
2024-10-30 19:59:28 -04:00
<% if (!noCaptcha) { %>
2024-10-27 00:26:02 -04:00
<span class='form-key'>
2024-10-30 19:59:28 -04:00
<img class='captcha' src='/client/captcha'>
2024-10-27 00:26:02 -04:00
</span>
2024-10-30 19:59:28 -04:00
<input class='form-input' type='text' name='challenger' value='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'>
2024-10-27 00:26:02 -04:00
</form>