FALSE,
'#2786C2',
),
- 'color_title_bg' => array(ts('Widget title background color'),
+ 'color_title_bg' => array(ts('Title background color'),
'text',
FALSE,
'#FFFFFF',
FALSE,
'#FFFFFF',
),
- 'color_widget_bg' => array(ts('Widget background color'),
+ 'color_widget_bg' => array(ts('Background color'),
'text',
FALSE,
'#96C0E7',
),
- 'color_description' => array(ts('Widget description color'),
+ 'color_description' => array(ts('Description color'),
'text',
FALSE,
'#000000',
),
- 'color_border' => array(ts('Widget border color'),
+ 'color_border' => array(ts('Border color'),
'text',
FALSE,
'#96C0E7',
),
- 'color_button' => array(ts('Widget button text color'),
+ 'color_button' => array(ts('Button text color'),
'text',
FALSE,
'#000000',
),
- 'color_button_bg' => array(ts('Widget button background color'),
+ 'color_button_bg' => array(ts('Button background color'),
'text',
FALSE,
'#96C0E7',
),
- 'color_button_bg' => array(ts('Widget button background color'),
+ 'color_button_bg' => array(ts('Button background color'),
'text',
FALSE,
'#96C0E7',
$elem->setValue($output);
}
}
+ CRM_Utils_System::setTitle(ts('Edit Widget'));
}
else {
+ CRM_Utils_System::setTitle(ts('Create Widget'));
/** Keep template in civicrm-wci/templates folder*/
$output = file_get_contents('templates/CRM/Wci/Page/wciwidget.tpl',FILE_USE_INCLUDE_PATH);
$elem = $this->getElement('custom_template');
}
function fillData() {
$count = 1;
- if (isset($this->_id)) {
+ if (isset($this->_id)) {
/** Updating existing progress bar*/
$query = "SELECT * FROM civicrm_wci_progress_bar where id=" . $this->_id;
$params = array();
$count++;
}
+ CRM_Utils_System::setTitle(ts('Edit Progress Bar'));
$count--; // because last iteration increments it to the next
}
else {
'Percentage', // field label
true // is required
);
+ CRM_Utils_System::setTitle(ts('Create Progress Bar'));
}
$this->addElement('hidden', 'contrib_count', $count);
// export form elements
$this->assign('elementNames', $this->getRenderableElementNames());
-
+
parent::buildQuickForm();
}
}
}
// Example: Set the page-title dynamically; alternatively, declare a static title in xml/Menu/*.xml
- CRM_Utils_System::setTitle(ts('ProgressBarList'));
+ CRM_Utils_System::setTitle(ts('Progress Bar List'));
$query = "SELECT * FROM civicrm_wci_progress_bar";
$params = array();
self::$_actionLinks = array(
CRM_Core_Action::UPDATE => array(
- 'name' => ts('Update'),
+ 'name' => ts('Edit'),
'url' => CRM_Utils_System::currentPath(),
'qs' => 'action=update&reset=1&id=%%id%%',
'title' => ts('Update'),
self::$_actionLinks = array(
CRM_Core_Action::UPDATE => array(
- 'name' => ts('Update'),
+ 'name' => ts('Edit'),
'url' => CRM_Utils_System::currentPath(),
'qs' => 'action=update&reset=1&id=%%id%%',
'title' => ts('Update'),
'child' => array (
'1' => array (
'attributes' => array (
- 'label' => ts('New widget'),
+ 'label' => ts('New Widget'),
'name' => 'new_widget',
'url' => 'civicrm/wci/widget/add',
'permission' => 'access CiviReport,access CiviContribute',
'2' => array (
'attributes' => array (
- 'label' => ts('Manage widget'),
+ 'label' => ts('Manage Widget'),
'name' => 'manage_widget',
'url' => 'civicrm/wci/widget?reset=1',
'permission' => 'access CiviReport,access CiviContribute',
'3' => array (
'attributes' => array (
- 'label' => ts('New Progress bar'),
+ 'label' => ts('New Progress Bar'),
'name' => 'new_progress_bar',
'url' => 'civicrm/wci/progress-bar/add',
'permission' => 'access CiviReport,access CiviContribute',
'4' => array (
'attributes' => array (
- 'label' => ts('Manage Progress bar'),
+ 'label' => ts('Manage Progress Bar'),
'name' => 'manage_progress_bar',
'url' => 'civicrm/wci/progress-bar?reset=1',
'permission' => 'access CiviReport,access CiviContribute',