diff options
-rw-r--r-- | gentoobrowse/css/screen.css | 6 | ||||
-rw-r--r-- | gentoobrowse/xslt/form.xslt | 11 |
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> |