Преглед на файлове

HUE-7813 [useradmin] Add login dropdown when there is only one item

Ying Chen преди 8 години
родител
ревизия
c4c9cc1
променени са 1 файла, в които са добавени 9 реда и са изтрити 1 реда
  1. 9 1
      desktop/core/src/desktop/templates/login.mako

+ 9 - 1
desktop/core/src/desktop/templates/login.mako

@@ -44,6 +44,10 @@ ${ commonheader(_("Welcome to Hue"), "login", user, request, "50px", True, True)
     height: 6px;
     width: 100%;
   }
+
+  select {
+    width: 100%;
+  }
 </style>
 
 %if not is_hue4():
@@ -114,7 +118,11 @@ ${ commonheader(_("Welcome to Hue"), "login", user, request, "50px", True, True)
     ${ form['password'].errors | n,unicode }
 
     %if active_directory:
-    <div>
+    <div
+      %if len(form.fields['server'].choices) == 1:
+        class="hide"
+      %endif
+      >
       ${ form['server'] | n,unicode }
     </div>
     %endif