Skip to content

Commit e40c591

Browse files
committed
Add 3 alert boxes styles success,info,danger
Show a notification message on multiphp edit/server page
1 parent eb90d03 commit e40c591

File tree

3 files changed

+68
-1
lines changed

3 files changed

+68
-1
lines changed

web/css/styles.min.css

Lines changed: 59 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -691,7 +691,6 @@ body {
691691
font-size: 0.9rem;
692692
height: 100%;
693693
color: #929292;
694-
letter-spacing: -0.02em;
695694
}
696695

697696
.body-login, .body-reset {
@@ -1053,6 +1052,65 @@ a {
10531052
padding-top: 0.6rem;
10541053
}
10551054

1055+
.alert {
1056+
border-radius: 3px;
1057+
box-sizing: border-box;
1058+
display: block;
1059+
font-size: 0.75rem;
1060+
font-weight: 500;
1061+
margin-top: 1rem;
1062+
padding: 0.7rem;
1063+
position: relative;
1064+
text-align: justify;
1065+
}
1066+
1067+
.alert i.fas {
1068+
border-radius: 1rem;
1069+
font-size: 1.4rem;
1070+
font-weight: 600;
1071+
height: 2rem;
1072+
left: 0.5rem;
1073+
line-height: 2rem;
1074+
position: absolute;
1075+
text-align: center;
1076+
top: 0.75rem;
1077+
width: 2rem;
1078+
}
1079+
1080+
.alert.alert-with-icon {
1081+
padding-left: 3rem;
1082+
min-height: 3.5rem;
1083+
}
1084+
.alert.alert-info {
1085+
color: #fff;
1086+
background-color: #618ecc;
1087+
}
1088+
.alert.alert-info i.fas {
1089+
color: #618ecc;
1090+
background-color: white;
1091+
}
1092+
1093+
.alert.alert-danger {
1094+
color: #fff;
1095+
background-color: #ec6c6c;
1096+
}
1097+
.alert.alert-danger i.fas {
1098+
color: #ec6c6c;
1099+
background-color: white;
1100+
}
1101+
1102+
.alert.alert-success {
1103+
color: #fff;
1104+
background-color: #5ea64c;
1105+
}
1106+
.alert.alert-success i.fas {
1107+
color: #5ea64c;
1108+
background-color: white;
1109+
}
1110+
1111+
form#vstobjects .alert {
1112+
width: 380px;
1113+
}
10561114

10571115
.l-stat {
10581116
margin: 34px auto;

web/inc/i18n/en.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -766,5 +766,9 @@
766766
'Theme' => 'Appearance',
767767

768768
'Operating System' => 'Operating System',
769+
'Please wait while php is installed or removed' => 'Installing or removing php versions will take cca 1 min for every php version which will be changed,
770+
please be patient until the process is finished.',
771+
'Avoid adding web domains on admin account' => 'Due to the increased access rights, we strongly advise against using the admin account for direct hosting of web domains.
772+
Always use a separate unprivileged user account instead.',
769773

770774
);

web/templates/admin/edit_server.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,11 @@
247247
<tr>
248248
<td class="vst-text">
249249
<?php print __('Enabled multi PHP versions') ?>
250+
251+
<span class="alert alert-info alert-with-icon">
252+
<i class="fas fa-info"></i>
253+
<?=__('Please wait while php is installed or removed')?>
254+
</span>
250255
</td>
251256
</tr>
252257
<?php foreach($v_php_versions as $php_version): ?>

0 commit comments

Comments
 (0)