fff-web-ui: Show hood only, if fff-hoods available

The hood row make no sense in layer3 variante and should only view if fff-hoods available

Signed-off-by: Christian Dresel <freifunk@dresel.systems>
This commit is contained in:
Christian Dresel 2022-04-30 12:51:44 +02:00
parent 0adfa6a155
commit 9d82530dbe
1 changed files with 14 additions and 12 deletions

View File

@ -124,18 +124,20 @@ fi
</table>
</fieldset>
<form method="post">
<fieldset style="padding-bottom:12px">
<legend>Hood</legend>
<table>
<tr><th style="width:200px">Hood:</th><td><% echo "$hood" %></td></tr>
<tr><th style="width:200px">Mesh-Type (2.4/5 GHz):</th><td><% echo "${mesh_type2} / ${mesh_type5}" %></td></tr>
<tr><th style="width:200px">Channel (2.4/5 GHz):</th><td>Ger&auml;t: <% echo "${real_chan2ghz} / ${real_chan5ghz}" %> | Hood: <% echo "${chan2ghz} / ${chan5ghz}" %></td></tr>
<tr><th style="width:200px">SSID (Client-AP):</th><td>Ger&auml;t: <% echo "${real_essid}" %> | Hood: <% echo "${essid}" %></td></tr>
<tr><td colspan="2">&nbsp;</td></tr>
<tr><td colspan="2">Beim Klicken werden die Hood-Daten innerhalb von 5 Minuten neu abgerufen und angewandt:</td></tr>
<tr><td colspan="2"><input type="submit" name="resethood" value="Reset hood data" /></td></tr>
</table>
</fieldset>
<% if [ -e /usr/lib/functions/fff/hoodfile ]; then %>
<fieldset style="padding-bottom:12px">
<legend>Hood</legend>
<table>
<tr><th style="width:200px">Hood:</th><td><% echo "$hood" %></td></tr>
<tr><th style="width:200px">Mesh-Type (2.4/5 GHz):</th><td><% echo "${mesh_type2} / ${mesh_type5}" %></td></tr>
<tr><th style="width:200px">Channel (2.4/5 GHz):</th><td>Ger&auml;t: <% echo "${real_chan2ghz} / ${real_chan5ghz}" %> | Hood: <% echo "${chan2ghz} / ${chan5ghz}" %></td></tr>
<tr><th style="width:200px">SSID (Client-AP):</th><td>Ger&auml;t: <% echo "${real_essid}" %> | Hood: <% echo "${essid}" %></td></tr>
<tr><td colspan="2">&nbsp;</td></tr>
<tr><td colspan="2">Beim Klicken werden die Hood-Daten innerhalb von 5 Minuten neu abgerufen und angewandt:</td></tr>
<tr><td colspan="2"><input type="submit" name="resethood" value="Reset hood data" /></td></tr>
</table>
</fieldset>
<% fi %>
</form>
<fieldset style="padding-bottom:12px">
<legend>Netz: WAN</legend>