Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Updated styles to accomodate for better form validation messages.

  • Loading branch information...
commit 61919250563d22c4e347c05ff81476c37202551f 1 parent b539040
Allen Chang allen authored
Showing with 8 additions and 6 deletions.
  1. +1 −1  css/styles.css
  2. +7 −5 pages/articles.xsl
2  css/styles.css
View
@@ -430,7 +430,7 @@ form p.success {
margin: 1px !important;
}
-form p.error {
+form .error {
color: #5f311b;
background-color: #fb834b;
border-top: 1px solid #fcc8a4;
12 pages/articles.xsl
View
@@ -21,11 +21,13 @@
<xsl:for-each select="events/save-comment">
<xsl:choose>
<xsl:when test="@result = 'success'"><p class="{@result}">Your comment has been saved successfully.</p></xsl:when>
- <xsl:otherwise>
- <p class="{@result}">The system encountered errors when saving your comment.</p>
- <ul>
- <xsl:apply-templates select="//@message"/>
- </ul>
+ <xsl:otherwise>
+ <div class="{@result}">
+ <p>The system encountered errors when saving your comment.</p>
+ <ul>
+ <xsl:apply-templates select="//@message"/>
+ </ul>
+ </div>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
Please sign in to comment.
Something went wrong with that request. Please try again.