Add cancel shutdown feature and enhance system control access methods in dashboard
This commit is contained in:
+7
-4
@@ -211,22 +211,25 @@
|
||||
<!-- Timer Input -->
|
||||
<div>
|
||||
<label class="block text-sm font-medium text-gray-700 mb-2">
|
||||
Timer (seconds) - Leave empty for immediate action
|
||||
Timer (seconds) - Default: 15 seconds
|
||||
</label>
|
||||
<input type="number" id="systemTimer"
|
||||
class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500"
|
||||
placeholder="0" min="0" max="86400">
|
||||
placeholder="15" min="0" max="86400" value="15">
|
||||
<p class="text-xs text-gray-500 mt-1">Maximum: 24 hours (86400 seconds)</p>
|
||||
</div>
|
||||
|
||||
<!-- Action Buttons -->
|
||||
<div class="grid grid-cols-2 gap-3">
|
||||
<div class="grid grid-cols-3 gap-3">
|
||||
<button id="shutdownBtn" class="bg-red-600 hover:bg-red-700 text-white px-4 py-3 rounded-lg transition-colors flex items-center justify-center">
|
||||
<i class="fas fa-power-off mr-2"></i>Shutdown
|
||||
</button>
|
||||
<button id="restartBtn" class="bg-orange-600 hover:bg-orange-700 text-white px-4 py-3 rounded-lg transition-colors flex items-center justify-center">
|
||||
<i class="fas fa-redo mr-2"></i>Restart
|
||||
</button>
|
||||
<button id="cancelBtn" class="bg-yellow-600 hover:bg-yellow-700 text-white px-4 py-3 rounded-lg transition-colors flex items-center justify-center">
|
||||
<i class="fas fa-ban mr-2"></i>Cancel
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<!-- Force Shutdown Option -->
|
||||
@@ -241,7 +244,7 @@
|
||||
<i class="fas fa-exclamation-triangle text-yellow-600 mr-2 mt-0.5"></i>
|
||||
<div class="text-sm text-yellow-800">
|
||||
<strong>Warning:</strong> This will shut down or restart the entire system.
|
||||
Make sure to save any unsaved work first.
|
||||
Make sure to save any unsaved work first. Use the Cancel button to abort any pending shutdown/restart.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user