mirror of
https://github.com/akuker/RASCSI.git
synced 2024-09-12 09:55:00 +00:00
More form validation (#332)
* Add required properties to more text fields * Tweak input field
This commit is contained in:
parent
8fb8a42825
commit
641b176f93
@ -37,7 +37,7 @@
|
||||
<input type="hidden" name="size" value="{{hd.size}}">
|
||||
<input type="hidden" name="file_type" value="{{hd.file_type}}">
|
||||
<label for="file_name">Save as:</label>
|
||||
<input type="text" name="file_name" value="{{hd.secure_name}}" />.{{hd.file_type}}
|
||||
<input type="text" name="file_name" value="{{hd.secure_name}}" required />.{{hd.file_type}}
|
||||
<input type="submit" value="Create" />
|
||||
</form>
|
||||
</td>
|
||||
@ -127,7 +127,7 @@
|
||||
<input type="hidden" name="size" value="{{rm.size}}">
|
||||
<input type="hidden" name="file_type" value="{{rm.file_type}}">
|
||||
<label for="file_name">Save as:</label>
|
||||
<input type="text" name="file_name" value="{{rm.secure_name}}" />.{{rm.file_type}}
|
||||
<input type="text" name="file_name" value="{{rm.secure_name}}" required />.{{rm.file_type}}
|
||||
<input type="submit" value="Create" />
|
||||
</form>
|
||||
</td>
|
||||
|
@ -261,7 +261,7 @@
|
||||
<td style="border: none; vertical-align:top;">
|
||||
<form action="/files/download_image" method="post">
|
||||
<label for="url">URL:</label>
|
||||
<input type="url" placeholder="URL" name="url" />
|
||||
<input type="url" placeholder="URL" name="url" required />
|
||||
<input type="submit" value="Download" />
|
||||
</form>
|
||||
</td>
|
||||
@ -289,7 +289,7 @@
|
||||
{% endfor %}
|
||||
</select>
|
||||
<label for="url">URL:</label>
|
||||
<input type="url" placeholder="URL" name="url" />
|
||||
<input type="url" placeholder="URL" name="url" required />
|
||||
<input type="submit" value="Download and Mount ISO" />
|
||||
</form>
|
||||
</td>
|
||||
@ -312,7 +312,7 @@
|
||||
<td style="border: none; vertical-align:top;">
|
||||
<form action="/files/create" method="post">
|
||||
<label for="file_name">File Name:</label>
|
||||
<input type="text" placeholder="File name" name="file_name"/>
|
||||
<input type="text" placeholder="File name" name="file_name" required />
|
||||
<label for="type">Type:</label>
|
||||
<select name="type">
|
||||
<option value="hds">SCSI Hard Disk image (Generic) [.hds]</option>
|
||||
@ -321,8 +321,8 @@
|
||||
<option value="hdr">SCSI Removable Media Disk image (Generic) [.hdr]</option>
|
||||
<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" min="1" />
|
||||
<label for="size">Size:</label>
|
||||
<input type="number" placeholder="MB" name="size" min="1" size="6" required />
|
||||
<input type="submit" value="Create" />
|
||||
</form>
|
||||
</td>
|
||||
@ -355,7 +355,7 @@
|
||||
<td style="border: none; vertical-align:top;">
|
||||
<form action="/logs/show" method="post">
|
||||
<label for="lines">Log Lines:</label>
|
||||
<input type="number" placeholder="200" name="lines" min="1"/>
|
||||
<input type="number" placeholder="200" name="lines" min="1" size="4" />
|
||||
<label for="scope">Scope:</label>
|
||||
<select name="scope">
|
||||
<option value="default">default</option>
|
||||
|
Loading…
Reference in New Issue
Block a user