Skip to content

Commit

Permalink
CIWEMb-372: Set the visible width of each field
Browse files Browse the repository at this point in the history
  • Loading branch information
ahed-compucorp committed Jul 18, 2023
1 parent 7e30c79 commit 215c80b
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions CRM/MembershipExtras/Form/PaymentScheme.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@ public function buildQuickForm() {
return;
}

$this->add('text', 'name', ts('Name'), NULL, TRUE);
$this->add('text', 'admin_title', ts('Admin Title'), NULL);
$this->add('textarea', 'description', ts('Description'), NULL);
$this->add('text', 'public_title', ts('Public Title'), NULL, TRUE);
$this->add('textarea', 'public_description', ts('Public Description'), NULL, TRUE);
$this->add('text', 'name', ts('Name'), ['maxlength' => 250, 'size' => 50], TRUE);
$this->add('text', 'admin_title', ts('Admin Title'), ['maxlength' => 250, 'size' => 50]);
$this->add('textarea', 'description', ts('Description'), ['maxlength' => 500, 'cols' => 49]);
$this->add('text', 'public_title', ts('Public Title'), ['maxlength' => 250, 'size' => 50], TRUE);
$this->add('textarea', 'public_description', ts('Public Description'), ['maxlength' => 500, 'cols' => 49], TRUE);
$this->addPaymentProcessorField();
$this->add(
'select',
Expand All @@ -72,7 +72,7 @@ public function buildQuickForm() {
TRUE
);
$this->add('checkbox', 'enabled', ts('Enabled'), NULL, FALSE);
$this->add('textarea', 'parameters', ts('Parameters'), NULL, TRUE);
$this->add('textarea', 'parameters', ts('Parameters'), ['cols' => 49], TRUE);

$this->addButtons([
[
Expand Down Expand Up @@ -138,6 +138,7 @@ public function getRenderableElementNames() {
$elementNames[] = $element->getName();
}
}

return $elementNames;
}

Expand Down Expand Up @@ -165,7 +166,6 @@ private function addPaymentProcessorField() {
$select = ['' => ts('- select -')] + $paymentProcessors;

$this->add('select', 'payment_processor', ts('Payment Processor'), $select, TRUE);

}

private function isDeleteContext() {
Expand Down

0 comments on commit 215c80b

Please sign in to comment.