Commit abcb4cce authored by Franco Fichtner's avatar Franco Fichtner

src: start removal of visual clutter in the form of markup "hints" et al

This makes pages much easer on the eye, the messages are clear still.
parent 4bcdc72b
...@@ -332,18 +332,10 @@ $main_buttons = array( ...@@ -332,18 +332,10 @@ $main_buttons = array(
</tr> </tr>
<tr> <tr>
<td colspan="9"> <td colspan="9">
<p>
<span class="text-danger">
<strong><?=gettext("Note:"); ?><br />
</strong>
</span>
<?=gettext("Depending on the way your WAN connection is setup, you may also need a"); ?>
<a href="firewall_virtual_ip.php"><?=gettext("Virtual IP."); ?></a><br />
<?=gettext("If you add a 1:1 NAT entry for any of the interface IPs on this system, " . <?=gettext("If you add a 1:1 NAT entry for any of the interface IPs on this system, " .
"it will make this system inaccessible on that IP address. i.e. if " . "it will make this system inaccessible on that IP address. i.e. if " .
"you use your WAN IP address, any services on this system (IPsec, OpenVPN server, etc.) " . "you use your WAN IP address, any services on this system (IPsec, OpenVPN server, etc.) " .
"using the WAN IP address will no longer function."); ?> "using the WAN IP address will no longer function."); ?>
</p>
</td> </td>
</tr> </tr>
</tfoot> </tfoot>
......
...@@ -766,10 +766,6 @@ $( document ).ready(function() { ...@@ -766,10 +766,6 @@ $( document ).ready(function() {
</tr> </tr>
<tr class="hidden-xs hidden-sm"> <tr class="hidden-xs hidden-sm">
<td colspan="11"> <td colspan="11">
<strong>
<span class="text-danger"><?=gettext("Hint:");?></span>
</strong>
<br />
<?php if ("FloatingRules" != $selected_if): ?> <?php if ("FloatingRules" != $selected_if): ?>
<?=gettext("Rules are evaluated on a first-match basis (i.e. " . <?=gettext("Rules are evaluated on a first-match basis (i.e. " .
"the action of the first rule to match a packet will be executed). " . "the action of the first rule to match a packet will be executed). " .
......
...@@ -166,10 +166,6 @@ $main_buttons = array( ...@@ -166,10 +166,6 @@ $main_buttons = array(
</tbody> </tbody>
</table> </table>
</div> </div>
<div class="container-fluid">
<span class="text-danger"><strong><?=gettext("Note:"); ?><br /></strong></span>
<?=gettext("Here you can configure bridging of interfaces."); ?>
</div>
</form> </form>
</div> </div>
</section> </section>
......
...@@ -142,14 +142,8 @@ $main_buttons = array( ...@@ -142,14 +142,8 @@ $main_buttons = array(
<?php <?php
$i++; $i++;
endforeach; ?> endforeach; ?>
</tbody> <tr>
</table> <td colspan="4">
</div>
<div class="container-fluid">
<p>
<span class="text-danger"><strong><?=gettext("Note:"); ?><br /></strong></span>
<?=gettext("GIF tunnels are configured here."); ?>
<br /><br />
<?=sprintf( <?=sprintf(
gettext( gettext(
'If you are using a GIF tunnel to connect to a Hurricane Electric (he.net) Tunnel Broker ' . 'If you are using a GIF tunnel to connect to a Hurricane Electric (he.net) Tunnel Broker ' .
...@@ -159,7 +153,10 @@ $main_buttons = array( ...@@ -159,7 +153,10 @@ $main_buttons = array(
'<a href="services_dyndns.php">', '<a href="services_dyndns.php">',
'</a>' '</a>'
); ?> ); ?>
</p> </td>
</tr>
</tbody>
</table>
</div> </div>
</form> </form>
</div> </div>
......
...@@ -147,12 +147,6 @@ $main_buttons = array( ...@@ -147,12 +147,6 @@ $main_buttons = array(
</tbody> </tbody>
</table> </table>
</div> </div>
<div class="container-fluid">
<p>
<span class="text-danger"><strong><?=gettext("Note:");?><br /></strong></span>
<?=gettext("Here you can configure Generic Routing Encapsulation (GRE - RFC 2784) tunnels.");?>
</p>
</div>
</form> </form>
</div> </div>
</section> </section>
......
...@@ -142,14 +142,13 @@ $main_buttons = array( ...@@ -142,14 +142,13 @@ $main_buttons = array(
<?php <?php
$i++; $i++;
endforeach; ?> endforeach; ?>
<tr>
<td colspan="4">
<?=gettext("Interface Groups allow you to create rules that apply to multiple interfaces without duplicating the rules. If you remove members from an interface group, the group rules no longer apply to that interface.");?>
</td>
</tr>
</tbody> </tbody>
</table> </table>
<div class="container-fluid">
<p>
<span class="text-danger"><strong><?=gettext("Note:");?><br /></strong></span>
<?=gettext("Interface Groups allow you to create rules that apply to multiple interfaces without duplicating the rules. If you remove members from an interface group, the group rules no longer apply to that interface.");?>
</p>
</div>
</form> </form>
</div> </div>
</section> </section>
......
...@@ -152,15 +152,14 @@ $main_buttons = array( ...@@ -152,15 +152,14 @@ $main_buttons = array(
<?php <?php
$i++; $i++;
endforeach; ?> endforeach; ?>
<tr>
<td colspan="4">
<?=gettext("LAGG allows for link aggregation, bonding and fault tolerance. Only unassigned interfaces can be added to LAGG."); ?>
</td>
</tr>
</tbody> </tbody>
</table> </table>
</div> </div>
<div class="container-fluid">
<p>
<span class="text-danger"><strong><?=gettext("Note:"); ?><br /></strong></span>
<?=gettext("LAGG allows for link aggregation, bonding and fault tolerance. Only unassigned interfaces can be added to LAGG."); ?>
</p>
</div>
</form> </form>
</div> </div>
</section> </section>
......
...@@ -161,15 +161,14 @@ $main_buttons = array( ...@@ -161,15 +161,14 @@ $main_buttons = array(
<?php <?php
$i++; $i++;
endforeach; ?> endforeach; ?>
<tr>
<td colspan="4">
<?= gettext("Not all drivers/NICs support 802.1Q QinQ tagging properly. On cards that do not explicitly support it, QinQ tagging will still work, but the reduced MTU may cause problems.");?>
</td>
</tr>
</tbody> </tbody>
</table> </table>
</div> </div>
<div class="container-fluid">
<p>
<span class="text-danger"><strong><?=gettext("Note:");?><br /></strong></span>
<?= gettext("Not all drivers/NICs support 802.1Q QinQ tagging properly. On cards that do not explicitly support it, QinQ tagging will still work, but the reduced MTU may cause problems.");?>
</p>
</div>
</form> </form>
</div> </div>
</section> </section>
......
...@@ -144,15 +144,14 @@ $main_buttons = array( ...@@ -144,15 +144,14 @@ $main_buttons = array(
<?php <?php
$i++; $i++;
endforeach; ?> endforeach; ?>
<tr>
<td colspan="4">
<?= gettext("Not all drivers/NICs support 802.1Q VLAN tagging properly. On cards that do not explicitly support it, VLAN tagging will still work, but the reduced MTU may cause problems.");?>
</td>
</tr>
</tbody> </tbody>
</table> </table>
</div> </div>
<div class="container-fluid">
<p>
<span class="text-danger"><strong><?=gettext("Note:");?><br /></strong></span>
<?= gettext("Not all drivers/NICs support 802.1Q VLAN tagging properly. On cards that do not explicitly support it, VLAN tagging will still work, but the reduced MTU may cause problems.");?>
</p>
</div>
</form> </form>
</div> </div>
</section> </section>
......
...@@ -141,15 +141,14 @@ $main_buttons = array( ...@@ -141,15 +141,14 @@ $main_buttons = array(
<?php <?php
$i++; $i++;
endforeach;?> endforeach;?>
<tr>
<td colspan="4">
<?=gettext("Here you can configure clones of wireless interfaces, which can be assigned as separate independent interfaces. Only available on wireless chipsets that support this, with limitations on the number that can be created in each mode.");?>
</td>
</tr>
</tbody> </tbody>
</table> </table>
</div> </div>
<div class="container-fluid">
<p>
<span class="text-danger"><strong><?=gettext("Note");?>:<br /></strong></span>
<?=gettext("Here you can configure clones of wireless interfaces, which can be assigned as separate independent interfaces. Only available on wireless chipsets that support this, with limitations on the number that can be created in each mode.");?>
</p>
</div>
</form> </form>
</div> </div>
</section> </section>
......
...@@ -367,15 +367,14 @@ $( document ).ready(function() { ...@@ -367,15 +367,14 @@ $( document ).ready(function() {
</td> </td>
</tr> </tr>
<tr> <tr>
<td colspan="2"> <td></td>
<td>
<input name="submit" type="submit" class="btn btn-primary" value="<?=gettext("Save"); ?>" /> <input name="submit" type="submit" class="btn btn-primary" value="<?=gettext("Save"); ?>" />
</td> </td>
</tr> </tr>
</table> <tr>
</div> <td colspan="2">
<div class="container-fluid"> <?= sprintf(gettext("If the DNS forwarder is enabled, the DHCP".
<p><span class="vexpl"><span class="text-danger"><strong><?=gettext("Note:");?><br />
</strong></span><?php printf(gettext("If the DNS forwarder is enabled, the DHCP".
" service (if enabled) will automatically serve the LAN IP". " service (if enabled) will automatically serve the LAN IP".
" address as a DNS server to DHCP clients so they will use". " address as a DNS server to DHCP clients so they will use".
" the forwarder. The DNS forwarder will use the DNS servers". " the forwarder. The DNS forwarder will use the DNS servers".
...@@ -385,8 +384,10 @@ $( document ).ready(function() { ...@@ -385,8 +384,10 @@ $( document ).ready(function() {
" is checked. If you don't use that option (or if you use". " is checked. If you don't use that option (or if you use".
" a static IP address on WAN), you must manually specify at". " a static IP address on WAN), you must manually specify at".
" least one DNS server on the %sSystem: General setup%s page."), " least one DNS server on the %sSystem: General setup%s page."),
'<a href="system_general.php">','</a>','<a href="system_general.php">','</a>');?><br /> '<a href="system_general.php">','</a>','<a href="system_general.php">','</a>');?>
</span></p> </td>
</tr>
</table>
</div> </div>
</form> </form>
</div> </div>
......
...@@ -178,16 +178,12 @@ $main_buttons = array( ...@@ -178,16 +178,12 @@ $main_buttons = array(
<?php <?php
$i++; $i++;
endforeach; ?> endforeach; ?>
</tbody>
<tfoot>
<tr> <tr>
<td colspan="6" class="list"> <td colspan="6" class="list">
<p><span class="text-danger"><strong><?=gettext("Note:");?><br /></strong></span> <?=gettext("You can force an update for an IP address on the edit page for that service.");?>
<?=gettext("IP addresses appearing in green are up to date with Dynamic DNS provider.");?><br />
<?=gettext("You can force an update for an IP address on the edit page for that service.");?></p>
</td> </td>
</tr> </tr>
</tfoot> </tbody>
</table> </table>
</div> </div>
</form> </form>
......
...@@ -138,11 +138,8 @@ $main_buttons = array( ...@@ -138,11 +138,8 @@ $main_buttons = array(
$i++; $i++;
endforeach; ?> endforeach; ?>
<tr> <tr>
<td class="tabcont" colspan="5"> <td colspan="5">
<p>
<span class="text-danger"><strong><?=gettext("Note:");?><br /></strong></span>
<?=gettext("Please add the interface for upstream, the allowed subnets, and the downstream interfaces you would like the proxy to allow. Only one 'upstream' interface can be configured.");?> <?=gettext("Please add the interface for upstream, the allowed subnets, and the downstream interfaces you would like the proxy to allow. Only one 'upstream' interface can be configured.");?>
</p>
</td> </td>
</tr> </tr>
</tbody> </tbody>
......
...@@ -263,16 +263,14 @@ function show_advanced_dns() { ...@@ -263,16 +263,14 @@ function show_advanced_dns() {
</td> </td>
</tr> </tr>
<tr> <tr>
<td colspan="2"> <td></td>
<td>
<input name="submit" type="submit" class="btn btn-primary" value="<?=gettext("Save"); ?>" /> <input name="submit" type="submit" class="btn btn-primary" value="<?=gettext("Save"); ?>" />
</td> </td>
</tr> </tr>
</tbody> <tr>
</table> <td colspan="2">
</div> <?= sprintf(gettext("If the DNS Resolver is enabled, the DHCP".
<div class="container-fluid">
<span class="text-danger"><strong><?=gettext("Note:");?><br />
</strong></span><?php printf(gettext("If the DNS Resolver is enabled, the DHCP".
" service (if enabled) will automatically serve the LAN IP". " service (if enabled) will automatically serve the LAN IP".
" address as a DNS server to DHCP clients so they will use". " address as a DNS server to DHCP clients so they will use".
" the DNS Resolver. If Forwarding, is enabled, the DNS Resolver will use the DNS servers". " the DNS Resolver. If Forwarding, is enabled, the DNS Resolver will use the DNS servers".
...@@ -280,7 +278,10 @@ function show_advanced_dns() { ...@@ -280,7 +278,10 @@ function show_advanced_dns() {
" or those obtained via DHCP or PPP on WAN if the &quot;Allow". " or those obtained via DHCP or PPP on WAN if the &quot;Allow".
" DNS server list to be overridden by DHCP/PPP on WAN&quot;". " DNS server list to be overridden by DHCP/PPP on WAN&quot;".
" is checked."),'<a href="system_general.php">','</a>');?> " is checked."),'<a href="system_general.php">','</a>');?>
<br /><br /> </td>
</tr>
</tbody>
</table>
</div> </div>
</div> </div>
</section> </section>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment