19 lines
No EOL
786 B
Text
19 lines
No EOL
786 B
Text
<%- include('header.ejs') -%>
|
|
<form class='form' enctype='multipart/form-data' method='POST' action='<%= route %>'>
|
|
<h1>
|
|
<%= title %>
|
|
</h1>
|
|
<div class='form-message'></div>
|
|
<% 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 %>'>
|
|
<% } %>
|
|
<% } %>
|
|
<input class='form-input' type='Submit' name='Submit'>
|
|
</form>
|
|
<%- include('footer.ejs') -%> |