prevents numbers iin input fields to go below 0

This commit is contained in:
Naumann 2020-06-08 12:34:02 +02:00
parent c505f45f03
commit 20e7cc6a23
10 changed files with 8 additions and 18 deletions

View file

@ -20,7 +20,7 @@
<input type="text" name="Country" class="input" placeholder="Herkunft"> <input type="text" name="Country" class="input" placeholder="Herkunft">
<input type="url" name="Link" class="input" placeholder="Link"> <input type="url" name="Link" class="input" placeholder="Link">
<input type="text" name="Language" class="input" placeholder="Sprache"> <input type="text" name="Language" class="input" placeholder="Sprache">
<input type="number" name="Pages" class="input" placeholder="Seiten"> <input type="number" name="Pages" class="input" placeholder="Seiten" min="0">
<input type="date" name="Year" class="input" placeholder="Erscheinungsjahr"> <!-- Nur YYYY--> <!--funktioniert nur über ein Skript, alternativ type="number" mit min und max restrictions--> <input type="date" name="Year" class="input" placeholder="Erscheinungsjahr"> <!-- Nur YYYY--> <!--funktioniert nur über ein Skript, alternativ type="number" mit min und max restrictions-->
<select class="input" name="Category"> <select class="input" name="Category">
<option>Book</option> <option>Book</option>
@ -29,7 +29,7 @@
<option>EPaper</option> <option>EPaper</option>
</select> </select>
<input type="url" name="ImageLink" class="input" placeholder="Bild"> <input type="url" name="ImageLink" class="input" placeholder="Bild">
<input type="number" name="LendTime" class="input" placeholder="Verteihdauer"> <input type="number" name="LendTime" class="input" placeholder="Verteihdauer" min="0">
<select class="input" name="Category"> <select class="input" name="Category">
<option>Physical</option> <option>Physical</option>
<option>Virtual</option> <option>Virtual</option>

View file

@ -20,7 +20,7 @@
<input type="text" name="Country" class="input" placeholder="Herkunft"> <input type="text" name="Country" class="input" placeholder="Herkunft">
<input type="url" name="Link" class="input" placeholder="Link"> <input type="url" name="Link" class="input" placeholder="Link">
<input type="text" name="Language" class="input" placeholder="Sprache"> <input type="text" name="Language" class="input" placeholder="Sprache">
<input type="number" name="Pages" class="input" placeholder="Seiten"> <input type="number" name="Pages" class="input" placeholder="Seiten" min="0">
<input type="date" name="Year" class="input" placeholder="Erscheinungsjahr"> <!-- Nur YYYY--> <!--funktioniert nur über ein Skript, alternativ type="number" mit min und max restrictions--> <input type="date" name="Year" class="input" placeholder="Erscheinungsjahr"> <!-- Nur YYYY--> <!--funktioniert nur über ein Skript, alternativ type="number" mit min und max restrictions-->
<select class="input" name="Category"> <select class="input" name="Category">
<option>Book</option> <option>Book</option>

View file

@ -15,7 +15,7 @@
<div class="Eingabe"> <div class="Eingabe">
<h2>Eingabe</h2> <h2>Eingabe</h2>
<form action="catalogue_search.php"> <form action="catalogue_search.php">
<input type="number" name="ItemId" class="input" placeholder="ItemId"> <input type="number" name="ItemId" class="input" placeholder="ItemId" min="0">
<input type="date" name="teturnDate" class="input" placeholder="Rückgabedatum"> <input type="date" name="teturnDate" class="input" placeholder="Rückgabedatum">
<input type="text" name="customer" class="input" placeholder="Kunde"> <input type="text" name="customer" class="input" placeholder="Kunde">
<label class="input"><input type="checkbox" name="returned" value="true" >zurückgegeben</label></br> <label class="input"><input type="checkbox" name="returned" value="true" >zurückgegeben</label></br>

View file

@ -15,7 +15,7 @@
<div class="Eingabe"> <div class="Eingabe">
<h2>Eingabe</h2> <h2>Eingabe</h2>
<form action="inventar_search.php"> <form action="inventar_search.php">
<input type="number" name="BookId" class="input" placeholder="Geben sie die Id des Exemplars ein welches Sie entfernen wollen"> <input type="number" name="BookId" class="input" placeholder="Geben sie die Id des Exemplars ein welches Sie entfernen wollen" min="0">
<input type="submit" name="go" id="go"> <input type="submit" name="go" id="go">
</form> </form>
</div> </div>

View file

@ -14,7 +14,7 @@
<div class="Eingabe"> <div class="Eingabe">
<h2>Eingabe</h2> <h2>Eingabe</h2>
<form action="lend_search.php"> <form action="lend_search.php">
<input type="number" name="VerleihId" class="input" placeholder="Geben sie die gesuchte verleihId an" min= "0"> <input type="number" name="VerleihId" class="input" placeholder="Geben sie die gesuchte VerleihId an" min= "0">
<input type="submit" name="go" id="go"> <input type="submit" name="go" id="go">
</form> </form>
</div> </div>

View file

@ -1 +0,0 @@
/* No CSS *//*# sourceMappingURL=menu.css.map */

View file

@ -1,9 +0,0 @@
{
"version": 3,
"mappings": "",
"sources": [
"menu.scss"
],
"names": [],
"file": "menu.css"
}

View file

View file

@ -51,7 +51,7 @@ body {
-webkit-box-align: center; -webkit-box-align: center;
-ms-flex-align: center; -ms-flex-align: center;
align-items: center; align-items: center;
width: 100px; width: 150px;
height: 30px; height: 30px;
} }

View file

@ -39,7 +39,7 @@ body
margin-left: 40%; margin-left: 40%;
margin-top: 5%; margin-top: 5%;
align-items: center; align-items: center;
width: 100px; width: 150px;
height: 30px; height: 30px;
} }
} }