Guest User

Untitled

a guest
Jul 14th, 2018
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.46 KB | None | 0 0
  1. <div class="myAuthWidget">
  2. <div class="myAuthLoggedInPanel" style="display: none">
  3. <form dojoAttachPoint="logout_form" action="/logout/" method="POST">
  4. <p>
  5. <fieldset>
  6. Welcome <a><span dojoAttachPoint="username"></span></a>.<br/>
  7. You have <span dojoAttachPoint="comments_count"></span> new comments <span dojoAttachPoint="commentsThingy"></span>
  8. <a href="javascript:void(0)" class="button-link">Logout</a>
  9. </fieldset>
  10. </p>
  11. </form>
  12. </div>
  13. <div class="myAuthLoginPanel" style="display: none">
  14. <h3 class="myAuthTitle">Login</h3>
  15. <form action="/login/" dojoAttachPoint="login_form" method="POST">
  16. <p><span style="color: red; text-decoration: bold" id="error"></span>
  17. <fieldset>
  18. <label for="username">Username:</label>
  19. <input class="tbox" id="username" name="username" type="text" />
  20. <label for="password">Password:</label>
  21. <input class="tbox" id="password" name="password" type="password" />
  22. <a href="javascript:void(0)" onclick="" class="button-link">Log in</a>
  23. </fieldset>
  24. </p>
  25. </form>
  26. </div>
  27. </div>
  28. <!--
  29. // use dojo.toggleClass(this.domNode, 'isLoggedIn', isUserLoggedIn);
  30. // have a css class such as this: .myAuthWidget.isLoggedIn .myAuthLoginPanel { display: block };
  31. -->
Add Comment
Please, Sign In to add comment