mirror of
https://github.com/pierre42100/ComunicWeb
synced 2024-11-29 15:26:27 +00:00
Add login link on create account page
This commit is contained in:
parent
b61b27736c
commit
71932197fa
@ -28,3 +28,8 @@
|
|||||||
.create-account-form .submit-form {
|
.create-account-form .submit-form {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.create-account-form .bottom-form-links {
|
||||||
|
text-align: center;
|
||||||
|
margin-top: 15px;
|
||||||
|
}
|
@ -106,6 +106,24 @@ ComunicWeb.pages.createAccount = {
|
|||||||
innerHTML: "Create the account"
|
innerHTML: "Create the account"
|
||||||
});
|
});
|
||||||
|
|
||||||
|
//Add bottom links area
|
||||||
|
var bottomLinks = createElem2({
|
||||||
|
appendTo: formRoot,
|
||||||
|
type: "div",
|
||||||
|
class: "bottom-form-links"
|
||||||
|
});
|
||||||
|
|
||||||
|
//Create a link to redirect to the login page
|
||||||
|
var loginLink = createElem2({
|
||||||
|
appendTo: bottomLinks,
|
||||||
|
type: "a",
|
||||||
|
innerHTML: "Login with an existing account"
|
||||||
|
});
|
||||||
|
loginLink.onclick = function(){
|
||||||
|
openPage("login");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
//Make the form lives
|
//Make the form lives
|
||||||
submitButton.onclick = function(){
|
submitButton.onclick = function(){
|
||||||
|
|
||||||
|
@ -29,12 +29,19 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- /.col -->
|
<!-- /.col -->
|
||||||
|
|
||||||
|
<!-- Submit button -->
|
||||||
<div class="col-xs-4">
|
<div class="col-xs-4">
|
||||||
<button type="submit" class="btn btn-primary btn-block btn-flat btn-login">{sign_in}</button>
|
<button type="submit" class="btn btn-primary btn-block btn-flat btn-login">{sign_in}</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- /.col -->
|
<!-- /.col -->
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
|
<!-- Create an account -->
|
||||||
|
<a target="create_account">Create an account</a>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<!-- /.login-box-body -->
|
<!-- /.login-box-body -->
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user