Better error feedback to user.

This commit is contained in:
Dominik Picheta 2014-12-07 01:55:59 +00:00
commit 53790a394c
3 changed files with 18 additions and 2 deletions

View file

@ -180,6 +180,11 @@
# if isEdit:
<input type="checkbox" name="delete" value="Delete">Delete Post<br />
# end if
#if c.errorMsg != "":
<div style="float: left; width: 100%;">
<span class="error">$c.errorMsg</span>
</div>
#end if
<br/>
<input type="submit" name="previewBtn" value="Preview" />
<input type="submit" name="postBtn" value="Submit" />
@ -219,6 +224,11 @@
<td>${TextWidget(c, "antibot", "", maxlength=4)}</td>
</tr>
</table>
#if c.errorMsg != "":
<div style="float: left; width: 100%;">
<span class="error">$c.errorMsg</span>
</div>
#end if
<input type="submit" value="Register">
</form>
#end proc

View file

@ -120,7 +120,7 @@
<input type="submit" style="display: none;"
id="hdnLogin" value="Login" />
</form>
#if c.errorMsg != "":
#if c.errorMsg != "" and c.req.pathInfo.normalizeUri == "/dologin":
<span class="error">$c.errorMsg</span>
#end if
<a href="${frontQuery}register" class="button"

View file

@ -496,7 +496,7 @@ div#sidebar .content .search
width: 95%;
}
div#sidebar .content span.error
span.error
{
float: left;
width: 100%;
@ -508,6 +508,12 @@ div#sidebar .content span.error
font-weight: bold;
}
section#body #content span.error
{
width: 25%;
margin-top: 5px;
margin-bottom: 5px;
}
article#content form
{