Skip to content

Commit 7eb9d8d

Browse files
authored
Fix more UI bugs (hestiacp#3311)
* Fix counter "Ip list page" * Remove extra tabs / white lines text area ssl * Remove also for ip white list
1 parent 4fff6c7 commit 7eb9d8d

File tree

2 files changed

+9
-12
lines changed

2 files changed

+9
-12
lines changed

web/templates/pages/edit_server.php

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -945,9 +945,7 @@ class="form-link"
945945
class="form-control u-min-height100 u-console"
946946
name="v_ssl_crt"
947947
id="v_ssl_crt"
948-
>
949-
<?= htmlentities(trim($v_ssl_crt, "'")) ?>
950-
</textarea>
948+
><?= htmlentities(trim($v_ssl_crt, "'")) ?></textarea>
951949
</div>
952950
<div class="u-mb20">
953951
<label for="v_ssl_key" class="form-label">
@@ -957,9 +955,7 @@ class="form-control u-min-height100 u-console"
957955
class="form-control u-min-height100 u-console"
958956
name="v_ssl_key"
959957
id="v_ssl_key"
960-
>
961-
<?= htmlentities(trim($v_ssl_key, "'")) ?>
962-
</textarea>
958+
><?= htmlentities(trim($v_ssl_key, "'")) ?></textarea>
963959
</div>
964960
<ul class="values-list">
965961
<li class="values-list-item">
@@ -1049,13 +1045,11 @@ class="fas icon-dim icon-maroon js-section-toggle-icon"
10491045
<?= _("Allowed IP addresses for API") ?>
10501046
<span class="optional">1 IP address per line</span>
10511047
</label>
1052-
<textarea class="form-control" name="v_api_allowed_ip" id="v_api_allowed_ip">
1053-
<?php
1048+
<textarea class="form-control" name="v_api_allowed_ip" id="v_api_allowed_ip"><?php
10541049
foreach (explode(",", $_SESSION["API_ALLOWED_IP"]) as $ip) {
10551050
echo trim($ip)."\n";
10561051
}
1057-
?>
1058-
</textarea>
1052+
?></textarea>
10591053
</div>
10601054
</div>
10611055
<h3 class="u-mt20 u-mb10">

web/templates/pages/list_firewall_ipset.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@
3737
</div>
3838

3939
<!-- Begin firewall IP address list item loop -->
40-
<?php foreach ($data as $key => $value) {
40+
<?php
41+
foreach ($data as $key => $value) {
4142
$listname = $key; ?>
4243
<div class="l-unit animate__animated animate__fadeIn">
4344
<div class="l-unit__col l-unit__col--right">
@@ -75,7 +76,9 @@
7576
<div class="clearfix l-unit__stat-col--left u-text-center compact-4"><?= $data[$key]["TIME"] ?></div>
7677
</div>
7778
</div>
78-
<?php } ?>
79+
<?php
80+
$i++;
81+
} ?>
7982
</div>
8083

8184
<footer class="app-footer">

0 commit comments

Comments
 (0)