Pārlūkot izejas kodu

HUE-4100 [core] First user login checks are not displayed

Enrico Berti 9 gadi atpakaļ
vecāks
revīzija
94f0adb

+ 8 - 0
desktop/core/src/desktop/static/desktop/css/login.css

@@ -139,6 +139,14 @@
   z-index: 10000;
 }
 
+.trademark {
+  position: fixed;
+  bottom: 10px;
+  margin-left: auto;
+  margin-right: auto;
+  width: 100%;
+}
+
 @media screen and (max-width: 800px) {
   body {
     padding-top: 20px!important;

+ 8 - 8
desktop/core/src/desktop/templates/login.mako

@@ -65,24 +65,28 @@ ${ commonheader(_("Welcome to Hue"), "login", user, "50px", True, True) | n,unic
       %if backend_names == ['OAuthBackend']:
         hide
       %endif
-      %if form['username'].errors or login_errors:
+      %if form['username'].errors or (not form['username'].errors and not form['password'].errors and login_errors):
         error
       %endif
     ">
       ${ form['username'] | n,unicode }
     </div>
 
+    ${ form['username'].errors | n,unicode }
+
     <div class="text-input
       %if 'AllowAllBackend' in backend_names or backend_names == ['OAuthBackend']:
         hide
       %endif
-      %if form['password'].errors or login_errors:
+      %if form['password'].errors or (not form['username'].errors and not form['password'].errors and login_errors):
         error
       %endif
     ">
       ${ form['password'] | n,unicode }
     </div>
 
+    ${ form['password'].errors | n,unicode }
+
     %if active_directory:
     <div>
       ${ form['server'] | n,unicode }
@@ -114,12 +118,8 @@ ${ commonheader(_("Welcome to Hue"), "login", user, "50px", True, True) | n,unic
 </div>
 
 
-<div class="container-fluid">
-  <div class="row-fluid">
-    <div class="center muted">
-      ${ _('Hue and the Hue logo are trademarks of Cloudera, Inc.') }
-    </div>
-  </div>
+<div class="trademark center muted">
+  ${ _('Hue and the Hue logo are trademarks of Cloudera, Inc.') }
 </div>
 
 <script>