mirror of
https://github.com/coolsnowwolf/luci
synced 2025-01-09 09:17:27 +08:00
luci-app-advanced-reboot: fix table css style
This commit is contained in:
parent
21346607a2
commit
bfe9018728
@ -1,7 +1,7 @@
|
||||
<%#
|
||||
Copyright 2008 Steven Barth <steven@midlink.org>
|
||||
Copyright 2008-2015 Jo-Philipp Wich <jow@openwrt.org>
|
||||
Copyright 2017-2020 Stan Grishin <stangri@melmac.net>
|
||||
Copyright 2017-2018 Stan Grishin <stangri@melmac.net>
|
||||
Licensed to the public under the Apache License 2.0.
|
||||
-%>
|
||||
|
||||
@ -20,70 +20,70 @@
|
||||
|
||||
<%- if device_name then -%>
|
||||
<fieldset class="cbi-section">
|
||||
<legend><%=device_name%><%: Partitions%></legend>
|
||||
<div class="table cbi-section-table" id="partitions">
|
||||
<div class="tr cbi-section-table-titles">
|
||||
<div class="th cbi-section-table-cell"><%:Partition%></div>
|
||||
<div class="th cbi-section-table-cell"><%:Status%></div>
|
||||
<div class="th cbi-section-table-cell"><%:Firmware%></div>
|
||||
<div class="th cbi-section-table-cell"><%:Reboot%></div>
|
||||
</div>
|
||||
<div class="tr cbi-section-table-row cbi-rowstyle-<%- if bev1p1 == current_partition then -%><%=1%><%- else -%><%=2%><%- end -%>">
|
||||
<div class="td">
|
||||
<%=string.format("%X", bev1p1)%>
|
||||
</div>
|
||||
<div class="td">
|
||||
<%- if bev1p1 == current_partition then -%><%:Current%><%- else -%><%:Alternative%><%- end -%>
|
||||
</div>
|
||||
<div class="td">
|
||||
<%=p1_os%>
|
||||
</div>
|
||||
<div class="td">
|
||||
<%- if bev1p1 == current_partition then -%>
|
||||
<form method="post" action="<%=url('admin/system/advanced_reboot/reboot')%>">
|
||||
<input type="hidden" name="token" value="<%=token%>" />
|
||||
<input id="reboot-button" type="submit" class="cbi-button cbi-button-apply important" value="<%:Reboot to current partition%>" />
|
||||
</form>
|
||||
<%- else -%>
|
||||
<form method="post" action="<%=url('admin/system/advanced_reboot/alternative_reboot')%>">
|
||||
<input type="hidden" name="token" value="<%=token%>" />
|
||||
<input id="altreboot-button" type="submit" class="cbi-button cbi-button-apply important" value="<%:Reboot to alternative partition...%>" />
|
||||
</form>
|
||||
<%- end -%>
|
||||
</div>
|
||||
</div>
|
||||
<div class="tr cbi-section-table-row cbi-rowstyle-<%- if bev1p2 == current_partition then -%><%=1%><%- else -%><%=2%><%- end -%>">
|
||||
<div class="td">
|
||||
<%=string.format("%X", bev1p2)%>
|
||||
</div>
|
||||
<div class="td">
|
||||
<%- if bev1p2 == current_partition then -%><%:Current%><%- else -%><%:Alternative%><%- end -%>
|
||||
</div>
|
||||
<div class="td">
|
||||
<%=p2_os%>
|
||||
</div>
|
||||
<div class="td">
|
||||
<%- if bev1p2 == current_partition then -%>
|
||||
<form method="post" action="<%=url('admin/system/advanced_reboot/reboot')%>">
|
||||
<input type="hidden" name="token" value="<%=token%>" />
|
||||
<input id="reboot-button" type="submit" class="cbi-button cbi-button-apply important" value="<%:Reboot to current partition%>" />
|
||||
</form>
|
||||
<%- else -%>
|
||||
<form method="post" action="<%=url('admin/system/advanced_reboot/alternative_reboot')%>">
|
||||
<input type="hidden" name="token" value="<%=token%>" />
|
||||
<input id="altreboot-button" type="submit" class="cbi-button cbi-button-apply important" value="<%:Reboot to alternative partition...%>" />
|
||||
</form>
|
||||
<%- end -%>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<legend><%=device_name%><%: Partitions%></legend>
|
||||
<table class="table cbi-section-table" id="partitions">
|
||||
<tr class="tr cbi-section-table-titles">
|
||||
<th class="th cbi-section-table-cell"><%:Partition%></th>
|
||||
<th class="th cbi-section-table-cell"><%:Status%></th>
|
||||
<th class="th cbi-section-table-cell"><%:Firmware/OS (Kernel)%></th>
|
||||
<th class="th cbi-section-table-cell"><%:Action%></th>
|
||||
</tr>
|
||||
<tr class="tr cbi-section-table-row">
|
||||
<td class="td">
|
||||
<%=string.format("%X", boot_envvar1_partition_one)%>
|
||||
</td>
|
||||
<td class="td">
|
||||
<%- if boot_envvar1_partition_one == current_partition then -%><%:Current%><%- else -%><%:Alternative%><%- end -%>
|
||||
</td>
|
||||
<td class="td">
|
||||
<%=partition_one_os%>
|
||||
</td>
|
||||
<td class="td">
|
||||
<%- if boot_envvar1_partition_one == current_partition then -%>
|
||||
<form method="post" action="<%=url('admin/system/advanced_reboot/reboot')%>">
|
||||
<input type="hidden" name="token" value="<%=token%>" />
|
||||
<input id="reboot-button" type="submit" class="cbi-button cbi-button-apply important" value="<%:Reboot to current partition%>" />
|
||||
</form>
|
||||
<%- else -%>
|
||||
<form method="post" action="<%=url('admin/system/advanced_reboot/alternative_reboot')%>">
|
||||
<input type="hidden" name="token" value="<%=token%>" />
|
||||
<input id="altreboot-button" type="submit" class="cbi-button cbi-button-apply important" value="<%:Reboot to alternative partition...%>" />
|
||||
</form>
|
||||
<%- end -%>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="tr cbi-section-table-row">
|
||||
<td class="td">
|
||||
<%=string.format("%X", boot_envvar1_partition_two)%>
|
||||
</td>
|
||||
<td class="td">
|
||||
<%- if boot_envvar1_partition_two == current_partition then -%><%:Current%><%- else -%><%:Alternative%><%- end -%>
|
||||
</td>
|
||||
<td class="td">
|
||||
<%=partition_two_os%>
|
||||
</td>
|
||||
<td class="td">
|
||||
<%- if boot_envvar1_partition_two == current_partition then -%>
|
||||
<form method="post" action="<%=url('admin/system/advanced_reboot/reboot')%>">
|
||||
<input type="hidden" name="token" value="<%=token%>" />
|
||||
<input id="reboot-button" type="submit" class="cbi-button cbi-button-apply important" value="<%:Reboot to current partition%>" />
|
||||
</form>
|
||||
<%- else -%>
|
||||
<form method="post" action="<%=url('admin/system/advanced_reboot/alternative_reboot')%>">
|
||||
<input type="hidden" name="token" value="<%=token%>" />
|
||||
<input id="altreboot-button" type="submit" class="cbi-button cbi-button-apply important" value="<%:Reboot to alternative partition...%>" />
|
||||
</form>
|
||||
<%- end -%>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
<%- else -%>
|
||||
<%- if rom_board_name then -%>
|
||||
<p class="alert-message warning"><%=pcdata(translatef("Warning: Device (%s) is unknown or isn't a dual-partition device!", rom_board_name))%></p>
|
||||
<%- else -%>
|
||||
<p class="alert-message warning"><%=pcdata(translatef("Warning: Unable to obtain device information!"))%></p>
|
||||
<%- end -%>
|
||||
<%- if rom_board_name then -%>
|
||||
<p class="alert-message warning"><%=pcdata(translatef("Warning: Device (%s) is unknown or isn't a dual-partition device!", rom_board_name))%></p>
|
||||
<%- else -%>
|
||||
<p class="alert-message warning"><%=pcdata(translatef("Warning: Unable to obtain device information!"))%></p>
|
||||
<%- end -%>
|
||||
<%- end -%>
|
||||
|
||||
<hr />
|
||||
@ -91,10 +91,10 @@
|
||||
<%- if nixio.fs.access("/sbin/poweroff") then -%>
|
||||
<form method="post" action="<%=url('admin/system/advanced_reboot/power_off')%>">
|
||||
<input type="hidden" name="token" value="<%=token%>" />
|
||||
<input id="poweroff-button" type="submit" class="cbi-button cbi-button-apply important" value="<%:Perform power off...%>" />
|
||||
<input id="poweroff-button" type="submit" class="cbi-button cbi-button-apply important" value="<%:Perform power off...%>" />
|
||||
</form>
|
||||
<%- else -%>
|
||||
<p class="alert-message warning"><%:Warning: This system does not support powering off!%></p>
|
||||
<p class="alert-message warning"><%:Warning: This system does not support powering off!%></p>
|
||||
<%- end -%>
|
||||
|
||||
<%+footer%>
|
||||
|
Loading…
Reference in New Issue
Block a user