Add field requirements to form
This commit is contained in:
parent
bb672c05b7
commit
e66b4e8de5
1 changed files with 2 additions and 2 deletions
|
@ -115,8 +115,8 @@
|
|||
ret += `<a href="/post/${postid}">[Nevermind]</a>`
|
||||
ret +=
|
||||
`</div><post><div class="content"><form><label>` +
|
||||
`<h3><input type="username" name="name" value="Anonymous">: <input type="text" name="title" placeholder="Title"></h3>` +
|
||||
`<textarea name="content" placeholder="So basically, ..."></textarea><br/><br/><button type="submit">Submit</button>` +
|
||||
`<h3><input type="username" name="name" value="Anonymous" required>: <input type="text" name="title" placeholder="Title" required></h3>` +
|
||||
`<textarea name="content" placeholder="So basically, ..." required></textarea><br/><br/><button type="submit">Submit</button>` +
|
||||
`</label></form></div></post>`
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Add table
Reference in a new issue