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:
|
# if isEdit:
|
||||||
<input type="checkbox" name="delete" value="Delete">Delete Post<br />
|
<input type="checkbox" name="delete" value="Delete">Delete Post<br />
|
||||||
# end if
|
# end if
|
||||||
|
#if c.errorMsg != "":
|
||||||
|
<div style="float: left; width: 100%;">
|
||||||
|
<span class="error">$c.errorMsg</span>
|
||||||
|
</div>
|
||||||
|
#end if
|
||||||
<br/>
|
<br/>
|
||||||
<input type="submit" name="previewBtn" value="Preview" />
|
<input type="submit" name="previewBtn" value="Preview" />
|
||||||
<input type="submit" name="postBtn" value="Submit" />
|
<input type="submit" name="postBtn" value="Submit" />
|
||||||
|
|
@ -219,6 +224,11 @@
|
||||||
<td>${TextWidget(c, "antibot", "", maxlength=4)}</td>
|
<td>${TextWidget(c, "antibot", "", maxlength=4)}</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
#if c.errorMsg != "":
|
||||||
|
<div style="float: left; width: 100%;">
|
||||||
|
<span class="error">$c.errorMsg</span>
|
||||||
|
</div>
|
||||||
|
#end if
|
||||||
<input type="submit" value="Register">
|
<input type="submit" value="Register">
|
||||||
</form>
|
</form>
|
||||||
#end proc
|
#end proc
|
||||||
|
|
|
||||||
|
|
@ -120,7 +120,7 @@
|
||||||
<input type="submit" style="display: none;"
|
<input type="submit" style="display: none;"
|
||||||
id="hdnLogin" value="Login" />
|
id="hdnLogin" value="Login" />
|
||||||
</form>
|
</form>
|
||||||
#if c.errorMsg != "":
|
#if c.errorMsg != "" and c.req.pathInfo.normalizeUri == "/dologin":
|
||||||
<span class="error">$c.errorMsg</span>
|
<span class="error">$c.errorMsg</span>
|
||||||
#end if
|
#end if
|
||||||
<a href="${frontQuery}register" class="button"
|
<a href="${frontQuery}register" class="button"
|
||||||
|
|
|
||||||
|
|
@ -496,7 +496,7 @@ div#sidebar .content .search
|
||||||
width: 95%;
|
width: 95%;
|
||||||
}
|
}
|
||||||
|
|
||||||
div#sidebar .content span.error
|
span.error
|
||||||
{
|
{
|
||||||
float: left;
|
float: left;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|
@ -508,6 +508,12 @@ div#sidebar .content span.error
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
section#body #content span.error
|
||||||
|
{
|
||||||
|
width: 25%;
|
||||||
|
margin-top: 5px;
|
||||||
|
margin-bottom: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
article#content form
|
article#content form
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue