2024-09-18 18:47:09 -04:00
|
|
|
<%- include('header.ejs') -%>
|
|
|
|
<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) { %>
|
|
|
|
<span class='form-entry'> <span class='form-key'>
|
|
|
|
<%= elem.label %>
|
2024-09-19 05:58:01 -04:00
|
|
|
</span>
|
|
|
|
<% if (elem.type=='textarea' ) { %>
|
|
|
|
<textarea name='<%= elem.name %>'></textarea>
|
|
|
|
<% } else { %>
|
|
|
|
<input type='<%= elem.type %>' name='<%= elem.name %>'>
|
|
|
|
</span>
|
2024-09-18 18:47:09 -04:00
|
|
|
<% } %>
|
2024-09-19 05:58:01 -04:00
|
|
|
<% } %>
|
|
|
|
<input type='Submit' name='Submit'>
|
2024-09-18 18:47:09 -04:00
|
|
|
</form>
|
|
|
|
<%- include('footer.ejs') -%>
|