bigly-chat/views/form.ejs

19 lines
786 B
Text
Raw Normal View History

2024-09-18 18:47:09 -04:00
<%- include('header.ejs') -%>
2024-10-19 21:28:52 -04:00
<form class='form' enctype='multipart/form-data' method='POST' action='<%= route %>'>
2024-09-19 05:04:03 -04:00
<h1>
<%= title %>
</h1>
2024-09-18 18:47:09 -04:00
<div class='form-message'></div>
<% for (let elem of data) { %>
2024-10-19 21:28:52 -04:00
<span class='form-key'>
<%= elem.label %>
2024-09-19 05:58:01 -04:00
</span>
2024-10-19 21:28:52 -04:00
<% if (elem.type=='textarea' ) { %>
<textarea class='form-input' name='<%= elem.name %>'></textarea>
<% } else { %>
<input class='form-input' type='<%= elem.type %>' name='<%= elem.name %>'>
<% } %>
<% } %>
<input class='form-input' type='Submit' name='Submit'>
2024-09-18 18:47:09 -04:00
</form>
<%- include('footer.ejs') -%>