$this->add('select', 'financial_type_id', ts('Financial Type'),
array('' => ts('- select -')) + CRM_Contribute_PseudoConstant::financialType()
);
+
+ $this->add('text', 'num_terms', ts('Extend Membership by'), array('onchange' => "setPaymentBlock();"), TRUE);
+ $this->addRule('num_terms', ts('Please enter a whole number for how many periods to renew.'), 'integer');
+
if (CRM_Core_Permission::access('CiviContribute') && !$this->_mode) {
$this->addElement('checkbox', 'record_contribution', ts('Record Renewal Payment?'), NULL, array('onclick' => "checkPayment();"));
$this->addDate('receive_date', ts('Received'), FALSE, array('formatType' => 'activityDateTime'));
- $this->add('text', 'num_terms', ts('Extend Membership by'), array('onchange' => "setPaymentBlock();"), TRUE);
- $this->addRule('num_terms', ts('Please enter a whole number for how many periods to renew.'), 'integer');
-
$this->add('select', 'payment_instrument_id', ts('Payment Method'),
array('' => ts('- select -')) + CRM_Contribute_PseudoConstant::paymentInstrument(),
FALSE, array('onChange' => "return showHideByValue('payment_instrument_id','4','checkNumber','table-row','select',false);")
<td class="label">{$form.renewal_date.label}</td>
<td>{include file="CRM/common/jcalendar.tpl" elementName=renewal_date}</td>
</tr>
+ <tr id="defaultNumTerms" class="crm-member-membershiprenew-form-block-default-num_terms">
+ <td colspan="2" class="description">
+ {ts}Renewal extends membership end date by one membership period{/ts}
+ <a id="changeTermsLink" href='#'
+ onclick='changeNumTerms(); return false;'>{ts}change{/ts}</a>
+ </td>
+ </tr>
+ <tr id="changeNumTerms" class="crm-member-membershiprenew-form-block-change-num_terms">
+ <td class="label">{$form.num_terms.label}</td>
+ <td>{$form.num_terms.html|crmAddClass:two} {ts}membership periods{/ts}<br/>
+ <span
+ class="description">{ts}Extend the membership end date by this many membership periods. Make sure the appropriate corresponding fee is entered below.{/ts}</span>
+ </td>
+ </tr>
{if $accessContribution and ! $membershipMode}
<tr class="crm-member-membershiprenew-form-block-record_contribution">
<td class="label">{$form.record_contribution.label}</td>
<td colspan="2">
<fieldset>
<legend>{ts}Renewal Payment and Receipt{/ts}</legend>
- <table class="form-layout-compressed">
- <tr id="defaultNumTerms" class="crm-member-membershiprenew-form-block-default-num_terms">
- <td colspan="2" class="description">
- {ts}Renewal extends membership end date by one membership period{/ts}
- <a id="changeTermsLink" href='#'
- onclick='changeNumTerms(); return false;'>{ts}change{/ts}</a>
- </td>
- </tr>
- <tr id="changeNumTerms" class="crm-member-membershiprenew-form-block-change-num_terms">
- <td class="label">{$form.num_terms.label}</td>
- <td>{$form.num_terms.html|crmAddClass:two} {ts}membership periods{/ts}<br/>
- <span
- class="description">{ts}Extend the membership end date by this many membership periods. Make sure the appropriate corresponding fee is entered below.{/ts}</span>
- </td>
- </tr>
{/if}
{include file="CRM/Member/Form/MembershipCommon.tpl"}
{if $emailExists and $outBound_option != 2}