Browse Source

Fix language prompt

Kristan Kenney 5 years ago
parent
commit
cb39c40315
1 changed files with 5 additions and 4 deletions
  1. 5 4
      web/templates/admin/edit_user.html

+ 5 - 4
web/templates/admin/edit_user.html

@@ -135,9 +135,7 @@
                                     <?php } ?>
                                 </td>
                             </tr>
-                            <?php if ($v_username == 'admin') {?>
-                                <!-- Hide option to change 'admin' user's role-->
-                            <? } else { ?>
+
                             <tr>
                                 <td class="vst-text input-label">
                                     <?php print _('Language');?>
@@ -162,7 +160,9 @@
                                     </select>
                                 </td>
                             </tr>
-                            <? } ?>
+                            <?php if ($v_username == 'admin') {?>
+                                <!-- Hide option to change 'admin' user's role-->
+                            <? } else { ?>
                             <tr>
                                 <td class="vst-text input-label">
                                     <?php print _('Role');?>
@@ -176,6 +176,7 @@
                                     </select>
                                 </td>
                             </tr>
+                            <? } ?>
                             <tr>
                                 <td class="vst-text input-label">
                                     <?php print _('Package');?>