$this->add('text', 'description', ts('Description'), array('size' => CRM_Utils_Type::HUGE));
$this->add('checkbox', 'is_default', ts('Is this Label Format the default?'));
+ // currently we support only mailing label creation, hence comment below code
+ /*
$options = array(
'label_format' => ts('Mailing Label'),
'name_badge' => ts('Name Badge'),
if ($this->_action != CRM_Core_Action::ADD) {
$labelType->freeze();
}
+ */
$this->add('select', 'paper_size', ts('Sheet Size'),
array(
}
$values = $this->controller->exportValues($this->getName());
+
+ // since we currently support only mailing label format
+ $values['label_type'] = 'label_format';
+
$values['is_default'] = isset($values['is_default']);
// Restore field names that were converted because they are illegal PHP/SMARTY variable names
<td> </td>
<td colspan="3">{$form.is_default.html} {$form.is_default.label}</td>
</tr>
- <tr class="crm-labelFormat-form-block-label_type">
+ <!--tr class="crm-labelFormat-form-block-label_type">
<td class="right">{$form.label_type.label}</td>
<td colspan="3">{$form.label_type.html}</td>
- </tr>
+ </tr-->
<tr>
<td class="right">{$form.paper_size.label}</td>
<td>{$form.paper_size.html}</td>