mirror of
https://github.com/akuker/RASCSI.git
synced 2025-01-12 01:29:58 +00:00
Text field validation (#324)
This commit is contained in:
parent
34f5bc99b7
commit
9535a2e001
@ -139,7 +139,7 @@
|
||||
{% endfor %}
|
||||
</select>
|
||||
<label for="un">LUN</label>
|
||||
<input type="text" name="un" size="1" value="0" />
|
||||
<input type="number" name="un" size="2" value="0" min="0" max="31" />
|
||||
{% if file["detected_type"] != "UNDEFINED" %}
|
||||
<input type="hidden" name="type" value="{{file["detected_type"]}}">
|
||||
{{file["detected_type"]}}
|
||||
@ -196,8 +196,8 @@
|
||||
{% endfor %}
|
||||
</select>
|
||||
<label for="ip">Static IP (optional):</label>
|
||||
<input type="text" name="ip" size="15" placeholder="10.10.20.1" />/
|
||||
<input type="text" name="mask" size="2" placeholder="24">
|
||||
<input type="text" name="ip" size="15" placeholder="10.10.20.1" minlength="7" maxlength="15" pattern="^((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$" />
|
||||
<input type="number" name="mask" size="2" placeholder="24" min="16" max="30" />
|
||||
<label for="scsi_id">SCSI ID:</label>
|
||||
<select name="scsi_id">
|
||||
{% for id in scsi_ids %}
|
||||
@ -255,7 +255,7 @@
|
||||
<td style="border: none; vertical-align:top;">
|
||||
<form action="/files/download_image" method="post">
|
||||
<label for="url">URL:</label>
|
||||
<input type="text" placeholder="URL" name="url" />
|
||||
<input type="url" placeholder="URL" name="url" />
|
||||
<input type="submit" value="Download" />
|
||||
</form>
|
||||
</td>
|
||||
@ -283,7 +283,7 @@
|
||||
{% endfor %}
|
||||
</select>
|
||||
<label for="url">URL:</label>
|
||||
<input type="text" placeholder="URL" name="url" />
|
||||
<input type="url" placeholder="URL" name="url" />
|
||||
<input type="submit" value="Download and Mount ISO" />
|
||||
</form>
|
||||
</td>
|
||||
@ -316,7 +316,7 @@
|
||||
<option value="hdf">SASI Hard Disk image (use with X68000) [.hdf]</option>
|
||||
</select>
|
||||
<label for="size">Size(MB):</label>
|
||||
<input type="number" placeholder="Size(MB)" name="size"/>
|
||||
<input type="number" placeholder="Size(MB)" name="size" min="1" />
|
||||
<input type="submit" value="Create" />
|
||||
</form>
|
||||
</td>
|
||||
@ -349,7 +349,7 @@
|
||||
<td style="border: none; vertical-align:top;">
|
||||
<form action="/logs/show" method="post">
|
||||
<label for="lines">Log Lines:</label>
|
||||
<input type="text" placeholder="200" name="lines"/>
|
||||
<input type="number" placeholder="200" name="lines" min="1"/>
|
||||
<label for="scope">Scope:</label>
|
||||
<select name="scope">
|
||||
<option value="default">default</option>
|
||||
|
Loading…
x
Reference in New Issue
Block a user