Better error feedback to user.
This commit is contained in:
parent
32b9c27da9
commit
53790a394c
3 changed files with 18 additions and 2 deletions
10
forms.tmpl
10
forms.tmpl
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue