Browse Source

Addin freeze class for items in the formvalidator

Julio Montoya 13 years ago
parent
commit
87da1f2253
2 changed files with 9 additions and 2 deletions
  1. 6 1
      main/css/base.css
  2. 3 1
      main/inc/lib/pear/HTML/QuickForm/element.php

+ 6 - 1
main/css/base.css

@@ -3563,9 +3563,14 @@ span.form_error {
 }
 
 form .row {
-    margin-bottom: 18px;
+    margin-bottom: 18px;        
 }
 
+form .formw .freeze {
+    display: block;
+    padding-top: 8px;    
+
+}
 form .label {
     color: #404040;
     float: left;

+ 3 - 1
main/inc/lib/pear/HTML/QuickForm/element.php

@@ -238,8 +238,10 @@ class HTML_QuickForm_element extends HTML_Common
         // Modified by Ivan Tcholakov, 16-MAR-2010.
         //return ('' != $value? htmlspecialchars($value): ' ') .
         //       $this->_getPersistantData();
-        return ('' != $value ? @htmlspecialchars($value, ENT_COMPAT, HTML_Common::charset()): ' ') .
+        
+        $value =  ('' != $value ? @htmlspecialchars($value, ENT_COMPAT, HTML_Common::charset()): ' ') .
                $this->_getPersistantData();
+        return '<span class="freeze">'.$value.'</span>';
         //
     } //end func getFrozenHtml