2024-11-25 14:12:43 -05:00
|
|
|
<%- include('header.ejs') -%>
|
|
|
|
<form enctype='multipart/form-data' method='POST' action='<%= route %>'>
|
2024-11-25 14:12:43 -05:00
|
|
|
<h1>
|
|
|
|
<%= title %>
|
|
|
|
</h1>
|
2024-11-25 14:12:43 -05:00
|
|
|
<div class='form-message'></div>
|
|
|
|
<% for (let elem of data) { %>
|
|
|
|
<span class='form-entry'> <span class='form-key'>
|
|
|
|
<%= elem.label %>
|
2024-11-25 14:12:43 -05:00
|
|
|
</span>
|
|
|
|
<% if (elem.type=='textarea' ) { %>
|
|
|
|
<textarea name='<%= elem.name %>'></textarea>
|
|
|
|
<% } else { %>
|
|
|
|
<input type='<%= elem.type %>' name='<%= elem.name %>'>
|
|
|
|
</span>
|
2024-11-25 14:12:43 -05:00
|
|
|
<% } %>
|
2024-11-25 14:12:43 -05:00
|
|
|
<% } %>
|
|
|
|
<input type='Submit' name='Submit'>
|
2024-11-25 14:12:43 -05:00
|
|
|
</form>
|
|
|
|
<%- include('footer.ejs') -%>
|