Iterate on webapp config UX (#371)

* Iterate on webapp config ux

* Labels were only adding clutter

* Add confirmation modals
This commit is contained in:
Daniel Markstedt 2021-10-24 19:09:35 -07:00 committed by GitHub
parent d334669722
commit 960cc91168
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12,23 +12,24 @@
<p>
<form action="/config/load" method="post">
<select name="name" required>
<select name="name" width="14" required>
{% if config_files %}
{% for config in config_files %}
<option value="{{config}}">{{config.replace(".json", '')}}</option>
{% endfor %}
{% else %}
<option disabled>No saved configs</option>
{% endif %}
</select>
<input type="submit" name="load" value="Load" />
<input type="submit" name="delete" value="Delete" />
<input type="submit" name="load" value="Load" onclick="return confirm('Detach all current device and Load config?')" />
<input type="submit" name="delete" value="Delete" onclick="return confirm('Delete config file?')" />
</form>
</p>
<p>
<form action="/config/save" method="post">
<input name="name" placeholder="default">
<input name="name" placeholder="default" size="20">
<input type="submit" value="Save" />
</form>
<form action="/scsi/detach_all" method="post" onsubmit="return confirm('Detach all SCSI Devices?')">
<input type="submit" value="Detach All" />
</form>
</p>
<table cellpadding="3" border="black">
@ -101,6 +102,11 @@
{% endfor %}
</tbody>
</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/>