'cols' => 40
));
- if ($this->_selectedOutput == 'email') {
- $this->addButtons(array(
- array(
- 'type' => 'upload',
- 'name' => ts('Email Invoice'),
- 'isDefault' => TRUE,
- ),
- array(
- 'type' => 'cancel',
- 'name' => ts('Cancel'),
- ),
- )
- );
- }
- else {
- $this->addButtons(array(
- array(
- 'type' => 'upload',
- 'name' => ts('Process Invoice(s)'),
- 'isDefault' => TRUE,
- ),
- array(
- 'type' => 'cancel',
- 'name' => ts('Cancel'),
- ),
- )
- );
- }
+ $this->addButtons(array(
+ array(
+ 'type' => 'upload',
+ 'name' => $this->_selectedOutput == 'email' ? ts('Send Email') : ts('Process Invoice(s)'),
+ 'isDefault' => TRUE,
+ ),
+ array(
+ 'type' => 'cancel',
+ 'name' => ts('Cancel'),
+ ),
+ )
+ );
}
/**
text-decoration: line-through;
}
-.crm-printButton {
- float: right;
-}
-
.crm-container input.ng-invalid.ng-dirty,
.crm-container select.ng-invalid.ng-dirty,
.crm-container textarea.ng-invalid.ng-dirty {
{assign var='pdfUrlParams' value="reset=1&id=$id&cid=$contact_id"}
{assign var='emailUrlParams' value="reset=1&id=$id&cid=$contact_id&select=email"}
{if $invoicing && $cancelledStatus}
- <div class="crm-printButton">
+ <div class="css_right">
<a class="button no-popup" href="{crmURL p='civicrm/contribute/invoice' q=$pdfUrlParams}">
+ <div class="icon ui-icon-print"></div>
{if $contribution_status != 'Refunded'}
{ts}Print Invoice{/ts}</a>
{else}
{ts}Print Invoice and Credit Note{/ts}</a>
{/if}
<a class="button" href="{crmURL p='civicrm/contribute/invoice/email' q=$emailUrlParams}">
+ <div class="icon ui-icon-mail-closed"></div>
{ts}Email Invoice{/ts}</a>
</div>
{/if}
class="icon delete-icon"></div>{ts}Delete{/ts}</span></a>
{/if}
{include file="CRM/common/formButtons.tpl" location="bottom"}
- {if $invoicing && $cancelledStatus}
- <div class="crm-printButton">
- <a class="button no-popup" href="{crmURL p='civicrm/contribute/invoice' q=$pdfUrlParams}">
- {if $contribution_status != 'Refunded'}
- {ts}Print Invoice{/ts}</a>
- {else}
- {ts}Print Invoice and Credit Note{/ts}</a>
- {/if}
- <a class="button" href="{crmURL p='civicrm/contribute/invoice/email' q=$emailUrlParams}">
- {ts}Email Invoice{/ts}</a>
- </div>
- {/if}
</div>
</div>