ForumExperiment/views/partials/create_thread.ejs
2023-04-13 15:21:17 -04:00

13 lines
420 B
Plaintext

<%
if(locals.session.logged_in){
%>
<form id="submitForm" action="/newthread" method="post">
<label for="threadName">Name:</label>
<input type="text" name="threadName" id="">
<label for="threadDesc">Description</label>
<textarea name="threadDesc" id="" cols="30" rows="10"></textarea>
<button type="submit">Create New Thread</button>
</form>
<% } else {; %>
<p>You must login to create a thread.</p>
<% } %>