Added "required" to some form fields

This commit is contained in:
benaryorg 2014-05-30 22:11:55 +02:00
parent 96d949a1c2
commit c65f230586
3 changed files with 4 additions and 4 deletions

View file

@ -19,7 +19,7 @@
<div id="contentContainer">
<form action="{{ url_for('addentry',name=diary.name) }}" method="POST">
Add new entry:<br />
<textarea name="text" style="width:99%;height:150px;"></textarea><br/>
<textarea name="text" style="width:99%;height:150px;" required></textarea><br/>
<input type="submit">
</form>
<div id="listing">

View file

@ -29,7 +29,7 @@
{% endfor %}
</div>
<form method="post" action="{{ url_for('newdiary')}}">
You can add a new diary, if you want: <input type="text" name="name" placeholder="name of diary"><input type="submit">
You can add a new diary, if you want: <input type="text" name="name" placeholder="name of diary" required><input type="submit">
</form>
</div>
<div>

View file

@ -14,8 +14,8 @@
</div>
<div id="contentContainer">
<form method="POST">
<input type="text" name="user" placeholder="Username"/><br/>
<input type="password" name="pass" placeholder="Password"/><br/>
<input type="text" name="user" placeholder="Username" required/><br/>
<input type="password" name="pass" placeholder="Password" required/><br/>
<input type="submit" value="Login">
</form>
</div>