login.html 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. {% comment %}
  2. Licensed to Cloudera, Inc. under one
  3. or more contributor license agreements. See the NOTICE file
  4. distributed with this work for additional information
  5. regarding copyright ownership. Cloudera, Inc. licenses this file
  6. to you under the Apache License, Version 2.0 (the
  7. "License"); you may not use this file except in compliance
  8. with the License. You may obtain a copy of the License at
  9. http://www.apache.org/licenses/LICENSE-2.0
  10. Unless required by applicable law or agreed to in writing, software
  11. distributed under the License is distributed on an "AS IS" BASIS,
  12. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. See the License for the specific language governing permissions and
  14. limitations under the License.
  15. {% endcomment %}
  16. <div id="hue-flogin">
  17. <form action="/accounts/login_ajax" method="post">
  18. <img class="hue-login_logo" src="/static/art/hue-login-logo.png" width="61" height="56" alt="Hue Login Logo"/>
  19. <input alt="your username" type="text" name="username" class="hue-username" tabIndex="1"/>
  20. <img src="/static/art/error.png" width="14" height="14" alt="Error" class="jframe-errorImg"/>
  21. <input alt="your password" type="password" name="password" class="hue-password" tabIndex="2" />
  22. <input type="submit" class="hue-submit hue-continue" name="continue" value="continue" title="continue"/>
  23. <img src="/static/art/login-spinner.gif" class="hue-spinner" width="16" height="16" alt="loading..."/>
  24. <img src="/static/art/password-help.png" width="76" height="5" alt="Password Help" id="hue-pwhelp" tabIndex="3">
  25. </form>
  26. </div>
  27. <div id="hue-restore-option">
  28. Restore my last session: <input type="checkbox" checked="true" name="hue-restore-option" value="restore">
  29. </div>
  30. <script>
  31. //if there is a session to restore, show the option
  32. window.addEvent('domready', function(){
  33. var option = $('hue-restore-option');
  34. option.addEvent('mousedown', function(e){
  35. e.stop();
  36. if ($(e.target) == option) {
  37. var input = option.getElement('input');
  38. input.set('checked', !input.get('checked'));
  39. }
  40. });
  41. {%if first_login_ever %}
  42. option.hide();
  43. {%endif%}
  44. });
  45. </script>
  46. {%if first_login_ever %}
  47. <div id="hue-flogin-first">
  48. <p>Since this is your first time logging in,
  49. please pick any username and password.</p>
  50. <p style="margin-bottom: 0px;"><em>Be sure to remember these, as they
  51. will become your superuser account for Hue</em>.</p>
  52. </div>
  53. {% endif %}