]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
add some classes to inputs
authorEvan Prodromou <evan@prodromou.name>
Fri, 27 Jun 2008 14:55:53 +0000 (10:55 -0400)
committerEvan Prodromou <evan@prodromou.name>
Fri, 27 Jun 2008 14:55:53 +0000 (10:55 -0400)
darcs-hash:20080627145553-84dde-31e52074c9b8327bcebc46372e4ee8f86b77ea20.gz

lib/util.php

index eb824f4b8f27d962d732dd655e1d2ba6fcede454..4d55e5a69b9789523704246706ebcfa6bbac475d 100644 (file)
@@ -308,6 +308,7 @@ function common_input($id, $label, $value=NULL,$instructions=NULL) {
        common_element('label', array('for' => $id), $label);
        $attrs = array('name' => $id,
                                   'type' => 'text',
+                                  'class' => 'input_text',
                                   'id' => $id);
        if ($value) {
                $attrs['value'] = htmlspecialchars($value);
@@ -324,6 +325,7 @@ function common_checkbox($id, $label, $checked=false, $instructions=NULL, $value
        common_element_start('p');
        $attrs = array('name' => $id,
                                   'type' => 'checkbox',
+                                  'class' => 'checkbox',
                                   'id' => $id);
        if ($value) {
                $attrs['value'] = htmlspecialchars($value);
@@ -354,6 +356,7 @@ function common_password($id, $label, $instructions=NULL) {
        common_element('label', array('for' => $id), $label);
        $attrs = array('name' => $id,
                                   'type' => 'password',
+                                  'class' => 'password',
                                   'id' => $id);
        common_element('input', $attrs);
        if ($instructions) {