public function buildQuickForm() {
CRM_Utils_System::setTitle(ts('Merge %1s', array(1 => $this->_contactType)));
- $name = ts('Merge');
- if ($this->next) {
- $name = ts('Merge and Goto Next Pair');
- }
+ $buttons = array();
+
+ $buttons[] = array(
+ 'type' => 'next',
+ 'name' => $this->next ? ts('Merge and Goto Next Pair') : ts('Merge'),
+ 'isDefault' => TRUE,
+ 'icon' => $this->next ? 'circle-triangle-e' : 'check',
+ );
if ($this->next || $this->prev) {
- $button = array(
- array(
- 'type' => 'next',
- 'name' => $name,
- 'isDefault' => TRUE,
- ),
- array(
- 'type' => 'submit',
- 'name' => ts('Merge and Goto Listing'),
- ),
- array(
- 'type' => 'done',
- 'name' => ts('Merge and View Result'),
- ),
- array(
- 'type' => 'cancel',
- 'name' => ts('Cancel'),
- ),
+ $buttons[] = array(
+ 'type' => 'submit',
+ 'name' => ts('Merge and Goto Listing'),
);
- }
- else {
- $button = array(
- array(
- 'type' => 'next',
- 'name' => $name,
- 'isDefault' => TRUE,
- ),
- array(
- 'type' => 'cancel',
- 'name' => ts('Cancel'),
- ),
+ $buttons[] = array(
+ 'type' => 'done',
+ 'name' => ts('Merge and View Result'),
+ 'icon' => 'circle-check'
);
}
- $this->addButtons($button);
+ $buttons[] = array(
+ 'type' => 'cancel',
+ 'name' => ts('Cancel'),
+ );
+
+ $this->addButtons($buttons);
$this->addFormRule(array('CRM_Contact_Form_Merge', 'formRule'), $this);
}
CRM_Core_Session::setStatus($status, ts('Mailing Saved'), 'success');
CRM_Utils_System::redirect($url);
}
- if (isset($params['now']) || CRM_Utils_Array::value('_qf_Schedule_back', $params) == '<< Previous') {
+ if (isset($params['now']) || CRM_Utils_Array::value('_qf_Schedule_back', $params) == ts('Previous')) {
return TRUE;
}
$url = CRM_Utils_System::url('civicrm/mailing/browse/unscheduled', 'scheduled=false&reset=1&sms=1');
CRM_Utils_System::redirect($url);
}
- if (isset($params['now']) || CRM_Utils_Array::value('_qf_Schedule_back', $params) == '<< Previous') {
+ if (isset($params['now']) || CRM_Utils_Array::value('_qf_Schedule_back', $params) == ts('Previous')) {
return TRUE;
}
font-size: .8em;
}
-.crm-designer .crm-designer-palette-tree span.ui-button-text,
-.crm-designer .crm-designer-edit-custom span.ui-button-text {
+.crm-designer .crm-designer-palette-tree span.ui-button-text {
padding: 0.4em;
}
}
});
if (this.model.get('field_name').split('_')[0] == 'custom') {
- this.$('.crm-designer-field-summary > div').append('<button class="crm-designer-edit-custom">» ' + ts('Edit Custom Field') + '</button>');
- this.$('button.crm-designer-edit-custom').button().attr('title', ts('Edit global settings for this custom field.'));
+ this.$('.crm-designer-field-summary > div').append('<button class="crm-designer-edit-custom">' + ts('Edit Custom Field') + '</button>');
+ this.$('button.crm-designer-edit-custom').button({icons: {primary: 'ui-icon-pencil'}}).attr('title', ts('Edit global settings for this custom field.'));
}
}
},
reset: 1,
id: this.model.get('field_name').split('_')[1]
});
- var form1 = CRM.loadForm(url, {openInline: '.crm-custom-field-form-block-data_type a'})
+ var form1 = CRM.loadForm(url)
.on('crmFormLoad', function() {
$(this).prepend('<div class="messages status"><div class="icon inform-icon"></div>' + ts('Note: This will modify the field system-wide, not just in this profile form.') + '</div>');
- var $link = $('.action-link a', this);
- if ($link.length) {
- $link.detach();
- var buttons = {};
- buttons[$link.text()] = function() {
- var form2 = CRM.loadForm($link.attr('href'), {
- dialog: {
- width: '60%',
- height: '70%'
- }
- });
- };
- $(this).dialog('option', 'buttons', buttons);
- }
});
},
onChangeIsDuplicate: function(model, value, options) {
{* this template is used for displaying survey information *}
{if $campaigns}
<div class="action-link">
- <a href="{$addCampaignUrl}" class="button"><span>» {ts}Add Campaign{/ts}</span></a>
+ <a href="{$addCampaignUrl}" class="button">
+ <span><div class="icon ui-icon-circle-plus"></div> {ts}Add Campaign{/ts}</span>
+ </a>
</div>
{include file="CRM/common/enableDisableApi.tpl"}
<div id="campaignType">
</div>
{/if}
<div class="action-link">
- <a href="{$addCampaignUrl}" class="button"><span>» {ts}Add Campaign{/ts}</span></a>
+ <a href="{$addCampaignUrl}" class="button">
+ <span><div class="icon ui-icon-circle-plus"></div> {ts}Add Campaign{/ts}</span>
+ </a>
</div>
{if $surveys}
<div class="action-link">
- <a href="{$addSurveyUrl}" class="button"><span>» {ts}Add Survey{/ts}</span></a>
+ <a href="{$addSurveyUrl}" class="button">
+ <span><div class="icon ui-icon-circle-plus"></div> {ts}Add Survey{/ts}</span>
+ </a>
</div>
{include file="CRM/common/enableDisableApi.tpl"}
{include file="CRM/common/jsortable.tpl"}
</div>
{/if}
<div class="action-link">
- <a href="{$addSurveyUrl}" class="button"><span>» {ts}Add Survey{/ts}</span></a>
+ <a href="{$addSurveyUrl}" class="button">
+ <span><div class="icon ui-icon-circle-plus"></div> {ts}Add Survey{/ts}</span>
+ </a>
</div>
{if $surveys}
<div class="action-link">
- <a href="{$addSurveyUrl}" class="button"><span>» {ts}Add Survey{/ts}</span></a>
+ <a href="{$addSurveyUrl}" class="button">
+ <span><div class="icon ui-icon-circle-plus"></div> {ts}Add Survey{/ts}</span>
+ </a>
</div>
{include file="CRM/common/enableDisableApi.tpl"}
{include file="CRM/common/jsortable.tpl"}
</div>
{/if}
<div class="action-link">
- <a href="{$addSurveyUrl}" class="button"><span>» {ts}Add Survey{/ts}</span></a>
+ <a href="{$addSurveyUrl}" class="button">
+ <span><div class="icon ui-icon-circle-plus"></div> {ts}Add Survey{/ts}</span>
+ </a>
</div>
{if $newClient and $allowToAddNewCase}
<a href="{$newCaseURL}" class="button"><span><div class="icon ui-icon-circle-plus"></div> {ts}Add Case{/ts}</span></a>
{/if}
- <a class="button no-popup" name="find_my_cases" href="{crmURL p="civicrm/case/search" q="reset=1&case_owner=2&force=1"}"><span>{ts}Find My Cases{/ts}</span></a>
+ <a class="button no-popup" name="find_my_cases" href="{crmURL p="civicrm/case/search" q="reset=1&case_owner=2&force=1"}"><span><div class="icon ui-icon-search"></div> {ts}Find My Cases{/ts}</span></a>
<div class="crm-case-dashboard-switch-view-buttons">
{if $myCases}
{elseif $list eq 'recent'}
<td class="crm-case-case_recent_activity">
{if $row.case_recent_activity_viewable}
- <a class="crm-popup" href="{crmURL p='civicrm/case/activity/view' h=0 q="cid="}{$row.contact_id}&aid={$row.case_recent_activity_id}" title="{ts}View activity{/ts}">{$row.case_recent_activity_type}</a>
+ <a class="action-item crm-hover-button" href="{crmURL p='civicrm/case/activity/view' h=0 q="cid="}{$row.contact_id}&aid={$row.case_recent_activity_id}" title="{ts}View activity{/ts}">{$row.case_recent_activity_type}</a>
{else}
{$row.case_recent_activity_type}
{/if}
- {if $row.case_recent_activity_editable and $row.case_recent_activity_type_name != 'Inbound Email' && $row.case_recent_activity_type_name != 'Email'} <a href="{crmURL p="civicrm/case/activity" q="reset=1&cid=`$row.contact_id`&caseid=`$row.case_id`&action=update&id=`$row.case_recent_activity_id`"}" title="{ts}Edit activity{/ts}"><span class="icon ui-icon-pencil"></span></a>
+ {if $row.case_recent_activity_editable and $row.case_recent_activity_type_name != 'Inbound Email' && $row.case_recent_activity_type_name != 'Email'} <a href="{crmURL p="civicrm/case/activity" q="reset=1&cid=`$row.contact_id`&caseid=`$row.case_id`&action=update&id=`$row.case_recent_activity_id`"}" title="{ts}Edit activity{/ts}" class="crm-hover-button crm-popup"><span class="icon ui-icon-pencil"></span></a>
{/if}<br />
{$row.case_recent_activity_date|crmDate}
</td>
{ts}Click <strong>Merge</strong> to move data from the Duplicate Contact on the left into the Main Contact. In addition to the contact data (address, phone, email...), you may choose to move all or some of the related activity records (groups, contributions, memberships, etc.).{/ts} {help id="intro"}
</div>
-<div class="crm-submit-buttons">{if $prev}<a href="{$prev}" class="button"><span>{ts}<< Prev{/ts}</span></a>{/if}{include file="CRM/common/formButtons.tpl" location="top"}{if $next}<a href="{$next}" class="button"><span>{ts}Next >>{/ts}</span></a>{/if}</div>
+<div class="crm-submit-buttons">
+ {if $prev}<a href="{$prev}" class="button"><span><div class="icon ui-icon-triangle-1-w"></div> {ts}Prev{/ts}</span></a>{/if}
+ {include file="CRM/common/formButtons.tpl" location="top"}
+ {if $next}<a href="{$next}" class="button"><span><div class="icon ui-icon-triangle-1-e"></div> {ts}Next{/ts}</span></a>{/if}
+</div>
<div class="action-link">
- <a href="{$flip}">» {ts}Flip between original and duplicate contacts.{/ts}</a>
+ <a href="{$flip}" class="action-item crm-hover-button">
+ <span class="icon ui-icon-shuffle"></span>
+ {ts}Flip between original and duplicate contacts.{/ts}
+ </a>
</div>
<div class="action-link">
- <a id='notDuplicate' href="#" title={ts}Mark this pair as not a duplicate.{/ts} onClick="processDupes( {$main_cid}, {$other_cid}, 'dupe-nondupe', 'merge-contact', '{if $rgid}{crmURL p="civicrm/contact/dedupefind" q="reset=1&action=update&rgid=$rgid"}{/if}' );return false;">» {ts}Mark this pair as not a duplicate.{/ts}</a>
+ <a id='notDuplicate' href="#" class="action-item crm-hover-button" title={ts}Mark this pair as not a duplicate.{/ts} onClick="processDupes( {$main_cid}, {$other_cid}, 'dupe-nondupe', 'merge-contact', '{if $rgid}{crmURL p="civicrm/contact/dedupefind" q="reset=1&action=update&rgid=$rgid"}{/if}' );return false;">
+ <span class="icon ui-icon-circle-close"></span>
+ {ts}Mark this pair as not a duplicate.{/ts}
+ </a>
</div>
<table class="row-highlight">
{/if}
</div>
-<div class="crm-submit-buttons">{if $prev}<a href="{$prev}" class="button"><span>{ts}<< Prev{/ts}</span></a>{/if}{include file="CRM/common/formButtons.tpl" location="bottom"}{if $next}<a href="{$next}" class="button"><span>{ts}Next >>{/ts}</span></a>{/if}</div>
+<div class="crm-submit-buttons">
+ {if $prev}<a href="{$prev}" class="button"><span><div class="icon ui-icon-triangle-1-w"></div> {ts}Prev{/ts}</span></a>{/if}
+ {include file="CRM/common/formButtons.tpl" location="bottom"}
+ {if $next}<a href="{$next}" class="button"><span><div class="icon ui-icon-triangle-1-e"></div> {ts}Next{/ts}</span></a>{/if}
</div>
{literal}
{else}
{capture assign=backURL}{crmURL p="civicrm/contact/dedupefind" q="reset=1&rgid=`$rgid`&action=renew" a=1}{/capture}
{/if}
- <a href="{$backURL}" title="{ts}Refresh List of Duplicates{/ts}" onclick="return confirm('{ts escape="js"}This will refresh the duplicates list. Click OK to proceed.{/ts}');" class="button"><span>{ts}Refresh Duplicates{/ts}</span></a>
+ <a href="{$backURL}" title="{ts}Refresh List of Duplicates{/ts}" onclick="return confirm('{ts escape="js"}This will refresh the duplicates list. Click OK to proceed.{/ts}');" class="button">
+ <span><div class="icon ui-icon-refresh"></div> {ts}Refresh Duplicates{/ts}</span>
+ </a>
{if $gid}
{capture assign=backURL}{crmURL p="civicrm/contact/dedupefind" q="reset=1&rgid=`$rgid`&gid=`$gid`&action=map" a=1}{/capture}
{else}
{capture assign=backURL}{crmURL p="civicrm/contact/dedupefind" q="reset=1&rgid=`$rgid`&action=map" a=1}{/capture}
{/if}
- <a href="{$backURL}" title="{ts}Batch Merge Duplicate Contacts{/ts}" onclick="return confirm('{ts escape="js"}This will run the batch merge process on the listed duplicates. The operation will run in safe mode - only records with no direct data conflicts will be merged. Click OK to proceed if you are sure you wish to run this operation.{/ts}');" class="button"><span>{ts}Batch Merge Duplicates{/ts}</span></a>
+ <a href="{$backURL}" title="{ts}Batch Merge Duplicate Contacts{/ts}" onclick="return confirm('{ts escape="js"}This will run the batch merge process on the listed duplicates. The operation will run in safe mode - only records with no direct data conflicts will be merged. Click OK to proceed if you are sure you wish to run this operation.{/ts}');" class="button">
+ <span><div class="icon ui-icon-script"></div> {ts}Batch Merge Duplicates{/ts}</span>
+ </a>
{capture assign=backURL}{crmURL p="civicrm/contact/deduperules" q="reset=1" a=1}{/capture}
- <a href="{$backURL}" class="button crm-button-type-cancel"><span>{ts}Done{/ts}</span></a>
+ <a href="{$backURL}" class="button crm-button-type-cancel">
+ <span><div class="icon ui-icon-close"></div> {ts}Done{/ts}</span>
+ </a>
{/if}
<div style="clear: both;"></div>
{else}
<td class='right'>
{if $paymentInfo.paid > 0}
{$paymentInfo.paid|crmMoney}<br/>
- <a class="crm-hover-button crm-popup medium-popup" href='{crmURL p="civicrm/payment" q="view=transaction&cid=`$cid`&id=`$paymentInfo.id`&component=`$paymentInfo.component`&action=browse"}'>» {ts}view payments{/ts}</a>
+ <a class="crm-hover-button action-item medium-popup" href='{crmURL p="civicrm/payment" q="view=transaction&cid=`$cid`&id=`$paymentInfo.id`&component=`$paymentInfo.component`&action=browse"}'>
+ <span class="icon ui-icon-zoomin"></span>
+ {ts}view payments{/ts}
+ </a>
{/if}
</td>
<td class='right'>{$paymentInfo.balance|crmMoney}</td>
{/if}
{if $action eq 2 and $changeFieldType}
<br />
- ( <a href='{crmURL p="civicrm/admin/custom/group/field/changetype" q="reset=1&id=`$id`"}'>{ts}Change Input Field Type{/ts}</a> )
+ <a class="action-item crm-hover-button" href='{crmURL p="civicrm/admin/custom/group/field/changetype" q="reset=1&id=`$id`"}'>
+ <span class="icon ui-icon-gear"></span>
+ {ts}Change Input Field Type{/ts}
+ </a>
<div class='clear'></div>
{/if}
</td>
{* 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`"}">» {ts}View / Edit Multiple Choice Options{/ts}</a>
+ <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>
</div>
{/if}
{if $newClient}
<tr>
<td>
- <a href="{$newCaseURL}" class="button"><span>» {ts}New Case{/ts}</span></a>
+ <a href="{$newCaseURL}" class="button">
+ <span><div class="icon ui-icon-circle-plus"></div> {ts}New Case{/ts}</span>
+ </a>
</td>
</tr>
{/if}
<div class='label'>{ts}Total Paid{/ts}</div>
<div class='content'>
{$paymentInfo.paid|crmMoney}<br/>
- <a class="crm-hover-button crm-popup medium-popup" href='{crmURL p="civicrm/payment" q="view=transaction&action=browse&cid=`$contactId`&id=`$paymentInfo.id`&component=`$paymentInfo.component`&context=transaction"}'>» {ts}view payments{/ts}</a>
+ <a class="crm-hover-button action-item medium-popup" href='{crmURL p="civicrm/payment" q="view=transaction&action=browse&cid=`$contactId`&id=`$paymentInfo.id`&component=`$paymentInfo.component`&context=transaction"}'><span class="icon ui-icon-zoomin"></span> {ts}view payments{/ts}</a>
</div>
<div class='label'><strong>{ts}Balance Owed{/ts}</strong></div><div class='content'><strong id='balance-fee'></strong></div>
</div>
</div>
{if $action ne 1 and $action ne 2}
<div class="action-link">
- <a href="{$newReport}" id="new"|cat:$GName class="button"><span>» {ts 1=$GName}Register New %1{/ts}</span></a>
+ <a href="{$newReport}" id="new"|cat:$GName class="button"><span><div class="icon ui-icon-circle-plus"></div> {ts 1=$GName}Register New %1{/ts}</span></a>
</div>
<div class="spacer"></div>
{/if}
{if $action ne 1 and $action ne 2}
<div class="action-link">
- <a href="{$newReport}" id="new"|cat:$GName class="button"><span>» {ts 1=$GName}Register New %1{/ts}</span></a>
+ <a href="{$newReport}" id="new"|cat:$GName class="button"><span><div class="icon ui-icon-circle-plus"> {ts 1=$GName}Register New %1{/ts}</span></a>
</div>
{/if}
</div>