Always show the Reboot and Power down buttons -- just disabled when array is started

This commit is contained in:
Eric Schultz
2016-03-02 17:45:03 -08:00
parent 8bc2cd6109
commit c70cca35aa
+10
View File
@@ -470,6 +470,16 @@ $('.tabs').append("<span class='status vhshift'><input type='button' value='Refr
<td><input type="submit" name="cmdSpindownAll" value="Spin Down"<?=$var['mdResync']==0 ? '':' disabled'?> style="width:80px"><input type="submit" name="cmdSpinupAll" value="Spin Up"<?=$var['mdResync']==0 ? '':' disabled'?> style="width:80px"></td>
<td><strong>Spin Down</strong> will immediately spin down all disks.<br><strong>Spin Up</strong> will immediately spin up all disks.</td>
</tr>
<tr>
<td></td>
<td><input type="button" name="reboot" value="Reboot" disabled></td>
<td>Array must be Stopped to <strong>Reboot</strong>.
</tr>
<tr>
<td></td>
<td><input type="button" name="shutdown" value="Power down" disabled></td>
<td>Array must be Stopped to <strong>Power down</strong>.
</tr>
<?endif;?>
<?if ($var['fsState']=="Stopped"):?>
<tr>