summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrandomdan <randomdan@localhost>2011-03-10 13:54:01 +0000
committerrandomdan <randomdan@localhost>2011-03-10 13:54:01 +0000
commitc939a8bcb06cd29a4925f2d331061d397af8d375 (patch)
tree6a932df01eae73a9d453e32d5917b3a06d2a2b06
parentAllow specifying all sorts of previously hardcoded things, most importantly p... (diff)
downloadgentoobrowse-c939a8bcb06cd29a4925f2d331061d397af8d375.tar.bz2
gentoobrowse-c939a8bcb06cd29a4925f2d331061d397af8d375.tar.xz
gentoobrowse-c939a8bcb06cd29a4925f2d331061d397af8d375.zip
Show form submission errors in the form box
-rw-r--r--gentoobrowse/css/screen.css6
-rw-r--r--gentoobrowse/xslt/form.xslt11
2 files changed, 10 insertions, 7 deletions
diff --git a/gentoobrowse/css/screen.css b/gentoobrowse/css/screen.css
index 6d5d2f9..5b59d68 100644
--- a/gentoobrowse/css/screen.css
+++ b/gentoobrowse/css/screen.css
@@ -22,7 +22,8 @@ h2 {
margin: 0;
font-size: 18px;
}
-p {
+p.error {
+ color: red;
}
.colLeft {
@@ -77,9 +78,6 @@ form.generalForm table {
border: 1px solid #aaaaff;
}
-form.generalForm td {
- width: 75%;
-}
form.generalForm td input {
border: 1px solid #aaaaff;
width: 98%;
diff --git a/gentoobrowse/xslt/form.xslt b/gentoobrowse/xslt/form.xslt
index 4fd35e2..7bcdc1f 100644
--- a/gentoobrowse/xslt/form.xslt
+++ b/gentoobrowse/xslt/form.xslt
@@ -16,8 +16,8 @@
<table>
<xsl:for-each select="input">
<tr>
- <th><xsl:value-of select="@caption" /></th>
- <td>
+ <th width="25%"><xsl:value-of select="@caption" /></th>
+ <td colspan="2" width="75%">
<input>
<xsl:attribute name="type"><xsl:value-of select="@type" /></xsl:attribute>
<xsl:attribute name="name"><xsl:value-of select="@name" /></xsl:attribute>
@@ -31,7 +31,12 @@
</tr>
</xsl:for-each>
<tr>
- <th colspan="2" align="right">
+ <th colspan="2" width="75%">
+ <xsl:for-each select="/gentoo/project2:messages/message">
+ <p class="error"><xsl:value-of select="@text" /></p>
+ </xsl:for-each>
+ </th>
+ <th align="right" width="25%">
<input type="submit">
<xsl:attribute name="value"><xsl:value-of select="@submit" /></xsl:attribute>
</input>