Просмотр исходного кода

Add 3 alert boxes styles success,info,danger

Show a notification message on multiphp edit/server page
Robert Zollner 6 лет назад
Родитель
Сommit
e40c591cf1
3 измененных файлов с 68 добавлено и 1 удалено
  1. 59 1
      web/css/styles.min.css
  2. 4 0
      web/inc/i18n/en.php
  3. 5 0
      web/templates/admin/edit_server.html

+ 59 - 1
web/css/styles.min.css

@@ -691,7 +691,6 @@ body {
   font-size: 0.9rem;
   height: 100%;
   color: #929292;
-  letter-spacing: -0.02em;
 }
 
 .body-login, .body-reset {
@@ -1053,6 +1052,65 @@ a {
   padding-top: 0.6rem;
 }
 
+.alert {
+  border-radius: 3px;
+  box-sizing: border-box;
+  display: block;
+  font-size: 0.75rem;
+  font-weight: 500;
+  margin-top: 1rem;
+  padding: 0.7rem;
+  position: relative;
+  text-align: justify;
+}
+
+.alert i.fas {
+  border-radius: 1rem;
+  font-size: 1.4rem;
+  font-weight: 600;
+  height: 2rem;
+  left: 0.5rem;
+  line-height: 2rem;
+  position: absolute;
+  text-align: center;
+  top: 0.75rem;
+  width: 2rem;
+}
+
+.alert.alert-with-icon {
+  padding-left: 3rem;
+  min-height: 3.5rem;
+}
+.alert.alert-info {
+  color: #fff;
+  background-color: #618ecc;
+}
+.alert.alert-info i.fas {
+  color: #618ecc;
+  background-color: white;
+}
+
+.alert.alert-danger {
+  color: #fff;
+  background-color: #ec6c6c;
+}
+.alert.alert-danger i.fas {
+  color: #ec6c6c;
+  background-color: white;
+}
+
+.alert.alert-success {
+  color: #fff;
+  background-color: #5ea64c;
+}
+.alert.alert-success i.fas {
+  color: #5ea64c;
+  background-color: white;
+}
+
+form#vstobjects .alert {
+  width: 380px;
+}
 
 .l-stat {
   margin: 34px auto;

+ 4 - 0
web/inc/i18n/en.php

@@ -766,5 +766,9 @@ $LANG['en'] = array(
     'Theme' => 'Appearance',
 
     'Operating System' => 'Operating System',
+    '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,
+    please be patient until the process is finished.',
+    '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.
+    Always use a separate unprivileged user account instead.',
     
 );

+ 5 - 0
web/templates/admin/edit_server.html

@@ -247,6 +247,11 @@
                                         <tr>
                                             <td class="vst-text">
                                                 <?php print __('Enabled multi PHP versions') ?>
+
+                                                <span class="alert alert-info alert-with-icon">
+                                                    <i class="fas fa-info"></i>
+                                                    <?=__('Please wait while php is installed or removed')?>
+                                                </span>
                                             </td>
                                         </tr>
                                         <?php foreach($v_php_versions as $php_version): ?>