diff options
author | Antonio Gallo <tonicucoz@gmail.com> | 2011-12-03 12:30:25 +0000 |
---|---|---|
committer | Antonio Gallo <tonicucoz@gmail.com> | 2011-12-03 12:30:25 +0000 |
commit | d30d70afd95653bb356603612db6519d6e6ebead (patch) | |
tree | 8ca2f2a7f24eeea1203b0042015d25f18f97496b /h-source/Library/Form | |
parent | f56fa1fc50484d99906a0a22e2931f9c1fe708b6 (diff) |
improved i18n
Diffstat (limited to 'h-source/Library/Form')
-rwxr-xr-x | h-source/Library/Form/Entry.php | 1 | ||||
-rwxr-xr-x | h-source/Library/Form/Form.php | 2 | ||||
-rwxr-xr-x | h-source/Library/Form/Select.php | 2 |
3 files changed, 4 insertions, 1 deletions
diff --git a/h-source/Library/Form/Entry.php b/h-source/Library/Form/Entry.php index a17ac5e..8136dda 100755 --- a/h-source/Library/Form/Entry.php +++ b/h-source/Library/Form/Entry.php @@ -32,6 +32,7 @@ abstract class Form_Entry { public $labelString = null; //label of the form public $labelClass = null; //the class of the tag of the label public $options = array(); //options (if the entry is a <select> entry or a radio button). Associative array or comma-divided list. + public $reverse = null; //reverse label with value in select entries public $defaultValue = ''; public $wrap = array(); public $deleteButton = null; diff --git a/h-source/Library/Form/Form.php b/h-source/Library/Form/Form.php index f358651..a1a9fda 100755 --- a/h-source/Library/Form/Form.php +++ b/h-source/Library/Form/Form.php @@ -81,6 +81,7 @@ class Form_Form { $defaultValue = array_key_exists('defaultValue',$entry) ? $entry['defaultValue'] : null; $wrap = array_key_exists('wrap',$entry) ? $entry['wrap'] : array(); $deleteButton = array_key_exists('deleteButton',$entry) ? $entry['deleteButton'] : null; + $reverse = array_key_exists('reverse',$entry) ? $entry['reverse'] : null; $this->entry[$name]->entryClass = $entryClass; $this->entry[$name]->labelString = $labelString; @@ -90,6 +91,7 @@ class Form_Form { $this->entry[$name]->defaultValue = $defaultValue; $this->entry[$name]->wrap = $wrap; $this->entry[$name]->deleteButton = $deleteButton; + $this->entry[$name]->reverse = $reverse; } } diff --git a/h-source/Library/Form/Select.php b/h-source/Library/Form/Select.php index 521e3b5..53d7632 100755 --- a/h-source/Library/Form/Select.php +++ b/h-source/Library/Form/Select.php @@ -39,7 +39,7 @@ class Form_Select extends Form_Entry $returnString .= $wrap[1]; $returnString .= $this->getLabelTag(); $returnString .= $wrap[2]; - $returnString .= Html_Form::select($this->entryName,$value,$this->options,$this->className, $this->idName); + $returnString .= Html_Form::select($this->entryName,$value,$this->options,$this->className, $this->idName, $this->reverse); $returnString .= $wrap[3]; $returnString .="</div>\n"; $returnString .= $wrap[4]; |