mirror of
https://github.com/PretendoNetwork/website.git
synced 2026-06-13 04:10:50 -05:00
added error messages for login/register
This commit is contained in:
parent
d519b4ae0e
commit
5becdb4241
|
|
@ -42,4 +42,14 @@ body footer .content {
|
|||
.card .content .lowText {
|
||||
text-align: right;
|
||||
color: #707070;
|
||||
}
|
||||
|
||||
.error {
|
||||
background-color: #eea9a9;
|
||||
border-left: 3px solid #d83434;
|
||||
padding: 1em;
|
||||
color: rgba(0, 0, 0, 0.7);
|
||||
}
|
||||
.error.hide {
|
||||
display: none;
|
||||
}
|
||||
|
|
@ -12,7 +12,9 @@ function postAjax(url, data, success) {
|
|||
}
|
||||
|
||||
function showErrorPopup(errorText) {
|
||||
console.log(errorText)
|
||||
console.log(errorText);
|
||||
document.getElementById('errorBox').innerHTML = errorText;
|
||||
document.getElementById('errorBox').classList.remove('hide');
|
||||
}
|
||||
|
||||
function login() {
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@
|
|||
<div class="content">
|
||||
<p class="txt-highlight">ERROR</p>
|
||||
<h1 class="txt-title small">{{ locale.login.card.title }}</h1>
|
||||
<div id="errorBox" class="error hide"></div>
|
||||
<form method="POST">
|
||||
<label for="email">{{ locale.login.card.email_text }}</label>
|
||||
<input type="text" class="hasLabel" id="email_input" name="email">
|
||||
|
|
|
|||
|
|
@ -14,6 +14,7 @@
|
|||
<div class="content">
|
||||
<p class="txt-highlight">{{ locale.register.card.caption }}</p>
|
||||
<h1 class="txt-title small">{{ locale.register.card.title }}</h1>
|
||||
<div id="errorBox" class="error hide"></div>
|
||||
<form method="POST">
|
||||
<label for="email">{{ locale.register.card.email_text }}</label>
|
||||
<input type="text" class="hasLabel" id="email_input" name="email">
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user