فهرست منبع

Apply style to warning message add/web

Robert Zollner 6 سال پیش
والد
کامیت
d03d78378c
2فایلهای تغییر یافته به همراه7 افزوده شده و 9 حذف شده
  1. 1 2
      web/inc/i18n/en.php
  2. 6 7
      web/templates/admin/add_web.html

+ 1 - 2
web/inc/i18n/en.php

@@ -766,8 +766,7 @@ $LANG['en'] = array(
     'Theme' => 'Appearance',
     'Theme' => 'Appearance',
 
 
     'Operating System' => 'Operating System',
     '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.',
+    'Please wait while php is installed or removed' => 'Adding or removing PHP versions will take roughly 1 minute for every version which will be modified. Please wait until the process is finished and do not refresh the page.',
     '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.
     '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.',
     Always use a separate unprivileged user account instead.',
     
     

+ 6 - 7
web/templates/admin/add_web.html

@@ -49,15 +49,14 @@
                         <tr>
                         <tr>
                             <td class="step-top">
                             <td class="step-top">
                                 <span class="login-welcome"><?=__('Add Web Domain')?></span>
                                 <span class="login-welcome"><?=__('Add Web Domain')?></span>
+                                <?php if ($user == 'admin') { ?>
+                                <span class="alert alert-info alert-with-icon">
+                                    <i class="fas fa-exclamation"></i>
+                                    <?=__('Avoid adding web domains on admin account')?>
+                                </span>
+                                <?php } ?>
                             </td>
                             </td>
                         </tr>
                         </tr>
-                        <?php if ($user == 'admin') { ?>
-                        <tr>
-                            <td class="vst-text" style="width:390px;">
-                                <?php print __('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.');?>
-                            </td>
-                        </tr>
-                        <?php } ?>
                         <tr>
                         <tr>
                             <td class="vst-text step-top">
                             <td class="vst-text step-top">
                                 <?php print __('Domain');?>
                                 <?php print __('Domain');?>