pieforms-commit Mailing List for Pieforms
Status: Alpha
Brought to you by:
oracleshinoda
You can subscribe to this list here.
2006 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(73) |
Dec
(83) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2007 |
Jan
(16) |
Feb
(19) |
Mar
(12) |
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
(14) |
Sep
(2) |
Oct
(1) |
Nov
(2) |
Dec
(45) |
2008 |
Jan
(20) |
Feb
(3) |
Mar
(2) |
Apr
|
May
|
Jun
|
Jul
(3) |
Aug
|
Sep
|
Oct
(1) |
Nov
(1) |
Dec
(1) |
2009 |
Jan
(2) |
Feb
(2) |
Mar
|
Apr
(2) |
May
(1) |
Jun
(5) |
Jul
(1) |
Aug
(2) |
Sep
(1) |
Oct
|
Nov
(7) |
Dec
|
2010 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
S | M | T | W | T | F | S |
---|---|---|---|---|---|---|
|
|
|
|
|
|
1
|
2
|
3
|
4
|
5
|
6
|
7
|
8
|
9
|
10
|
11
|
12
|
13
|
14
|
15
|
16
|
17
(1) |
18
|
19
|
20
|
21
|
22
|
23
|
24
|
25
|
26
(1) |
27
|
28
|
29
|
30
|
|
|
|
|
|
|
From: <ora...@us...> - 2007-09-17 12:23:54
|
Revision: 219 http://pieforms.svn.sourceforge.net/pieforms/?rev=219&view=rev Author: oracleshinoda Date: 2007-09-17 05:23:56 -0700 (Mon, 17 Sep 2007) Log Message: ----------- Added support for 'showdescriptiononerror' flag - does what it says on the tin. Modified Paths: -------------- pieforms-php5/trunk/src/pieform/renderers/div.php pieforms-php5/trunk/src/pieform/renderers/table.php pieforms-php5/trunk/src/pieform.php Modified: pieforms-php5/trunk/src/pieform/renderers/div.php =================================================================== --- pieforms-php5/trunk/src/pieform/renderers/div.php 2007-08-19 22:11:09 UTC (rev 218) +++ pieforms-php5/trunk/src/pieform/renderers/div.php 2007-09-17 12:23:56 UTC (rev 219) @@ -74,7 +74,7 @@ // Description - optional description of the element, or other note that should be visible // on the form itself (without the user having to hover over contextual help - if (!empty($rawelement['description'])) { + if ((!$form->has_errors() || $form->get_property('showdescriptiononerror')) && !empty($rawelement['description'])) { $result .= '<div class="description"> ' . Pieform::hsc($rawelement['description']) . "</div>"; } Modified: pieforms-php5/trunk/src/pieform/renderers/table.php =================================================================== --- pieforms-php5/trunk/src/pieform/renderers/table.php 2007-08-19 22:11:09 UTC (rev 218) +++ pieforms-php5/trunk/src/pieform/renderers/table.php 2007-09-17 12:23:56 UTC (rev 219) @@ -99,7 +99,7 @@ // Description - optional description of the element, or other note that should be visible // on the form itself (without the user having to hover over contextual help - if (!empty($rawelement['description'])) { + if ((!$form->has_errors() || $form->get_property('showdescriptiononerror')) && !empty($rawelement['description'])) { $result .= "\t<tr>\n\t\t<td colspan=\"2\" class=\"description\">"; $result .= $rawelement['description']; $result .= "</td>\n\t</tr>\n"; Modified: pieforms-php5/trunk/src/pieform.php =================================================================== --- pieforms-php5/trunk/src/pieform.php 2007-08-19 22:11:09 UTC (rev 218) +++ pieforms-php5/trunk/src/pieform.php 2007-09-17 12:23:56 UTC (rev 219) @@ -292,6 +292,10 @@ // Whether to add * markers after each required field 'requiredmarker' => false, + + // Whether to show the description as well as the error message + // when displaying errors + 'showdescriptiononerror' => true, ); $data = array_merge($formdefaults, $formconfig, $data); $this->data = $data; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |