{if $action ne 1 and $action ne 2}
<div class="action-link">
- <a href="{crmURL q="action=add&reset=1"}" id="newACL" class="button"><span><div class="icon ui-icon-circle-plus"></div>{ts}Add ACL{/ts}</span></a>
+ {crmButton q="action=add&reset=1" id="newACL" icon="circle-plus"}{ts}Add ACL{/ts}{/crmButton}
</div>
{/if}
</div>
{if $action ne 1 and $action ne 2}
<div class="crm-submit-buttons">
- <a href="{crmURL q="action=add&reset=1"}" id="newACL" class="button"><span><div class="icon ui-icon-circle-plus"></div>{ts}Add Role Assignment{/ts}</span></a>
+ {crmButton q="action=add&reset=1" id="newACL" icon="circle-plus"}{ts}Add Role Assignment{/ts}{/crmButton}
</div>
{/if}
</div>
</div>
{/if}
<div class="action-link">
- <a href="{crmURL q="action=add&reset=1"}" class="button"><span><div class="icon ui-icon-circle-plus"></div>{ts}Add Contact Type{/ts}</span></a>
- <a href="{crmURL p="civicrm/admin" q="reset=1"}" class="button cancel no-popup"><span><div class="icon ui-icon-close"></div> {ts}Done{/ts}</span></a>
+ {crmButton q="action=add&reset=1" icon="circle-plus"}{ts}Add Contact Type{/ts}{/crmButton}
+ {crmButton p="civicrm/admin" q="reset=1" class="cancel" icon="close"}{ts}Done{/ts}{/crmButton}
</div>
{/if}
<div class="crm-content-block">
{if $action ne 1 and $action ne 2}
<div class="action-link">
- <a href="{crmURL p="civicrm/event/add" q="action=add&is_template=1&reset=1"}" id="newEventTemplate" class="button">
- <span><div class="icon ui-icon-circle-plus"></div>{ts}Add Event Template{/ts}</span></a>
+ {crmButton p="civicrm/event/add" q="action=add&is_template=1&reset=1" id="newEventTemplate" icon="circle-plus"}{ts}Add Event Template{/ts}{/crmButton}
<div class="clear"></div>
</div>
{/if}
<div class="action-link">
- <a href="{crmURL q="reset=1"}" id="new" class="button crm-extensions-refresh"><span><div class="icon ui-icon-refresh"></div>{ts}Refresh{/ts}</span></a>
+ {crmButton q="reset=1" id="new" class="crm-extensions-refresh" icon="refresh"}{ts}Refresh{/ts}{/crmButton}
</div>
\ No newline at end of file
{if $action ne 1 and $action ne 2}
<div class="action-link">
- <a href="{crmURL q="action=add&reset=1"}" id="newJob" class="button"><span><div class="icon ui-icon-circle-plus"></div>{ts}Add New Scheduled Job{/ts}</span></a>
- <a href="{crmURL p='civicrm/admin/joblog' q="reset=1"}" id="jobLog" class="button"><span><div class="icon ui-icon-zoomin"></div>{ts}View Log (all jobs){/ts}</span></a>
+ {crmButton q="action=add&reset=1" id="newJob" icon="circle-plus"}{ts}Add New Scheduled Job{/ts}{/crmButton}
+ {crmButton p='civicrm/admin/joblog' q="reset=1" id="jobLog" icon="zoomin"}{ts}View Log (all jobs){/ts}{/crmButton}
</div>
{/if}
</div>
{/if}
<div class="action-link">
- <a href="{crmURL q="action=add&reset=1"}" id="newLocationType" class="button"><span><div class="icon ui-icon-circle-plus"></div>{ts}Add Option{/ts}</span></a>
- <a href="{crmURL p="civicrm/admin" q="reset=1"}" class="button cancel no-popup"><span><div class="icon ui-icon-close"></div> {ts}Done{/ts}</span></a>
+ {crmButton q="action=add&reset=1" id="newLocationType" icon="circle-plus"}{ts}Add Option{/ts}{/crmButton}
+ {crmButton p="civicrm/admin" q="reset=1" class="cancel" icon="close"}{ts}Done{/ts}{/crmButton}
</div>
{/if}
</div>
{/if}
<div class="action-link">
- <a href="{crmURL q="action=add&reset=1"}" id="newMailSettings" class="button"><span><div class="icon ui-icon-circle-plus"></div>{ts}Add Mail Account{/ts}</span></a>
- <a href="{crmURL p="civicrm/admin" q="reset=1"}" class="button cancel no-popup"><span><div class="icon ui-icon-close"></div> {ts}Done{/ts}</span></a>
+ {crmButton q="action=add&reset=1" id="newMailSettings" icon="circle-plus"}{ts}Add Mail Account{/ts}{/crmButton}
+ {crmButton p="civicrm/admin" q="reset=1" class="cancel" icon="close"}{ts}Done{/ts}{/crmButton}
</div>
{/if}
{if $action ne 1 and $action ne 2 and $type eq 'userTemplates'}
<div class="action-link">
- <a href="{crmURL p='civicrm/admin/messageTemplates/add' q="action=add&reset=1"}" id="newMessageTemplates" class="button"><span><div class="icon ui-icon-circle-plus"></div>{ts}Add Message Template{/ts}</span></a>
+ {crmButton p='civicrm/admin/messageTemplates/add' q="action=add&reset=1" id="newMessageTemplates" icon="circle-plus"}{ts}Add Message Template{/ts}{/crmButton}
</div>
<div class="spacer"></div>
{/if}
{if $action ne 1 and $action ne 2}
<div class="action-link">
- <a href="{crmURL q="action=add&reset=1"}" id="newOptionGroup" class="button"><span><div class="icon ui-icon-circle-plus"></div>{ts}Add Option Group{/ts}</span></a>
- <a href="{crmURL p="civicrm/admin" q="reset=1"}" class="button cancel no-popup"><span><div class="icon ui-icon-close"></div> {ts}Done{/ts}</span></a>
+ {crmButton q="action=add&reset=1" id="newOptionGroup" icon="circle-plus"}{ts}Add Option Group{/ts}{/crmButton}
+ {crmButton p="civicrm/admin" q="reset=1" class="cancel" icon="close"}{ts}Done{/ts}{/crmButton}
</div>
{/if}
</div>
{if $rows}
{if $isLocked ne 1}
<div class="action-link">
- <a href="{crmURL p="civicrm/admin/options/$gName" q='action=add&reset=1'}" class="button new-option"><span><div class="icon ui-icon-circle-plus"></div>{ts 1=$gLabel}Add %1{/ts}</span></a>
+ {crmButton p="civicrm/admin/options/$gName" q='action=add&reset=1' class="new-option" icon="circle-plus"}{ts 1=$gLabel}Add %1{/ts}{/crmButton}
</div>
{/if}
<div id={$gName}>
{/if}
<div class="action-link">
{if $isLocked ne 1}
- <a href="{crmURL p="civicrm/admin/options/$gName" q='action=add&reset=1'}" class="button new-option"><span><div class="icon ui-icon-circle-plus"></div>{ts 1=$gLabel}Add %1{/ts}</span></a>
+ {crmButton p="civicrm/admin/options/$gName" q='action=add&reset=1' class="new-option" icon="circle-plus"}{ts 1=$gLabel}Add %1{/ts}{/crmButton}
{/if}
- <a href="{crmURL p="civicrm/admin" q="reset=1"}" class="button cancel no-popup"><span><div class="icon ui-icon-close"></div> {ts}Done{/ts}</span></a>
+ {crmButton p="civicrm/admin" q="reset=1" class="cancel" icon="close"}{ts}Done{/ts}{/crmButton}
</div>
</div>
{/if}
{if $action ne 1 and $action ne 2}
<div class="action-link">
- <a href="{crmURL q="action=add&reset=1"}" class="button"><span><div class="icon ui-icon-circle-plus"></div> {ts}Add Participant Status{/ts}</span></a>
- <a href="{crmURL p="civicrm/admin" q="reset=1"}" class="button cancel no-popup"><span><div class="icon ui-icon-close"></div> {ts}Done{/ts}</span></a>
+ {crmButton q="action=add&reset=1" icon="circle-plus"}{ts}Add Participant Status{/ts}{/crmButton}
+ {crmButton p="civicrm/admin" q="reset=1" class="cancel" icon="close"}{ts}Done{/ts}{/crmButton}
</div>
{/if}
</div>
{if $action ne 1 and $action ne 2}
<div class="action-link">
- <a href="{crmURL q="action=add&reset=1&pp=$defaultPaymentProcessorType"}" id="newPaymentProcessor" class="button"><span><div class="icon ui-icon-circle-plus"></div>{ts}Add Payment Processor{/ts}</span></a>
+ {crmButton q="action=add&reset=1&pp=$defaultPaymentProcessorType" id="newPaymentProcessor" icon="circle-plus"}{ts}Add Payment Processor{/ts}{/crmButton}
</div>
{/if}
</div>
{ts}There are no Payment Processors entered.{/ts}
</div>
<div class="action-link">
- <a href="{crmURL p='civicrm/admin/paymentProcessor' q="action=add&reset=1&pp=$defaultPaymentProcessorType"}" id="newPaymentProcessor" class="button"><span><div class="icon ui-icon-circle-plus"></div>{ts}Add Payment Processor{/ts}</span></a>
+ {crmButton p='civicrm/admin/paymentProcessor' q="action=add&reset=1&pp=$defaultPaymentProcessorType" id="newPaymentProcessor" icon="circle-plus"}{ts}Add Payment Processor{/ts}{/crmButton}
</div>
{/if}
{/if}
{if $action ne 1 and $action ne 2}
<div class="action-link">
<a href="{crmURL q="action=add&reset=1"}" id="newPaymentProcessor">» {ts}New Payment Processor{/ts}</a>
- <a href="{crmURL p="civicrm/admin" q="reset=1"}" class="button cancel no-popup"><span><div class="icon ui-icon-close"></div> {ts}Done{/ts}</span></a>
+ {crmButton p="civicrm/admin" q="reset=1" class="cancel" icon="close"}{ts}Done{/ts}{/crmButton}
</div>
{/if}
</div>
{/if}
<div class="spacer"></div>
<div class="action-link">
- <a href="{crmURL q="action=add&reset=1"}" id="newPdfFormat" class="button"><span><div class="icon ui-icon-circle-plus"></div>{ts}Add PDF Page Format{/ts}</span></a>
- <a href="{crmURL p="civicrm/admin" q="reset=1"}" class="button cancel no-popup"><span><div class="icon ui-icon-close"></div> {ts}Done{/ts}</span></a>
+ {crmButton q="action=add&reset=1" id="newPdfFormat" icon="circle-plus"}{ts}Add PDF Page Format{/ts}{/crmButton}
+ {crmButton p="civicrm/admin" q="reset=1" class="cancel" icon="close"}{ts}Done{/ts}{/crmButton}
</div>
{/if}
{if $type eq 'configTemplates'}
<table class="report-layout">
<div class="action-link">
- <a href="{crmURL p='civicrm/admin/tplstrings/add' q='reset=1&action=add'}" class="button">
- <span>
- <div class="icon ui-icon-circle-plus"></div>{ts}Add New String{/ts}
- </span>
- </a>
+ {crmButton p='civicrm/admin/tplstrings/add' q='reset=1&action=add' icon="circle-plus"}{ts}Add New String{/ts}{/crmButton}
</div>
{if !empty( $template_row) }
<tr>
</head>
<br/>
<div class="action-link">
- <a href="{crmURL p='civicrm/admin/tplstrings/add' q='reset=1&action=add&config=1'}" class="button">
- <span>
- <div class="icon ui-icon-circle-plus"></div>{ts}Add New Config{/ts}
- </span>
- </a>
+ {crmButton p='civicrm/admin/tplstrings/add' q='reset=1&action=add&config=1' icon="circle-plus"}{ts}Add New Config{/ts}{/crmButton}
</div>
<br/>
{if !empty( $template_row) }
{if $rows}
{if !($action eq 1 and $action eq 2)}
<div class="action-link">
- <a href="{crmURL q="action=add&reset=1"}" class="button newRelationshipType"><span><div class="icon ui-icon-circle-plus"></div>{ts}Add Relationship Type{/ts}</span></a>
+ {crmButton q="action=add&reset=1" class="newRelationshipType" icon="circle-plus"}{ts}Add Relationship Type{/ts}{/crmButton}
</div>
{/if}
</div>
{/if}
<div class="action-link">
- <a href="{crmURL q="action=add&reset=1"}" class="button newRelationshipType"><span><div class="icon ui-icon-circle-plus"></div>{ts}Add Relationship Type{/ts}</span></a>
- <a href="{crmURL p="civicrm/admin" q="reset=1"}" class="button cancel no-popup"><span><div class="icon ui-icon-close"></div> {ts}Done{/ts}</span></a>
+ {crmButton q="action=add&reset=1" class="newRelationshipType" icon="circle-plus"}{ts}Add Relationship Type{/ts}{/crmButton}
+ {crmButton p="civicrm/admin" q="reset=1" class="cancel" icon="close"}{ts}Done{/ts}{/crmButton}
</div>
{/if}
{else}
{assign var='urlParams' value="action=add&reset=1"}
{/if}
- <a href="{crmURL p=$link q=$urlParams}" id="newScheduleReminder" class="button"><span><div class="icon ui-icon-circle-plus"></div>{ts}Add Reminder{/ts}</span></a>
+ {crmButton p=$link q=$urlParams id="newScheduleReminder" icon="circle-plus"}{ts}Add Reminder{/ts}{/crmButton}
</div>
{/if}
{/if}
{if !($action eq 1 and $action eq 2)}
<div class="crm-submit-buttons">
<div class="action-link">
- <a href="{crmURL q="action=add&reset=1"}" id="newTag" class="button"><span><div class="icon ui-icon-circle-plus"></div>{ts}Add Tag{/ts}</span></a>
+ {crmButton q="action=add&reset=1" id="newTag" icon="circle-plus"}{ts}Add Tag{/ts}{/crmButton}
{if $adminTagSet}
- <a href="{crmURL q="action=add&reset=1&tagset=1"}" id="newTagSet" class="button"><span><div class="icon ui-icon-circle-plus"></div>{ts}Add Tag Set{/ts}</span></a>
+ {crmButton q="action=add&reset=1&tagset=1" id="newTagSet" icon="circle-plus"}{ts}Add Tag Set{/ts}{/crmButton}
{/if}
</div>
</div>
{if !($action eq 1 and $action eq 2)}
<div class="crm-submit-buttons">
<div class="action-link">
- <a href="{crmURL q="action=add&reset=1"}" id="newTag" class="button"><span><div class="icon ui-icon-circle-plus"></div>{ts}Add Tag{/ts}</span></a>
+ {crmButton q="action=add&reset=1" id="newTag" icon="circle-plus"}{ts}Add Tag{/ts}{/crmButton}
{if $adminTagSet}
- <a href="{crmURL q="action=add&reset=1&tagset=1"}" id="newTagSet" class="button"><span><div class="icon ui-icon-circle-plus"></div>{ts}Add Tag Set{/ts}</span></a>
+ {crmButton q="action=add&reset=1&tagset=1" id="newTagSet" icon="circle-plus"}{ts}Add Tag Set{/ts}{/crmButton}
{/if}
</div>
</div>
</div>
<div class="action-link">
- <a href="{crmURL p='civicrm/petition/add' q='reset=1' h=0 }" class="button"><span><div class="icon ui-icon-circle-plus"></div>{ts}Add Petition{/ts}</span></a>
+ {crmButton p='civicrm/petition/add' q='reset=1' h=0 icon="circle-plus"}{ts}Add Petition{/ts}{/crmButton}
</div>
{elseif $buildSelector}
{else}
<div class="action-link">
- <a href="{crmURL p='civicrm/petition/add' q='reset=1' h=0 }" class="button"><span><div class="icon ui-icon-circle-plus"></div>{ts}Add Petition{/ts}</span></a>
+ {crmButton p='civicrm/petition/add' q='reset=1' h=0 icon="circle-plus"}{ts}Add Petition{/ts}{/crmButton}
</div>
{* build search form here *}
</div>
<div class="action-link">
- <a href="{crmURL p='civicrm/survey/add' q='reset=1' h=0 }" class="button"><span><div class="icon ui-icon-circle-plus"></div>{ts}Add Survey{/ts}</span></a>
+ {crmButton p='civicrm/survey/add' q='reset=1' h=0 icon="circle-plus"}{ts}Add Survey{/ts}{/crmButton}
</div>
{elseif $buildSelector}
{else}
<div class="action-link">
- <a href="{crmURL p='civicrm/survey/add' q='reset=1' h=0 }" class="button"><span><div class="icon ui-icon-circle-plus"></div>{ts}Add Survey{/ts}</span></a>
+ {crmButton p='civicrm/survey/add' q='reset=1' h=0 icon="circle-plus"}{ts}Add Survey{/ts}{/crmButton}
</div>
{* build search form here *}
{ts}Other Relationships{/ts}
</div><!-- /.crm-accordion-header -->
<div class="crm-accordion-body">
- {capture assign=relUrl}{crmURL p='civicrm/contact/view/rel' q="action=add&reset=1&cid=`$contactId`&caseID=`$caseID`"}{/capture}
+ <div class="crm-submit-buttons">
+ {crmButton p='civicrm/contact/view/rel' q="action=add&reset=1&cid=`$contactId`&caseID=`$caseID`" icon="circle-plus"}{ts}Add client relationship{/ts}{/crmButton}
+ </div>
{if $clientRelationships}
- <div class="crm-submit-buttons">
- <a class="button" href="{$relUrl}">
- <div class="icon ui-icon-circle-plus"></div>{ts}Add client relationship{/ts}</a>
- </div>
<table id="clientRelationships-selector-{$caseID}" class="report-layout">
<thead><tr>
<th>{ts}Client Relationship{/ts}</th>
{else}
<div class="messages status no-popup">
<div class="icon inform-icon"></div>
- {capture assign=link}class="action-item" href="{$relUrl}"{/capture}
- {ts 1=$link}There are no Relationships entered for this client. You can <a %1>add one</a>.{/ts}
+ {ts}None found.{/ts}
</div>
{/if}
{literal}
</table>
{/foreach}
<div>
- <a href="{crmURL p="civicrm/case/cd/edit" q="cgcount=1&action=update&reset=1&type=Case&entityID=$caseID&groupID=$customGroupId&cid=$contactID&subType=$caseTypeID"}" class="button">
- <span><div class="icon ui-icon-pencil"></div>{ts}Edit{/ts}</span>
- </a>
+ {crmButton p="civicrm/case/cd/edit" q="cgcount=1&action=update&reset=1&type=Case&entityID=$caseID&groupID=$customGroupId&cid=$contactID&subType=$caseTypeID" icon="pencil"}{ts}Edit{/ts}{/crmButton}
</div>
<br/>
<div class="clear"></div>
{/strip}
</div>
<div style="float:right">
- <a href="{crmURL q="action=add&contact_type=$contactType&reset=1"}" class="button"><span><div class="icon ui-icon-circle-plus"></div>{ts 1=$contactType}Add Rule for %1s{/ts}</span></a>
+ {crmButton q="action=add&contact_type=$contactType&reset=1" icon="circle-plus"}{ts 1=$contactType}Add Rule for %1s{/ts}{/crmButton}
</div>
</div>
{/foreach}
<div id="contact-summary-relationship-tab" class="view-content">
{if $permission EQ 'edit'}
<div class="action-link">
- <a accesskey="N" href="{crmURL p='civicrm/contact/view/rel' q="cid=`$contactId`&action=add&reset=1"}"
- class="button"><span><div class="icon ui-icon-circle-plus"></div>{ts}Add Relationship{/ts}</span></a>
+ {crmButton accesskey="N" p='civicrm/contact/view/rel' q="cid=`$contactId`&action=add&reset=1" icon="circle-plus"}{ts}Add Relationship{/ts}{/crmButton}
</div>
{/if}
{/if}
{if $action ne 1 and $action ne 2}
<div class="action-link">
- <a href="{crmURL q="action=add&reset=1"}" id="newContributionType" class="button"><span><div class="icon ui-icon-circle-plus"></div>{ts}Add Financial Type{/ts}</span></a>
- <a href="{crmURL p="civicrm/admin" q="reset=1"}" class="button cancel no-popup"><span><div class="icon ui-icon-close"></div> {ts}Done{/ts}</span></a>
+ {crmButton q="action=add&reset=1" id="newContributionType" icon="circle-plus"}{ts}Add Financial Type{/ts}{/crmButton}
+ {crmButton p="civicrm/admin" q="reset=1" class="cancel" icon="close"}{ts}Done{/ts}{/crmButton}
</div>
{/if}
{/if}
{/strip}
{if $action ne 1 and $action ne 2}
<div class="action-link">
- <a href="{crmURL q="action=add&reset=1"}" id="newManagePremium" class="button"><span><div class="icon ui-icon-circle-plus"></div>{ts}Add Premium{/ts}</span></a>
+ {crmButton q="action=add&reset=1" id="newManagePremium" icon="circle-plus"}{ts}Add Premium{/ts}{/crmButton}
</div>
{/if}
</div>
{* Give link to view/edit choice options if in edit mode and html_type is one of the multiple choice types *}
{if $action eq 2 AND ($form.data_type.value.1.0 eq 'CheckBox' OR ($form.data_type.value.1.0 eq 'Radio' AND $form.data_type.value.0.0 neq 6) OR $form.data_type.value.1.0 eq 'Select' OR ($form.data_type.value.1.0 eq 'Multi-Select' AND $dontShowLink neq 1 ) ) }
<div class="action-link">
- <a href="{crmURL p="civicrm/admin/custom/group/field/option" q="reset=1&action=browse&fid=`$id`&gid=`$gid`"}" class="button">
- <span><div class="icon ui-icon-pencil"></div>{ts}View / Edit Multiple Choice Options{/ts}</span>
- </a>
+ {crmButton p="civicrm/admin/custom/group/field/option" q="reset=1&action=browse&fid=`$id`&gid=`$gid`" icon="pencil"}{ts}View / Edit Multiple Choice Options{/ts}{/crmButton}
</div>
{/if}
{if $action eq 2 or $action eq 4} {* Update or View*}
<p></p>
<div class="action-link">
- <a href="{crmURL p='civicrm/admin/custom/group/field' q="action=browse&reset=1&gid=$gid"}" class="button"><span>{ts}Custom Fields for this Set{/ts}</span></a>
+ {crmButton p='civicrm/admin/custom/group/field' q="action=browse&reset=1&gid=$gid"}{ts}Custom Fields for this Set{/ts}{/crmButton}
</div>
{/if}
{$initHideBlocks}
{/if}
{/if}
<div class="action-link">
- <a href="{crmURL p='civicrm/admin/custom/group/field/add' q="reset=1&action=add&gid=$gid"}" id="newCustomField" class="button action-item"><span><div class="icon ui-icon-circle-plus"></div>{ts}Add Custom Field{/ts}</span></a>
- <a href="{crmURL p="civicrm/admin/custom/group" q="reset=1"}" class="button cancel no-popup"><span><div class="icon ui-icon-close"></div> {ts}Done{/ts}</span></a>
+ {crmButton p='civicrm/admin/custom/group/field/add' q="reset=1&action=add&gid=$gid" id="newCustomField" class="action-item" icon="circle-plus"}{ts}Add Custom Field{/ts}{/crmButton}
+ {crmButton p="civicrm/admin/custom/group" q="reset=1" class="cancel" icon="close"}{ts}Done{/ts}{/crmButton}
</div>
{/if}
{if NOT ($action eq 1 or $action eq 2) }
<div class="action-link">
- <a href="{crmURL p='civicrm/admin/custom/group' q="action=add&reset=1"}" id="newCustomDataGroup" class="button"><span><div class="icon ui-icon-circle-plus"></div>{ts}Add Set of Custom Fields{/ts}</span></a>
+ {crmButton p='civicrm/admin/custom/group' q="action=add&reset=1" id="newCustomDataGroup" icon="circle-plus"}{ts}Add Set of Custom Fields{/ts}{/crmButton}
</div>
{/if}
{/strip}
<div class="action-link">
- <a href="{crmURL q="reset=1&action=add&fid=$fid&gid=$gid"}" class="button action-item"><span><div class="icon ui-icon-circle-plus"></div> {ts}Add Option{/ts}</span></a>
- <a href="{crmURL p="civicrm/admin/custom/group/field" q="reset=1&action=browse&gid=$gid"}" class="button action-item cancel"><span><div class="icon ui-icon-close"></div> {ts}Done{/ts}</span></a>
+ {crmButton q="reset=1&action=add&fid=$fid&gid=$gid" class="action-item" icon="circle-plus"}{ts}Add Option{/ts}{/crmButton}
+ {crmButton p="civicrm/admin/custom/group/field" q="reset=1&action=browse&gid=$gid" class="action-item cancel" icon="close"}{ts}Done{/ts}{/crmButton}
</div>
</div>
</div>
{/if}
{if $action ne 1 and $action ne 2}
<div class="action-link">
- <a href="{crmURL q="action=add&reset=1"}" id="newFinancialType" class="button"><span><div class="icon ui-icon-circle-plus"></div>{ts}Add Financial Type{/ts}</span></a>
- <a href="{crmURL p="civicrm/admin" q="reset=1"}" class="button cancel no-popup"><span><div class="icon ui-icon-close"></div> {ts}Done{/ts}</span></a>
+ {crmButton q="action=add&reset=1" id="newFinancialType" icon="circle-plus"}{ts}Add Financial Type{/ts}{/crmButton}
+ {crmButton p="civicrm/admin" q="reset=1" class="cancel" icon="close"}{ts}Done{/ts}{/crmButton}
</div>
{/if}
{/if}
<div class="form-item">
{if $action ne 1 and $action ne 2}
<div class="action-link">
- <a href="{crmURL q="action=add&reset=1&aid=$aid"}" id="newfinancialTypeAccount" class="button"><span><div class="icon ui-icon-circle-plus"></div>{ts}Assign Account{/ts}</span></a>
- <a href="{crmURL p="civicrm/admin/financial/financialType" q="action=update&id=`$aid`&reset=1"}" class="button"><span><div class="icon ui-icon-pencil"></div>{ts}Edit Financial Type{/ts}</span></a>
+ {crmButton q="action=add&reset=1&aid=$aid" id="newfinancialTypeAccount" icon="circle-plus"}{ts}Assign Account{/ts}{/crmButton}
+ {crmButton p="civicrm/admin/financial/financialType" q="action=update&id=`$aid`&reset=1" icon="pencil"}{ts}Edit Financial Type{/ts}{/crmButton}
</div>
{/if}
{strip}
{if $action ne 1 and $action ne 2}
<div class="action-link">
- <a href="{crmURL q="action=add&reset=1&aid=$aid"}" id="newfinancialTypeAccount" class="button"><span><div class="icon ui-icon-circle-plus"></div>{ts}Assign Account{/ts}</span></a>
- <a href="{crmURL p="civicrm/admin/financial/financialType" q="action=update&id=`$aid`&reset=1"}" class="button"><span><div class="icon ui-icon-pencil"></div>{ts}Edit Financial Type{/ts}</span></a>
+ {crmButton q="action=add&reset=1&aid=$aid" id="newfinancialTypeAccount" icon="circle-plus"}{ts}Assign Account{/ts}{/crmButton}
+ {crmButton p="civicrm/admin/financial/financialType" q="action=update&id=`$aid`&reset=1" icon="pencil"}{ts}Edit Financial Type{/ts}{/crmButton}
</div>
{/if}
</div>
{if $showLinks}
<div class="action-link">
- <a accesskey="N" href="{crmURL p=$newMassUrl q='reset=1'}" class="button"><span><div class="icon ui-icon-mail-closed"></div>{ts}{$linkTitle}{/ts}</span></a><br/><br/>
+ {crmButton accesskey="N" p=$newMassUrl q='reset=1' icon="mail-closed"}{ts}{$linkTitle}{/ts}{/crmButton}<br/><br/>
</div>
{/if}
{include file="CRM/Mailing/Form/Search.tpl"}
{include file="CRM/common/pager.tpl" location="bottom"}
{if $showLinks}
<div class="action-link">
- <a accesskey="N" href="{crmURL p=$newMassUrl q='reset=1'}" class="button"><span><div class="icon ui-icon-mail-closed"></div>{ts}{$linkTitle}{/ts}</span></a><br/>
+ {crmButton accesskey="N" p=$newMassUrl q='reset=1' icon="mail-closed"}{ts}{$linkTitle}{/ts}{/crmButton}<br/>
</div>
{/if}
{if $action ne 1 and $action ne 2}
<br/>
<div class="action-link">
- <a href="{crmURL q="action=add&reset=1"}" class="button"><span><div class="icon ui-icon-circle-plus"></div>{ts}Add Mailing Component{/ts}</span></a>
+ {crmButton q="action=add&reset=1" icon="circle-plus"}{ts}Add Mailing Component{/ts}{/crmButton}
</div>
{/if}
</div>
{if $action ne 1 and $action ne 2}
<div class="action-link">
- <a href="{crmURL q="action=add&reset=1"}" id="newMembershipStatus" class="button"><span><div class="icon ui-icon-circle-plus"></div>{ts}Add Membership Status{/ts}</span></a>
- <a href="{crmURL p="civicrm/admin" q="reset=1"}" class="button cancel no-popup"><span><div class="icon ui-icon-close"></div> {ts}Done{/ts}</span></a>
+ {crmButton q="action=add&reset=1" id="newMembershipStatus" icon="circle-plus"}{ts}Add Membership Status{/ts}{/crmButton}
+ {crmButton p="civicrm/admin" q="reset=1" class="cancel" icon="close"}{ts}Done{/ts}{/crmButton}
</div>
{/if}
</div>
{if $action ne 1 and $action ne 2}
<div class="action-link">
- <a href="{crmURL p='civicrm/admin/member/membershipType/add' q="action=add&reset=1"}" id="newMembershipType" class="button"><span><div class="icon ui-icon-circle-plus"></div>{ts}Add Membership Type{/ts}</span></a>
+ {crmButton p='civicrm/admin/member/membershipType/add' q="action=add&reset=1" id="newMembershipType" icon="circle-plus"}{ts}Add Membership Type{/ts}{/crmButton}
</div>
{/if}
</div>
{if $action NEQ 8 and $priceField}
<div class="action-link">
{if !$isReserved}
- <a href="{crmURL q="reset=1&action=add&sid=$sid"}" id="newPriceField" class="button"><span><div class="icon ui-icon-circle-plus"></div>{ts}Add Price Field{/ts}</span></a>
+ {crmButton q="reset=1&action=add&sid=$sid" id="newPriceField" icon="circle-plus"}{ts}Add Price Field{/ts}{/crmButton}
{/if}
- <a href="{crmURL p="civicrm/admin/price" q="action=preview&sid=`$sid`&reset=1&context=field"}" class="button"><span><div class="icon ui-icon-zoomin"></div>{ts}Preview (all fields){/ts}</span></a>
+ {crmButton p="civicrm/admin/price" q="action=preview&sid=`$sid`&reset=1&context=field" icon="zoomin"}{ts}Preview (all fields){/ts}{/crmButton}
</div>
<div id="field_page">
{strip}
</div>
<div class="action-link">
{if !$isReserved}
- <a href="{crmURL q="reset=1&action=add&sid=$sid"}" id="newPriceField" class="button"><span><div class="icon ui-icon-circle-plus"></div>{ts}Add Price Field{/ts}</span></a>
+ {crmButton q="reset=1&action=add&sid=$sid" id="newPriceField" icon="circle-plus"}{ts}Add Price Field{/ts}{/crmButton}
{/if}
- <a href="{crmURL p="civicrm/admin/price" q="action=preview&sid=`$sid`&reset=1&context=field"}" class="button"><span><div class="icon ui-icon-zoomin"></div>{ts}Preview (all fields){/ts}</span></a>
+ {crmButton p="civicrm/admin/price" q="action=preview&sid=`$sid`&reset=1&context=field" icon="zoomin"}{ts}Preview (all fields){/ts}{/crmButton}
</div>
{else}
{ts}None found.{/ts}
</div>
<div class="action-link">
- <a href="{crmURL q="reset=1&action=add&sid=$sid"}" id="newPriceField" class="button"><span><div class="icon ui-icon-circle-plus"></div>{ts}Add Price Field{/ts}</span></a>
+ {crmButton q="reset=1&action=add&sid=$sid" id="newPriceField" icon="circle-plus"}{ts}Add Price Field{/ts}{/crmButton}
</div>
{/if}
{/if}
{/if}
{if $addMoreFields && !$isReserved}
<div class="action-link">
- <a href="{crmURL q="reset=1&action=add&fid=$fid&sid=$sid"}" class="button"><span><div class="icon ui-icon-circle-plus"></div> {ts 1=$fieldTitle}New Option for '%1'{/ts}</span></a>
- <a href="{crmURL p="civicrm/admin/price/field" q="reset=1&sid=$sid"}" class="button cancel no-popup"><span><div class="icon ui-icon-close"></div> {ts}Done{/ts}</span></a>
+ {crmButton q="reset=1&action=add&fid=$fid&sid=$sid" icon="circle-plus"}{ts 1=$fieldTitle}New Option for '%1'{/ts}{/crmButton}
+ {crmButton p="civicrm/admin/price/field" q="reset=1&sid=$sid" class="cancel" icon="close"}{ts}Done{/ts}{/crmButton}
</div>
{/if}
{/if}
{if NOT ($action eq 1 or $action eq 2) }
<div class="action-link">
- <a href="{crmURL p='civicrm/admin/price' q="action=add&reset=1"}" id="newPriceSet" class="button"><span><div class="icon ui-icon-circle-plus"></div>{ts}Add Set of Price Fields{/ts}</span></a>
+ {crmButton p='civicrm/admin/price' q="action=add&reset=1" id="newPriceSet" icon="circle-plus"}{ts}Add Set of Price Fields{/ts}{/crmButton}
</div>
{/if}
{/if}
<div class="action-link">
- <a href="{crmURL p='civicrm/admin/sms/provider' q="action=add&reset=1"}" class="button"><span><div class="icon ui-icon-circle-plus"></div>{ts}Add SMS Provider{/ts}</span></a>
+ {crmButton p='civicrm/admin/sms/provider' q="action=add&reset=1" icon="circle-plus"}{ts}Add SMS Provider{/ts}{/crmButton}
</div>
{/if}
<div id="field_page">
{if not ($action eq 2 or $action eq 1)}
<div class="action-link">
- <a href="{crmURL p="civicrm/admin/uf/group/field/add" q="reset=1&action=add&gid=$gid"}" class="button"><span><div class="icon ui-icon-circle-plus"></div>{ts}Add Field{/ts}</span></a>{if !$isGroupReserved}<a href="{crmURL p="civicrm/admin/uf/group/update" q="action=update&id=`$gid`&reset=1&context=field"}" class="button"><span><div class="icon ui-icon-pencil"></div>{ts}Edit Settings{/ts}</span></a>{/if}<a href="{crmURL p="civicrm/admin/uf/group" q="action=preview&id=`$gid`&reset=1&field=0&context=field"}" class="button"><span><div class="icon ui-icon-zoomin"></div>{ts}Preview (all fields){/ts}</span></a>{if !$skipCreate }<a href="{crmURL p="civicrm/profile/create" q="gid=$gid&reset=1"}" class="button"><span><div class="icon ui-icon-play"></div>{ts}Use (create mode){/ts}</span></a>{/if}
+ {crmButton p="civicrm/admin/uf/group/field/add" q="reset=1&action=add&gid=$gid" icon="circle-plus"}{ts}Add Field{/ts}{/crmButton}{if !$isGroupReserved}{crmButton p="civicrm/admin/uf/group/update" q="action=update&id=`$gid`&reset=1&context=field" icon="pencil"}{ts}Edit Settings{/ts}{/crmButton}{/if}{crmButton p="civicrm/admin/uf/group" q="action=preview&id=`$gid`&reset=1&field=0&context=field" icon="zoomin"}{ts}Preview (all fields){/ts}{/crmButton}{if !$skipCreate }{crmButton p="civicrm/profile/create" q="gid=$gid&reset=1" icon="play"}{ts}Use (create mode){/ts}{/crmButton}{/if}
<div class="clear"></div>
</div>
{/if}
{/strip}
{if not ($action eq 2 or $action eq 1)}
<div class="action-link">
- <a href="{crmURL p="civicrm/admin/uf/group/field/add" q="reset=1&action=add&gid=$gid"}" class="button"><span><div class="icon ui-icon-circle-plus"></div>{ts}Add Field{/ts}</span></a>{if !$isGroupReserved}<a href="{crmURL p="civicrm/admin/uf/group" q="action=update&id=`$gid`&reset=1&context=field"}" class="button"><span><div class="icon ui-icon-pencil"></div>{ts}Edit Settings{/ts}</span></a>{/if}<a href="{crmURL p="civicrm/admin/uf/group" q="action=preview&id=`$gid`&reset=1&field=0&context=field"}" class="button"><span><div class="icon ui-icon-zoomin"></div>{ts}Preview (all fields){/ts}</span></a>{if !$skipCreate }<a href="{crmURL p="civicrm/profile/create" q="gid=$gid&reset=1"}" class="button"><span><div class="icon ui-icon-play"></div>{ts}Use (create mode){/ts}</span></a>{/if}
+ {crmButton p="civicrm/admin/uf/group/field/add" q="reset=1&action=add&gid=$gid" icon="circle-plus"}{ts}Add Field{/ts}{/crmButton}{if !$isGroupReserved}{crmButton p="civicrm/admin/uf/group" q="action=update&id=`$gid`&reset=1&context=field" icon="pencil"}{ts}Edit Settings{/ts}{/crmButton}{/if}{crmButton p="civicrm/admin/uf/group" q="action=preview&id=`$gid`&reset=1&field=0&context=field" icon="zoomin"}{ts}Preview (all fields){/ts}{/crmButton}{if !$skipCreate }{crmButton p="civicrm/profile/create" q="gid=$gid&reset=1" icon="play"}{ts}Use (create mode){/ts}{/crmButton}{/if}
<div class="clear"></div>
</div>
{/if}
{ts}None found.{/ts}
</div>
<div class="action-link">
- <a href="{crmURL p="civicrm/admin/uf/group/field/add" q="reset=1&action=add&gid=$gid"}" class="button"><span><div class="icon ui-icon-circle-plus"></div>{ts}Add Field{/ts}</span></a>
+ {crmButton p="civicrm/admin/uf/group/field/add" q="reset=1&action=add&gid=$gid" icon="circle-plus"}{ts}Add Field{/ts}{/crmButton}
</div>
{/if}
{/if}