Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .invisible
- {
- display: none;
- }
- <div>
- <div dojoAttachPoint="LoginPane" id="LoginPane" dojoType="dijit.layout.ContentPane">
- <h3>Login</h3>
- <form dojoType="dijit.form.Form" class="dijitForm" dojoAttachEvent="onSubmit: login">
- <p class="dijitForm">
- <span style="color: red; text-decoration: bold" id="error"></span>
- <fieldset>
- <label for="username">
- Username:
- </label>
- <input class="tbox" type="text" dojoType="dijit.form.ValidationTextBox" id="username" name="username" dojoAttachPoint="username" regExp=".+" invalidMessage="Please type a username" required="true"/>
- <label for="password">
- Password:
- </label>
- <input class="tbox" type="password" dojoType="dijit.form.ValidationTextBox" id="password" name="password" dojoAttachPoint="password" regExp=".+" invalidMessage="Please type a password" required="true"/>
- <input type="submit" class="button" value="Log in" />
- </fieldset>
- </p>
- </form>
- </div>
- <div dojoAttachPoint="LogoutPane" class="invisible" dojoType="dijit.layout.ContentPane">
- <h3>Logout</h3>
- <form dojoType="dijit.form.Form" class="dijitForm" dojoAttachEvent="onSubmit: logout">
- <p class="dijitForm">
- <fieldset>
- Welcome <span dojoAttachPoint="usernameLabel"></span>
- <input type="submit" class="button" value="Log out" />
- </fieldset>
- </p>
- </form>
- </div>
- </div>
Add Comment
Please, Sign In to add comment