cleanup
This commit is contained in:
parent
cd0380f697
commit
3dea44dacf
12 changed files with 170 additions and 174 deletions
18
views/form_bare.ejs
Normal file
18
views/form_bare.ejs
Normal file
|
@ -0,0 +1,18 @@
|
|||
<form class='form' enctype='multipart/form-data' method='POST' action='<%= route %>'>
|
||||
<h1 class='form-heading'>
|
||||
<%= 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 %>' value='<%= elem.hidden %>'
|
||||
<%=elem.hidden ? 'hidden ' : '' %>>
|
||||
<% } %>
|
||||
<% } %>
|
||||
<input class='form-button' type='Submit' name='Submit'>
|
||||
</form>
|
Loading…
Add table
Add a link
Reference in a new issue