| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
-*/
+ */
/**
*
// currently we support only mailing label creation, hence comment below code
/*
$options = array(
- 'label_format' => ts('Mailing Label'),
- 'name_badge' => ts('Name Badge'),
+ 'label_format' => ts('Mailing Label'),
+ 'name_badge' => ts('Name Badge'),
);
$labelType = $this->addRadio('label_type', ts('Used For'), $options, null, ' ');
if ($this->_action != CRM_Core_Action::ADD) {
- $labelType->freeze();
+ $labelType->freeze();
}
- */
+ */
$this->add('select', 'paper_size', ts('Sheet Size'),
array(
- 0 => ts('- default -')
+ 0 => ts('- default -'),
) + CRM_Core_BAO_PaperSize::getList(TRUE), FALSE,
array(
- 'onChange' => "selectPaper( this.value );"
+ 'onChange' => "selectPaper( this.value );",
) + $disabled
);
$this->add('static', 'paper_dimensions', NULL, ts('Sheet Size (w x h)'));
$this->add('select', 'orientation', ts('Orientation'), CRM_Core_BAO_LabelFormat::getPageOrientations(), FALSE,
array(
- 'onChange' => "updatePaperDimensions();"
+ 'onChange' => "updatePaperDimensions();",
) + $disabled
);
$this->add('select', 'font_name', ts('Font Name'), CRM_Core_BAO_LabelFormat::getFontNames($this->_group));
$this->addRule('label', ts('Name already exists in Database.'), 'objectExists', array(
'CRM_Core_BAO_LabelFormat',
- $this->_id
+ $this->_id,
));
$this->addRule('NX', ts('Must be an integer'), 'integer');
$this->addRule('NY', ts('Must be an integer'), 'integer');
}
CRM_Core_Session::setStatus($status, ts('Saved'), 'success');
}
+
}