make fields required in html
This commit is contained in:
parent
5c1113ff39
commit
e9280b3b12
|
@ -22,9 +22,9 @@
|
|||
{% endfor %}
|
||||
{% endif %}
|
||||
{% endwith %}
|
||||
<input name="username" type="text" placeholder="Username">
|
||||
<input name="username" type="text" placeholder="Username" required>
|
||||
<br><br>
|
||||
<input name="password" type="password" placeholder="Password">
|
||||
<input name="password" type="password" placeholder="Password" required>
|
||||
<br>
|
||||
<br>
|
||||
<button type="submit">Log in</button>
|
||||
|
|
|
@ -35,10 +35,10 @@
|
|||
<form method="post" enctype="multipart/form-data">
|
||||
<h2>Post</h2>
|
||||
<p>Image</p>
|
||||
<input type="file" name="file">
|
||||
<input type="file" name="file" required>
|
||||
<br>
|
||||
<p>Text</p>
|
||||
<input name="title" type="text" placeholder="Text">
|
||||
<input name="title" type="text" placeholder="Text" required>
|
||||
<br><br>
|
||||
<input class="submit" type="submit" value="Post">
|
||||
</form>
|
||||
|
|
|
@ -23,9 +23,9 @@
|
|||
{% endfor %}
|
||||
{% endif %}
|
||||
{% endwith %}
|
||||
<input name="username" type="text" placeholder="Username">
|
||||
<input name="username" type="text" placeholder="Username" required>
|
||||
<br><br>
|
||||
<input name="password" type="password" placeholder="Password">
|
||||
<input name="password" type="password" placeholder="Password" required>
|
||||
<br><br>
|
||||
<button type="submit">Sign up</button>
|
||||
<br><br>
|
||||
|
|
Reference in New Issue