Commit 4040f3f9 authored by Vladislav Rykov's avatar Vladislav Rykov
Browse files

views validation added

parent 3609c6ca
......@@ -11,16 +11,16 @@
<form action="dev" method="post">
<div class="form-group">
<label>Name:</label><br>
<input type="text" class="form-control" id="devname" name="devname" required><br>
<input type="text" class="form-control" id="devname" maxlength="30" name="devname" required><br>
</div>
<div class="form-group">
<label>Description:</label><br>
<textarea id="devdesc" class="form-control" name="devdesc" cols="40" rows="5"></textarea>
<textarea id="devdesc" class="form-control" name="devdesc" maxlength="200" cols="40" rows="5"></textarea>
</div>
<br>
<div class="form-group">
<label>dev_id: {{ free_ids }}</label><br>
<input type="text" class="form-control" id="devid" name="devid" required><br>
<input type="number" size="3" min="1" max="255" class="form-control" id="devid" name="devid" required><br>
</div>
<br>
<div class="form-group">
......
......@@ -11,12 +11,12 @@
<form action="dev-conf" method="post">
<div class="form-group">
<label>Config ID:</label><br>
<input type="text" class="form-control" id="confid" name="confid" required></textarea>
<input type="number" size="3" min="0" max="255" class="form-control" id="confid" name="confid" required></textarea>
</div>
<br>
<div class="form-group">
<label>Argument:</label><br>
<textarea type="text" class="form-control" id="arg" name="arg" rows="2" reqiured></textarea>
<textarea type="text" maxlength="50" class="form-control" id="arg" name="arg" rows="2" reqiured></textarea>
</div>
<br><br>
<div class="form-group">
......
......@@ -13,7 +13,7 @@
<label>Username:</label><br>
<div class="input-group">
<div class="input-group-addon">@</div>
<input type="text" class="form-control" id="username" name="username" required>
<input type="text" maxlength="30" class="form-control" id="username" name="username" required>
</div>
</div>
<br>
......
......@@ -11,11 +11,11 @@
<form action="app" method="post">
<div class="form-group">
<label>Name:</label><br>
<input type="text" class="form-control" id="appname" name="appname" required><br>
<input type="text" maxlength="30" class="form-control" id="appname" name="appname" required><br>
</div>
<div class="form-group">
<label>Description:</label><br>
<textarea id="appdesc" class="form-control" name="appdesc" rows="5"></textarea>
<textarea id="appdesc" maxlength="200" class="form-control" name="appdesc" rows="5"></textarea>
</div>
<br>
<div class="form-group">
......
......@@ -13,7 +13,7 @@
<label>Username:</label><br>
<div class="input-group">
<div class="input-group-addon">@</div>
<input type="text" class="form-control" id="username" name="username" required><br>
<input type="text" maxlength="30" class="form-control" id="username" name="username" required><br>
</div>
</div>
<br>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment