if (in_array($button['type'], array('upload', 'next', 'submit', 'done', 'process', 'refresh'))) {
$attrs['class'] .= ' validate';
- $defaultIcon = 'check';
+ $defaultIcon = 'fa-check';
}
else {
$attrs['class'] .= ' cancel';
- $defaultIcon = $button['type'] == 'back' ? 'triangle-1-w' : 'close';
+ $defaultIcon = $button['type'] == 'back' ? 'fa-chevron-left' : 'fa-times';
}
if ($button['type'] === 'reset') {
else {
if (!empty($button['subName'])) {
if ($button['subName'] == 'new') {
- $defaultIcon = 'plus';
+ $defaultIcon = 'fa-plus-circle';
}
if ($button['subName'] == 'done') {
- $defaultIcon = 'circle-check';
+ $defaultIcon = 'fa-check-circle';
}
if ($button['subName'] == 'next') {
- $defaultIcon = 'circle-triangle-e';
+ $defaultIcon = 'fa-chevron-right';
}
}
.crm-i-button>.crm-i {
padding-left: 2px;
+ line-height: inherit;
}
.crm-container .ui-dialog-titlebar .ui-button .ui-icon[class*=" fa-"] {
<div class="crm-submit-buttons">
{include file="CRM/common/formButtons.tpl" location="top"}
- {if $prev}<a href="{$prev}" class="crm-hover-button action-item"><span class="icon ui-icon-triangle-1-w"></span> {ts}Previous{/ts}</a>{/if}
- {if $next}<a href="{$next}" class="crm-hover-button action-item">{ts}Next{/ts} <span class="icon ui-icon-triangle-1-e"></span></a>{/if}
+ {if $prev}<a href="{$prev}" class="crm-hover-button action-item"><i class="crm-i fa-chevron-left"></i> {ts}Previous{/ts}</a>{/if}
+ {if $next}<a href="{$next}" class="crm-hover-button action-item">{ts}Next{/ts} <i class="crm-i fa-chevron-right"></i></a>{/if}
</div>
<div class="action-link">
<a href="{$flip}" class="action-item crm-hover-button">
- <span class="icon ui-icon-shuffle"></span>
+ <i class="crm-i fa-random"></i>
{ts}Flip between original and duplicate contacts.{/ts}
</a>
</div>
<div class="action-link">
<a href="#" class="action-item crm-hover-button crm-notDuplicate" 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>
+ <i class="crm-i fa-times-circle"></i>
{ts}Mark this pair as not a duplicate.{/ts}
</a>
</div>
<label for="recur-all-entity">{ts 1=$entity_type}Every %1{/ts}</label>\r
<div class="description">{ts 1=$entity_type}Change applies to every %1 in the series.{/ts}</div>\r
</div>\r
- <div class="status help"><div class="icon ui-icon-lightbulb"></div>{ts}Changes to date or time will <em>not</em> be applied to others in the series.{/ts}</div>\r
+ <div class="status help"><i class="crm-i fa-info-circle"></i> {ts}Changes to date or time will <em>not</em> be applied to others in the series.{/ts}</div>\r
</div>\r
</script>\r
{literal}\r
</tr>
{/foreach}
</table>
- <div class="icon ui-icon-lightbulb"></div>
+ <i class="crm-i fa-lightbulb-o"></i>
<strong>{ts}Tip{/ts}</strong> - <span class="description">{ts}You must be logged in to your account to access the editing options above. (If you visit this page without logging in, you will be viewing the page in "live" mode - as your visitors and friends see it.){/ts}</span>
</div>
{/if}
<div id="field_page">
{if not ($action eq 2 or $action eq 1)}
<div class="action-link">
- {crmButton p="civicrm/admin/uf/group/field/add" q="reset=1&action=add&gid=$gid" icon="plus-circle"}{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="television"}{ts}Preview (all fields){/ts}{/crmButton}{if !$skipCreate }{crmButton p="civicrm/profile/create" q="gid=$gid&reset=1" icon="play-circle"}{ts}Use (create mode){/ts}{/crmButton}{/if}
+ {crmButton p="civicrm/admin/uf/group/field/add" q="reset=1&action=add&gid=$gid" icon="plus-circle"}{ts}Add Field{/ts}{/crmButton}{if !$isGroupReserved}{crmButton p="civicrm/admin/uf/group/update" q="action=update&id=`$gid`&reset=1&context=field" icon="wrench"}{ts}Edit Settings{/ts}{/crmButton}{/if}{crmButton p="civicrm/admin/uf/group" q="action=preview&id=`$gid`&reset=1&field=0&context=field" icon="television"}{ts}Preview (all fields){/ts}{/crmButton}{if !$skipCreate }{crmButton p="civicrm/profile/create" q="gid=$gid&reset=1" icon="play-circle"}{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">
- {crmButton p="civicrm/admin/uf/group/field/add" q="reset=1&action=add&gid=$gid" icon="plus-circle"}{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="television"}{ts}Preview (all fields){/ts}{/crmButton}{if !$skipCreate }{crmButton p="civicrm/profile/create" q="gid=$gid&reset=1" icon="play-circle"}{ts}Use (create mode){/ts}{/crmButton}{/if}
+ {crmButton p="civicrm/admin/uf/group/field/add" q="reset=1&action=add&gid=$gid" icon="plus-circle"}{ts}Add Field{/ts}{/crmButton}{if !$isGroupReserved}{crmButton p="civicrm/admin/uf/group" q="action=update&id=`$gid`&reset=1&context=field" icon="wrench"}{ts}Edit Settings{/ts}{/crmButton}{/if}{crmButton p="civicrm/admin/uf/group" q="action=preview&id=`$gid`&reset=1&field=0&context=field" icon="television"}{ts}Preview (all fields){/ts}{/crmButton}{if !$skipCreate }{crmButton p="civicrm/profile/create" q="gid=$gid&reset=1" icon="play-circle"}{ts}Use (create mode){/ts}{/crmButton}{/if}
<div class="clear"></div>
</div>
{/if}
function checkResponse(e, response) {
if (response.illegal) {
$(this).dialog('option', 'buttons', [
- {text: {/literal}'{ts escape="js"}Close{/ts}'{literal}, click: function() {$(this).dialog('close');}, icons: {primary: 'ui-icon-close'}}
+ {text: {/literal}'{ts escape="js"}Close{/ts}'{literal}, click: function() {$(this).dialog('close');}, icons: {primary: 'fa-times'}}
]);
}
}
{assign var='html' value=$form.buttons.$key.html}
{/if}
{crmGetAttribute html=$html attr='crm-icon' assign='icon'}
+ {capture assign=iconPrefix}{$icon|truncate:3:"":true}{/capture}
+ {if $icon && $iconPrefix eq 'fa-'}
+ {assign var='buttonClass' value=' crm-i-button'}
+ {capture assign=iconDisp}<i class="crm-i {$icon}"></i>{/capture}
+ {elseif $icon}
+ {assign var='buttonClass' value=' crm-icon-button'}
+ {capture assign=iconDisp}<span class="crm-button-icon ui-icon-{$icon}"> </span>{/capture}
+ {/if}
{crmGetAttribute html=$html attr='disabled' assign='disabled'}
- <span class="crm-button crm-button-type-{$key|crmBtnType} crm-button{$key}{if $icon} crm-icon-button{/if}{if $disabled} crm-button-disabled{/if}"{if $buttonStyle} style="{$buttonStyle}"{/if}>
- {if $icon}<span class="crm-button-icon ui-icon-{$icon}"> </span>{/if}
+ <span class="crm-button crm-button-type-{$key|crmBtnType} crm-button{$key}{$buttonClass}{if $disabled} crm-button-disabled{/if}"{if $buttonStyle} style="{$buttonStyle}"{/if}>
+ {$iconDisp}
{$html}
</span>
{/if}