Skip to content

Commit

Permalink
Some style changes, including red to mark errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrjbq7 committed May 27, 2010
1 parent 0a64639 commit c7eb03b
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
17 changes: 15 additions & 2 deletions tracsql/htdocs/common.css
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -4,14 +4,27 @@ div.query table {
border: 1px #ccc solid; border: 1px #ccc solid;
} }


div.query textarea {
border: 1px #ccc solid;
font-family: monospace;·
font-size: 1.0em;
padding: 3px;
}


div.results table thead th { div.results table thead th {
font-weight: bold; font-weight: bold;
border-bottom: 1px #ccc solid; border-bottom: 1px #ccc solid;
padding: 5px ; padding: 3px ;
padding-left: 5px;
padding-right: 5px;
} }


div.results table tbody td { div.results table tbody td {
padding: 5px ; padding: 3px ;
padding-left: 5px;
padding-right: 5px;
vertical-align: top;
} }


div.results table tbody tr:hover { div.results table tbody tr:hover {
Expand Down
7 changes: 7 additions & 0 deletions tracsql/templates/sql.html
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -21,7 +21,14 @@ <h1>Query</h1>
<input type="hidden" name="action" value="" /> <input type="hidden" name="action" value="" />
<table cellpadding="3"> <table cellpadding="3">
<tr><td colspan="2"> <tr><td colspan="2">
<py:choose test="error">
<py:when>
<textarea id="text" name="query" cols="80" rows="15" style="color: red;">${query}</textarea>
</py:when>
<py:otherwise>
<textarea id="text" name="query" cols="80" rows="15">${query}</textarea> <textarea id="text" name="query" cols="80" rows="15">${query}</textarea>
</py:otherwise>
</py:choose>
</td></tr> </td></tr>
<tr><td align="left"> <tr><td align="left">
<input type="submit" value="Submit" />&nbsp; <input type="submit" value="Submit" />&nbsp;
Expand Down

0 comments on commit c7eb03b

Please sign in to comment.