Commit 8305144f authored by Ad Schellevis's avatar Ad Schellevis

(legacy, ipsec) hide columns in vpn_ipsec.php on small screens

parent b5af0b45
...@@ -335,11 +335,11 @@ $( document ).ready(function() { ...@@ -335,11 +335,11 @@ $( document ).ready(function() {
<tr> <tr>
<td>&nbsp;</td> <td>&nbsp;</td>
<td>&nbsp;</td> <td>&nbsp;</td>
<td><?=gettext("Type"); ?></td> <td class="hidden-xs"><?=gettext("Type"); ?></td>
<td><?=gettext("Remote Gateway"); ?></td> <td><?=gettext("Remote Gateway"); ?></td>
<td><?=gettext("Mode"); ?></td> <td class="hidden-xs"><?=gettext("Mode"); ?></td>
<td><?=gettext("Phase 1 Proposal"); ?></td> <td class="hidden-xs"><?=gettext("Phase 1 Proposal"); ?></td>
<td><?=gettext("Authentication"); ?></td> <td class="hidden-xs"><?=gettext("Authentication"); ?></td>
<td><?=gettext("Description"); ?></td> <td><?=gettext("Description"); ?></td>
<td> <td>
</td> </td>
...@@ -360,7 +360,7 @@ $( document ).ready(function() { ...@@ -360,7 +360,7 @@ $( document ).ready(function() {
<span class="glyphicon glyphicon-play"></span> <span class="glyphicon glyphicon-play"></span>
</button> </button>
</td> </td>
<td> <td class="hidden-xs">
<?=empty($ph1ent['protocol']) || $ph1ent['protocol'] == "inet" ? "IPv4" : "IPv6"; ?> <?=empty($ph1ent['protocol']) || $ph1ent['protocol'] == "inet" ? "IPv4" : "IPv6"; ?>
<?=empty($ph1ent['iketype']) || $ph1ent['iketype'] == "ikev1" ? "IKE" : "IKEv2"; ?> <?=empty($ph1ent['iketype']) || $ph1ent['iketype'] == "ikev1" ? "IKE" : "IKEv2"; ?>
</td> </td>
...@@ -399,10 +399,10 @@ $( document ).ready(function() { ...@@ -399,10 +399,10 @@ $( document ).ready(function() {
"<strong>" . gettext("Mobile Client") . "</strong>"; "<strong>" . gettext("Mobile Client") . "</strong>";
?> ?>
</td> </td>
<td> <td class="hidden-xs">
<?=htmlspecialchars($ph1ent['mode']);?> <?=htmlspecialchars($ph1ent['mode']);?>
</td> </td>
<td> <td class="hidden-xs">
<?=$p1_ealgos[$ph1ent['encryption-algorithm']['name']]['name'];?> <?=$p1_ealgos[$ph1ent['encryption-algorithm']['name']]['name'];?>
<?php <?php
if (!empty($ph1ent['encryption-algorithm']['keylen'])) { if (!empty($ph1ent['encryption-algorithm']['keylen'])) {
...@@ -432,7 +432,7 @@ $( document ).ready(function() { ...@@ -432,7 +432,7 @@ $( document ).ready(function() {
?> ?>
<?=gettext("DH Group"); ?>&nbsp;<?=$p1_dhgroups[$ph1ent['dhgroup']];?> <?=gettext("DH Group"); ?>&nbsp;<?=$p1_dhgroups[$ph1ent['dhgroup']];?>
</td> </td>
<td> <td class="hidden-xs">
<?php <?php
$p1_authentication_methods = array( $p1_authentication_methods = array(
'hybrid_rsa_server' => array( 'name' => 'Hybrid RSA + Xauth', 'mobile' => true ), 'hybrid_rsa_server' => array( 'name' => 'Hybrid RSA + Xauth', 'mobile' => true ),
...@@ -493,13 +493,13 @@ $( document ).ready(function() { ...@@ -493,13 +493,13 @@ $( document ).ready(function() {
<tr> <tr>
<td>&nbsp;</td> <td>&nbsp;</td>
<td>&nbsp;</td> <td>&nbsp;</td>
<td><?=gettext("Type"); ?></td> <td class="hidden-xs"><?=gettext("Type"); ?></td>
<td><?=gettext("Local Subnet"); ?></td> <td><?=gettext("Local Subnet"); ?></td>
<td><?=gettext("Remote Subnet"); ?></td> <td><?=gettext("Remote Subnet"); ?></td>
<td><?=gettext("Encryption Protocols"); ?></td> <td class="hidden-xs"><?=gettext("Encryption Protocols"); ?></td>
<td><?=gettext("Authenticity Protocols"); ?></td> <td class="hidden-xs"><?=gettext("Authenticity Protocols"); ?></td>
<td><?=gettext("PFS"); ?></td> <td class="hidden-xs"><?=gettext("PFS"); ?></td>
<td class ="list">&nbsp;</td> <td>&nbsp;</td>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
...@@ -520,7 +520,7 @@ $( document ).ready(function() { ...@@ -520,7 +520,7 @@ $( document ).ready(function() {
<span class="glyphicon glyphicon-play"></span> <span class="glyphicon glyphicon-play"></span>
</button> </button>
</td> </td>
<td> <td class="hidden-xs">
<?=$p2_protos[$ph2ent['protocol']];?> <?=$p2_protos[$ph2ent['protocol']];?>
<?=isset($ph2ent['mode']) ? array_search($ph2ent['mode'], array("IPv4 tunnel" => "tunnel", "IPv6 tunnel" => "tunnel6", "transport" => "transport")) : ""; ?> <?=isset($ph2ent['mode']) ? array_search($ph2ent['mode'], array("IPv4 tunnel" => "tunnel", "IPv6 tunnel" => "tunnel6", "transport" => "transport")) : ""; ?>
</td> </td>
...@@ -538,7 +538,7 @@ $( document ).ready(function() { ...@@ -538,7 +538,7 @@ $( document ).ready(function() {
<td>&nbsp;</td> <td>&nbsp;</td>
<?php <?php
endif;?> endif;?>
<td> <td class="hidden-xs">
<?php <?php
foreach ($ph2ent['encryption-algorithm-option'] as $k => $ph2ea) { foreach ($ph2ent['encryption-algorithm-option'] as $k => $ph2ea) {
if ($k > 0) { if ($k > 0) {
...@@ -554,7 +554,7 @@ $( document ).ready(function() { ...@@ -554,7 +554,7 @@ $( document ).ready(function() {
} }
}?> }?>
</td> </td>
<td> <td class="hidden-xs">
<?php <?php
if (!empty($ph2ent['hash-algorithm-option']) && is_array($ph2ent['hash-algorithm-option'])) { if (!empty($ph2ent['hash-algorithm-option']) && is_array($ph2ent['hash-algorithm-option'])) {
foreach ($ph2ent['hash-algorithm-option'] as $k => $ph2ha) { foreach ($ph2ent['hash-algorithm-option'] as $k => $ph2ha) {
...@@ -567,10 +567,10 @@ $( document ).ready(function() { ...@@ -567,10 +567,10 @@ $( document ).ready(function() {
</td> </td>
<?php <?php
if (isset($ph2ent['pfsgroup'])): ?> if (isset($ph2ent['pfsgroup'])): ?>
<td><?=gettext("Group"); ?> <?=$p2_pfskeygroups[$ph2ent['pfsgroup']];?> </td> <td class="hidden-xs"><?=gettext("Group"); ?> <?=$p2_pfskeygroups[$ph2ent['pfsgroup']];?> </td>
<?php <?php
else: ?> else: ?>
<td><?=gettext("off"); ?></td> <td class="hidden-xs"><?=gettext("off"); ?></td>
<?php <?php
endif; ?> endif; ?>
<td> <td>
...@@ -602,7 +602,8 @@ $( document ).ready(function() { ...@@ -602,7 +602,8 @@ $( document ).ready(function() {
$j++; $j++;
endforeach;?> endforeach;?>
<tr> <tr>
<td colspan="8"></td> <td colspan="4" class="hidden-xs"></td>
<td colspan="4"></td>
<td> <td>
<?php <?php
if ($j > 0) :?> if ($j > 0) :?>
...@@ -633,7 +634,8 @@ $( document ).ready(function() { ...@@ -633,7 +634,8 @@ $( document ).ready(function() {
$i++; $i++;
endforeach;?> endforeach;?>
<tr> <tr>
<td colspan="8"> </td> <td colspan="4" class="hidden-xs"></td>
<td colspan="4"> </td>
<td> <td>
<button <button
type="submit" type="submit"
......
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