ForumExperiment/views/partials/create_thread.ejs

13 lines
420 B
Plaintext
Raw Normal View History

2023-04-13 19:21:17 +00:00
<%
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>
<% } %>