Guest User

Untitled

a guest
Jul 15th, 2018
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.65 KB | None | 0 0
  1. .invisible
  2. {
  3. display: none;
  4. }
  5.  
  6. <div>
  7. <div dojoAttachPoint="LoginPane" id="LoginPane" dojoType="dijit.layout.ContentPane">
  8. <h3>Login</h3>
  9. <form dojoType="dijit.form.Form" class="dijitForm" dojoAttachEvent="onSubmit: login">
  10. <p class="dijitForm">
  11. <span style="color: red; text-decoration: bold" id="error"></span>
  12. <fieldset>
  13. <label for="username">
  14. Username:
  15. </label>
  16. <input class="tbox" type="text" dojoType="dijit.form.ValidationTextBox" id="username" name="username" dojoAttachPoint="username" regExp=".+" invalidMessage="Please type a username" required="true"/>
  17. <label for="password">
  18. Password:
  19. </label>
  20. <input class="tbox" type="password" dojoType="dijit.form.ValidationTextBox" id="password" name="password" dojoAttachPoint="password" regExp=".+" invalidMessage="Please type a password" required="true"/>
  21. <input type="submit" class="button" value="Log in" />
  22. </fieldset>
  23. </p>
  24. </form>
  25. </div>
  26. <div dojoAttachPoint="LogoutPane" class="invisible" dojoType="dijit.layout.ContentPane">
  27. <h3>Logout</h3>
  28. <form dojoType="dijit.form.Form" class="dijitForm" dojoAttachEvent="onSubmit: logout">
  29. <p class="dijitForm">
  30. <fieldset>
  31. Welcome <span dojoAttachPoint="usernameLabel"></span>
  32. <input type="submit" class="button" value="Log out" />
  33. </fieldset>
  34. </p>
  35. </form>
  36. </div>
  37. </div>
Add Comment
Please, Sign In to add comment