mark required input fields visually (darker border and light yellow background)

This commit is contained in:
Ralf Becker 2007-12-09 08:11:55 +00:00
parent fc1ce1fa71
commit cbf94ab243
2 changed files with 15 additions and 0 deletions

View File

@ -984,6 +984,10 @@ foreach($sess as $key => $val)
{
$class = $this->expand_name($class,$show_c,$show_row,$content['.c'],$content['.row'],$content);
}
if ($cell['needed'] && !in_array($cell['type'],array('button','buttononly')))
{
$class .= ' inputRequired';
}
$cell_options = $cell['size'];
if (strchr($cell_options,'$') || $cell_options{0} == '@')
{

View File

@ -18,6 +18,17 @@
.gray {
color: gray;
}
.leftPad5 {
padding-left: 5px;
}
/*
* mark input as required
*/
.inputRequired input,.inputRequired select,.inputRequired textarea {
border: gray 1px solid;
background-color: #ffffd0;
}
/*
* Styles of the eT editor