if (in_array($optionKey, $freezeOptions)) {
$element->freeze();
// CRM-14696 - Improve display for sold out price set options
- $element->setLabel($label . ' <span class="sold-out-option">' . ts('Sold out') . '</span>');
+ $element->setLabel($label . ' <span class="sold-out-option">(' . ts('Sold out') . ')</span>');
}
//CRM-10117
if (in_array($opId, $freezeOptions)) {
$choice[$opId]->freeze();
// CRM-14696 - Improve display for sold out price set options
- $choice[$opId]->setText($choice[$opId]->getText() . ' <span class="sold-out-option">(' . ts('Sold out') . ')</span>');
+ $choice[$opId]->setText('<span class="sold-out-option">' . $choice[$opId]->getText() . ' (' . ts('Sold out') . ')</span>');
}
}
if (!empty($qf->_membershipBlock) && $field->name == 'contribution_amount') {
$allowedOptions[] = $opt['id'];
}
// CRM-14696 - Improve display for sold out price set options
- else {
- $opt['label'] = $opt['label'] . ' <span class="sold-out-option">(' . ts('Sold out') . ')</span>';
+ else {
+ $opt['label'] = $opt['label'] . ' (' . ts('Sold out') . ')';
}
$selectOption[$opt['id']] = $opt['label'];
if (in_array($opId, $freezeOptions)) {
$check[$opId]->freeze();
// CRM-14696 - Improve display for sold out price set options
- $check[$opId]->setText($check[$opId]->getText() . ' <span class="sold-out-option">(' . ts('Sold out') . ')</span>');
+ $check[$opId]->setText('<span class="sold-out-option">' . $check[$opId]->getText() . ' (' . ts('Sold out') . ')</span>');
}
}
$element = &$qf->addGroup($check, $elementName, $label);
max-width: 100%;
}
-#crm-container.crm-public .label {
+#crm-container.crm-public .label,
+#crm-container.crm-public .price-field-amount {
padding-top: 6px;
+ font-size: 15px;
}
.crm-container.crm-public .select2-container,
display: none;
}
-#crm-container .price_set-section .sold-out-option {
- font-style: italic;
+#crm-container .sold-out-option,
+#crm-container .price-set-row span.sold-out-option .crm-price-amount-label,
+#crm-container .price-set-row span.sold-out-option .crm-price-amount-amount {
+ font-style: italic !important;
+ font-weight: normal !important;
+ color: #666 !important;
}
#crm-container .crm-extensions-upgrade {
background: #ffb;