adding a label to the form fields (Datatables column headers)

This commit is contained in:
Naomi 2013-08-07 17:55:18 -04:00
parent aaf2e5c2f6
commit 27b079ace9
11 changed files with 202 additions and 83 deletions

View file

@ -193,11 +193,7 @@ class Application_Form_EditHistoryItem extends Zend_Form
$label = $item[self::ITEM_ID_SUFFIX];
$id = self::ID_PREFIX.$label;
$el = new $formElType[self::ITEM_CLASS]($id);
//cleaning up presentation of tag name for labels.
$label = implode(" ", explode("_", $label));
$label = ucwords($label);
$el->setLabel(_($label));
$el->setLabel($item["label"]);
if (isset($formElType["attrs"])) {