mirror of
https://github.com/RaspAP/raspap-webgui.git
synced 2024-11-21 23:20:22 +00:00
fixed up networking template
This commit is contained in:
parent
89f3330606
commit
2cd2082499
1 changed files with 98 additions and 96 deletions
|
@ -1,102 +1,104 @@
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-lg-12">
|
<div class="col-lg-12">
|
||||||
<div class="panel panel-primary">
|
<div class="panel panel-primary">
|
||||||
<div class="panel panel-heading">
|
<div class="panel panel-heading"><i class="fa fa-sitemap fa-fw"></i> <?php echo _("Configure networking"); ?></div>
|
||||||
<i class="fa fa-sitemap fa-fw"></i> <?php echo _("Configure networking"); ?></div>
|
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
<div id="msgNetworking"></div>
|
<div id="msgNetworking"></div>
|
||||||
<ul class="nav nav-tabs">
|
<ul class="nav nav-tabs">
|
||||||
<li role="presentation" class="active"><a href="#summary" aria-controls="summary" role="tab" data-toggle="tab"><?php echo _("Summary"); ?></a></li>
|
<li role="presentation" class="active"><a href="#summary" aria-controls="summary" role="tab" data-toggle="tab"><?php echo _("Summary"); ?></a></li>
|
||||||
<?php
|
<?php foreach ($interfaces as $if): ?>
|
||||||
foreach ($interfaces as $interface) {
|
<?php $if_quoted = htmlspecialchars($if, ENT_QUOTES) ?>
|
||||||
echo '<li role="presentation"><a href="#'.htmlspecialchars($interface, ENT_QUOTES).'" aria-controls="'.htmlspecialchars($interface, ENT_QUOTES).'" role="tab" data-toggle="tab">'.htmlspecialchars($interface, ENT_QUOTES).'</a></li>';
|
<li role="presentation"><a href="#<?php echo $if_quoted ?>" aria-controls="<?php echo $if_quoted ?>" role="tab" data-toggle="tab"><?php echo $if_quoted ?></a></li>
|
||||||
}
|
<?php endforeach ?>
|
||||||
?>
|
</ul>
|
||||||
</ul>
|
<div class="tab-content">
|
||||||
<div class="tab-content">
|
|
||||||
<div role="tabpanel" class="tab-pane active" id="summary">
|
<div role="tabpanel" class="tab-pane active" id="summary">
|
||||||
<h4><?php echo _("Current settings"); ?></h4>
|
<h4><?php echo _("Current settings") ?></h4>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<?php
|
<?php foreach ($interfaces as $if): ?>
|
||||||
foreach ($interfaces as $interface) {
|
<?php $if_quoted = htmlspecialchars($if, ENT_QUOTES) ?>
|
||||||
echo '<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<div class="panel panel-default">
|
<div class="panel panel-default">
|
||||||
<div class="panel-heading">'.htmlspecialchars($interface, ENT_QUOTES).'</div>
|
<div class="panel-heading"><?php echo $if_quoted ?></div>
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
<pre class="unstyled" id="'.htmlspecialchars($interface, ENT_QUOTES).'-summary"></pre>
|
<pre class="unstyled" id="<?php echo $if_quoted ?>-summary"></pre>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>';
|
</div>
|
||||||
}
|
<?php endforeach ?>
|
||||||
?>
|
</div><!-- /.row -->
|
||||||
</div><!-- /.row -->
|
<div class="col-lg-12">
|
||||||
<div class="col-lg-12">
|
<div class="row">
|
||||||
<div class="row">
|
<a href="#" class="btn btn-outline btn-primary" id="btnSummaryRefresh"><i class="fa fa-refresh"></i> <?php echo _("Refresh"); ?></a>
|
||||||
<a href="#" class="btn btn-outline btn-primary" id="btnSummaryRefresh"><i class="fa fa-refresh"></i> <?php echo _("Refresh"); ?></a>
|
</div><!-- /.row -->
|
||||||
</div><!-- /.row -->
|
</div><!-- /.col-lg-12 -->
|
||||||
</div><!-- /.col-lg-12 -->
|
</div><!-- /.tab-pane -->
|
||||||
</div><!-- /.tab-pane -->
|
|
||||||
<?php
|
<?php foreach ($interfaces as $if): ?>
|
||||||
foreach ($interfaces as $interface) {
|
<?php $if_quoted = htmlspecialchars($if, ENT_QUOTES) ?>
|
||||||
echo '
|
<div role="tabpanel" class="tab-pane fade in" id="<?php echo $if_quoted ?>">
|
||||||
<div role="tabpanel" class="tab-pane fade in" id="'.htmlspecialchars($interface, ENT_QUOTES).'">
|
<div class="row">
|
||||||
<div class="row">
|
<div class="col-lg-6">
|
||||||
<div class="col-lg-6">
|
|
||||||
<form id="frm-'.htmlspecialchars($interface, ENT_QUOTES).'">
|
<form id="frm-<?php echo $if_quoted ?>">
|
||||||
' . CSRFTokenFieldTag() . '
|
<?php echo CSRFTokenFieldTag() ?>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<h4>' . _("Adapter IP Address Settings") . '</h4>
|
<h4><?php echo _("Adapter IP Address Settings") ?></h4>
|
||||||
<div class="btn-group" data-toggle="buttons">
|
<div class="btn-group" data-toggle="buttons">
|
||||||
<label class="btn btn-primary">
|
<label class="btn btn-primary">
|
||||||
<input type="radio" name="'.htmlspecialchars($interface, ENT_QUOTES).'-addresstype" id="'.htmlspecialchars($interface, ENT_QUOTES).'-dhcp" autocomplete="off">' . _("DHCP") . '
|
<input type="radio" name="<?php echo $if_quoted ?>-addresstype" id="<?php echo $if_quoted ?>-dhcp" autocomplete="off"><?php echo _("DHCP") ?>
|
||||||
</label>
|
</label>
|
||||||
<label class="btn btn-primary">
|
<label class="btn btn-primary">
|
||||||
<input type="radio" name="'.htmlspecialchars($interface, ENT_QUOTES).'-addresstype" id="'.htmlspecialchars($interface, ENT_QUOTES).'-static" autocomplete="off">' . _("Static IP") . '
|
<input type="radio" name="<?php echo $if_quoted ?>-addresstype" id="<?php echo $if_quoted ?>-static" autocomplete="off"><?php echo _("Static IP") ?>
|
||||||
</label>
|
</label>
|
||||||
</div><!-- /.btn-group -->
|
</div><!-- /.btn-group -->
|
||||||
<h4>' . _("Enable Fallback to Static Option") . '</h4>
|
<h4><?php echo _("Enable Fallback to Static Option") ?></h4>
|
||||||
<div class="btn-group" data-toggle="buttons">
|
<div class="btn-group" data-toggle="buttons">
|
||||||
<label class="btn btn-primary">
|
<label class="btn btn-primary">
|
||||||
<input type="radio" name="'.htmlspecialchars($interface, ENT_QUOTES).'-dhcpfailover" id="'.htmlspecialchars($interface, ENT_QUOTES).'-failover" autocomplete="off">' . _("Enabled") . '
|
<input type="radio" name="<?php echo $if_quoted ?>-dhcpfailover" id="<?php echo $if_quoted ?>-failover" autocomplete="off"><?php echo _("Enabled") ?>
|
||||||
</label>
|
</label>
|
||||||
<label class="btn btn-warning">
|
<label class="btn btn-warning">
|
||||||
<input type="radio" name="'.htmlspecialchars($interface, ENT_QUOTES).'-dhcpfailover" id="'.htmlspecialchars($interface, ENT_QUOTES).'-nofailover" autocomplete="off">' . _("Disabled") . '
|
<input type="radio" name="<?php echo $if_quoted ?>-dhcpfailover" id="<?php echo $if_quoted ?>-nofailover" autocomplete="off"><?php echo _("Disabled") ?>
|
||||||
</label>
|
</label>
|
||||||
</div><!-- /.btn-group -->
|
</div><!-- /.btn-group -->
|
||||||
</div><!-- /.form-group -->
|
</div><!-- /.form-group -->
|
||||||
<hr />
|
|
||||||
<h4>' . _("Static IP Options") . '</h4>
|
<hr />
|
||||||
<div class="form-group">
|
|
||||||
<label for="'.htmlspecialchars($interface, ENT_QUOTES).'-ipaddress">' . _("IP Address") . '</label>
|
<h4><?php echo _("Static IP Options") ?></h4>
|
||||||
<input type="text" class="form-control" id="'.htmlspecialchars($interface, ENT_QUOTES).'-ipaddress" placeholder="0.0.0.0">
|
<div class="form-group">
|
||||||
</div>
|
<label for="<?php echo $if_quoted ?>-ipaddress"><?php echo _("IP Address") ?></label>
|
||||||
<div class="form-group">
|
<input type="text" class="form-control" id="<?php echo $if_quoted ?>-ipaddress" placeholder="0.0.0.0">
|
||||||
<label for="'.htmlspecialchars($interface, ENT_QUOTES).'-netmask">' . _("Subnet Mask") . '</label>
|
</div>
|
||||||
<input type="text" class="form-control" id="'.htmlspecialchars($interface, ENT_QUOTES).'-netmask" placeholder="255.255.255.0">
|
<div class="form-group">
|
||||||
</div>
|
<label for="<?php echo $if_quoted ?>-netmask"><?php echo _("Subnet Mask") ?></label>
|
||||||
<div class="form-group">
|
<input type="text" class="form-control" id="<?php echo $if_quoted ?>-netmask" placeholder="255.255.255.0">
|
||||||
<label for="'.htmlspecialchars($interface, ENT_QUOTES).'-gateway">' . _("Default Gateway") . '</label>
|
</div>
|
||||||
<input type="text" class="form-control" id="'.htmlspecialchars($interface, ENT_QUOTES).'-gateway" placeholder="0.0.0.0">
|
<div class="form-group">
|
||||||
</div>
|
<label for="<?php echo $if_quoted ?>-gateway"><?php echo _("Default Gateway") ?></label>
|
||||||
<div class="form-group">
|
<input type="text" class="form-control" id="<?php echo $if_quoted ?>-gateway" placeholder="0.0.0.0">
|
||||||
<label for="'.htmlspecialchars($interface, ENT_QUOTES).'-dnssvr">' . _("DNS Server") . '</label>
|
</div>
|
||||||
<input type="text" class="form-control" id="'.htmlspecialchars($interface, ENT_QUOTES).'-dnssvr" placeholder="0.0.0.0">
|
<div class="form-group">
|
||||||
</div>
|
<label for="<?php echo $if_quoted ?>-dnssvr"><?php echo _("DNS Server") ?></label>
|
||||||
<div class="form-group">
|
<input type="text" class="form-control" id="<?php echo $if_quoted ?>-dnssvr" placeholder="0.0.0.0">
|
||||||
<label for="'.htmlspecialchars($interface, ENT_QUOTES).'-dnssvralt">' . _("Alternate DNS Server") . '</label>
|
</div>
|
||||||
<input type="text" class="form-control" id="'.htmlspecialchars($interface, ENT_QUOTES).'-dnssvralt" placeholder="0.0.0.0">
|
<div class="form-group">
|
||||||
</div>
|
<label for="<?php echo $if_quoted ?>-dnssvralt"><?php echo _("Alternate DNS Server") ?></label>
|
||||||
<a href="#" class="btn btn-outline btn-primary intsave" data-int="'.htmlspecialchars($interface, ENT_QUOTES).'">' . _("Save settings") . '</a>
|
<input type="text" class="form-control" id="<?php echo $if_quoted ?>-dnssvralt" placeholder="0.0.0.0">
|
||||||
<a href="#" class="btn btn-warning intapply" data-int="'.htmlspecialchars($interface, ENT_QUOTES).'">' . _("Apply settings") . '</a>
|
</div>
|
||||||
</form>
|
<a href="#" class="btn btn-outline btn-primary intsave" data-int="<?php echo $if_quoted ?>"><?php echo _("Save settings") ?></a>
|
||||||
</div>
|
<a href="#" class="btn btn-warning intapply" data-int="<?php echo $if_quoted ?>"><?php echo _("Apply settings") ?></a>
|
||||||
</div><!-- /.tab-panel -->
|
</form>
|
||||||
</div>';
|
|
||||||
}
|
</div>
|
||||||
?>
|
</div><!-- /.tab-panel -->
|
||||||
</div><!-- /.tab-content -->
|
</div>
|
||||||
</div><!-- /.panel-body -->
|
<?php endforeach ?>
|
||||||
<div class="panel-footer"><?php echo _("Information provided by /sys/class/net"); ?></div>
|
|
||||||
|
</div><!-- /.tab-content -->
|
||||||
|
</div><!-- /.panel-body -->
|
||||||
|
<div class="panel-footer"><?php echo _("Information provided by /sys/class/net"); ?></div>
|
||||||
</div><!-- /.panel-primary -->
|
</div><!-- /.panel-primary -->
|
||||||
</div><!-- /.col-lg-12 -->
|
</div><!-- /.col-lg-12 -->
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue