mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-19 19:15:22 +00:00
core/vpn/ipsec: allow easier override of colors in themes (#3286)
This commit is contained in:
parent
569abf9ac6
commit
36ea41ae68
@ -77,29 +77,46 @@ if (isset($config['ipsec']['phase2'])) {
|
||||
?>
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
$(".ipsec-tab").unbind('click').click(function(){
|
||||
$(".ipsec-tab").css('background-color', '#777777');
|
||||
$(".ipsec-tab").css('color', 'white');
|
||||
$(this).css('background-color', '#EEEEEE');
|
||||
$(this).css('color', 'black');
|
||||
$(".ipsec-tab").unbind('click').click(function() {
|
||||
$('.ipsec-tab').removeClass('activetab');
|
||||
$(this).addClass('activetab');
|
||||
$(".ipsec-tab-content").hide();
|
||||
$("#"+$(this).attr('data-for')).show();
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<style>
|
||||
.dashboard_grid_column table {
|
||||
table-layout: fixed;
|
||||
}
|
||||
|
||||
#ipsec #ipsec-mobile, #ipsec #ipsec-tunnel, #ipsec #ipsec-overview {
|
||||
background-color: #EEEEEE;
|
||||
}
|
||||
|
||||
#ipsec .ipsec-tab {
|
||||
background-color: #777777;
|
||||
color: white;
|
||||
}
|
||||
|
||||
#ipsec .ipsec-tab.activetab {
|
||||
background-color: #EEEEEE;
|
||||
color: black;
|
||||
}
|
||||
</style>
|
||||
<div id="tabs">
|
||||
<div data-for="ipsec-Overview" class="ipsec-tab table-cell" style="background-color:#EEEEEE; color:black; cursor: pointer; display:table-cell">
|
||||
<div data-for="ipsec-overview" class="ipsec-tab table-cell activetab" style="cursor: pointer; display:table-cell">
|
||||
<strong> <?=gettext("Overview");?> </strong>
|
||||
</div>
|
||||
<div data-for="ipsec-tunnel" class="ipsec-tab table-cell" style="background-color:#777777; color:white; cursor: pointer; display:table-cell">
|
||||
<div data-for="ipsec-tunnel" class="ipsec-tab table-cell" style="cursor: pointer; display:table-cell">
|
||||
<strong> <?=gettext("Tunnels");?> </strong>
|
||||
</div>
|
||||
<div data-for="ipsec-mobile" class="ipsec-tab table-cell" style="background-color:#777777; color:white; cursor: pointer; display:table-cell">
|
||||
<div data-for="ipsec-mobile" class="ipsec-tab table-cell" style="cursor: pointer; display:table-cell">
|
||||
<strong> <?=gettext("Mobile");?> </strong>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="ipsec-Overview" class="ipsec-tab-content" style="display:block;background-color:#EEEEEE;">
|
||||
<div id="ipsec-overview" class="ipsec-tab-content" style="display:block;">
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
@ -139,7 +156,7 @@ if (isset($config['ipsec']['phase2'])) {
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="ipsec-tunnel" class="ipsec-tab-content" style="display:none;background-color:#EEEEEE;">
|
||||
<div id="ipsec-tunnel" class="ipsec-tab-content" style="display:none;">
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
@ -166,7 +183,7 @@ if (isset($config['ipsec']['phase2'])) {
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div id="ipsec-mobile" class="ipsec-tab-content" style="display:none;background-color:#EEEEEE;">
|
||||
<div id="ipsec-mobile" class="ipsec-tab-content" style="display:none;">
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user