mirror of
https://github.com/akuker/RASCSI.git
synced 2024-09-12 09:55:00 +00:00
Iterate on webapp config UX (#371)
* Iterate on webapp config ux * Labels were only adding clutter * Add confirmation modals
This commit is contained in:
parent
d334669722
commit
960cc91168
@ -12,23 +12,24 @@
|
|||||||
|
|
||||||
<p>
|
<p>
|
||||||
<form action="/config/load" method="post">
|
<form action="/config/load" method="post">
|
||||||
<select name="name" required>
|
<select name="name" width="14" required>
|
||||||
|
{% if config_files %}
|
||||||
{% for config in config_files %}
|
{% for config in config_files %}
|
||||||
<option value="{{config}}">{{config.replace(".json", '')}}</option>
|
<option value="{{config}}">{{config.replace(".json", '')}}</option>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
{% else %}
|
||||||
|
<option disabled>No saved configs</option>
|
||||||
|
{% endif %}
|
||||||
</select>
|
</select>
|
||||||
<input type="submit" name="load" value="Load" />
|
<input type="submit" name="load" value="Load" onclick="return confirm('Detach all current device and Load config?')" />
|
||||||
<input type="submit" name="delete" value="Delete" />
|
<input type="submit" name="delete" value="Delete" onclick="return confirm('Delete config file?')" />
|
||||||
</form>
|
</form>
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
<form action="/config/save" method="post">
|
<form action="/config/save" method="post">
|
||||||
<input name="name" placeholder="default">
|
<input name="name" placeholder="default" size="20">
|
||||||
<input type="submit" value="Save" />
|
<input type="submit" value="Save" />
|
||||||
</form>
|
</form>
|
||||||
<form action="/scsi/detach_all" method="post" onsubmit="return confirm('Detach all SCSI Devices?')">
|
|
||||||
<input type="submit" value="Detach All" />
|
|
||||||
</form>
|
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<table cellpadding="3" border="black">
|
<table cellpadding="3" border="black">
|
||||||
@ -101,6 +102,11 @@
|
|||||||
{% endfor %}
|
{% endfor %}
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
<p>
|
||||||
|
<form action="/scsi/detach_all" method="post" onsubmit="return confirm('Detach all SCSI Devices?')">
|
||||||
|
<input type="submit" value="Detach All Devices" />
|
||||||
|
</form>
|
||||||
|
</p>
|
||||||
|
|
||||||
<hr/>
|
<hr/>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user