console: Hide cancel graceful shutdown button unless we are shutting down

This commit is contained in:
zzz
2015-03-08 20:23:00 +00:00
parent 0972b6b56a
commit c7d1d2b69a
4 changed files with 18 additions and 2 deletions

View File

@@ -25,7 +25,9 @@
<hr><div class="formaction">
<input type="submit" class="stop" name="action" value="<%=intl._("Shutdown gracefully")%>" >
<input type="submit" class="stop" name="action" value="<%=intl._("Shutdown immediately")%>" >
<input type="submit" class="cancel" name="action" value="<%=intl._("Cancel graceful shutdown")%>" >
<% if (formhandler.shouldShowCancelGraceful()) { %>
<input type="submit" class="cancel" name="action" value="<%=intl._("Cancel graceful shutdown")%>" >
<% } %>
</div>
<% if (System.getProperty("wrapper.version") != null) { %>
<p><%=intl._("If you want the router to restart itself after shutting down, you can choose one of the following.")%>