misc: small fix or general refactoring i did not bother commenting

This commit is contained in:
Simone Margaritelli 2019-11-13 14:38:39 +01:00
parent b1d8aa3ba1
commit a7e37115d9
No known key found for this signature in database
GPG Key ID: 82E42E7F3B34C97E

@ -22,14 +22,14 @@ window.onload = function() {
<li>
<form class="action" method="post" action="/shutdown"
onsubmit="return confirm('this will halt the unit, continue?');">
<input type="submit" class="button ui-btn ui-corner-all" value="shutdown"/>
<input type="submit" class="button ui-btn ui-corner-all" value="Shutdown"/>
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}"/>
</form>
</li>
<li>
<form class="action" method="post" action="/restart"
onsubmit="return confirm('this will restart the service in {{ other_mode }} mode, continue?');">
<input type="submit" class="button ui-btn ui-corner-all" value="restart in {{ other_mode }} mode"/>
onsubmit="return confirm('This will restart the service in {{ other_mode }} mode, continue?');">
<input type="submit" class="button ui-btn ui-corner-all" value="Restart in {{ other_mode }} mode"/>
<input type="hidden" name="mode" value="{{ other_mode }}"/>
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}"/>
</form>