mirror of
https://github.com/sigmasternchen/Diary
synced 2025-03-15 15:18:57 +00:00
Added "required" to some form fields
This commit is contained in:
parent
96d949a1c2
commit
c65f230586
3 changed files with 4 additions and 4 deletions
|
@ -19,7 +19,7 @@
|
||||||
<div id="contentContainer">
|
<div id="contentContainer">
|
||||||
<form action="{{ url_for('addentry',name=diary.name) }}" method="POST">
|
<form action="{{ url_for('addentry',name=diary.name) }}" method="POST">
|
||||||
Add new entry:<br />
|
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">
|
<input type="submit">
|
||||||
</form>
|
</form>
|
||||||
<div id="listing">
|
<div id="listing">
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
<form method="post" action="{{ url_for('newdiary')}}">
|
<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>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
|
|
|
@ -14,8 +14,8 @@
|
||||||
</div>
|
</div>
|
||||||
<div id="contentContainer">
|
<div id="contentContainer">
|
||||||
<form method="POST">
|
<form method="POST">
|
||||||
<input type="text" name="user" placeholder="Username"/><br/>
|
<input type="text" name="user" placeholder="Username" required/><br/>
|
||||||
<input type="password" name="pass" placeholder="Password"/><br/>
|
<input type="password" name="pass" placeholder="Password" required/><br/>
|
||||||
<input type="submit" value="Login">
|
<input type="submit" value="Login">
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue