CRM-16415 - Use crmButton for menu buttons
authorColeman Watts <coleman@civicrm.org>
Thu, 12 Nov 2015 21:55:47 +0000 (16:55 -0500)
committerColeman Watts <coleman@civicrm.org>
Thu, 12 Nov 2015 21:55:47 +0000 (16:55 -0500)
templates/CRM/Block/CreateNew.tpl
templates/CRM/Contact/Page/Inline/Actions.tpl
templates/CRM/Contribute/Form/ContributionPage/Tab.tpl
templates/CRM/Event/Form/ManageEvent/Tab.tpl

index 3c6f0dbca3371febb2f95d96fa11a3c2e4eda751..2a5b6421937cc1be2eecc11e2a6f7b701d4de7c2 100644 (file)
@@ -24,7 +24,7 @@
 *}
 <div class="block-civicrm crm-container">
 <div id="crm-create-new-wrapper">
-  <a id="crm-create-new-link" class="button" href="#"><span><i class="crm-i fa-bars"></i> {ts}Create New{/ts}</span></a>
+  {crmButton id="crm-create-new-link" href="#" icon="bars"}{ts}Create New{/ts}{/crmButton}
     <div id="crm-create-new-list">
       <div class="crm-create-new-list-inner">
       <ul>
index 5f0f4c3d77f5102e790f0490470afaa483b8071f..ccdb95700c3ee1d66c518ed048378f80cd9554df 100644 (file)
@@ -26,7 +26,9 @@
 {* this template is used for the dropdown menu of the "Actions" button on contacts. *}
 
 <div id="crm-contact-actions-wrapper" data-edit-params='{ldelim}"cid": "{$contactId}", "class_name": "CRM_Contact_Page_Inline_Actions"{rdelim}'>
-  <a id="crm-contact-actions-link" href="#" class="button"><span><i class="crm-i fa-bars"></i> {ts}Actions{/ts}</span></a>
+  {crmButton id="crm-contact-actions-link" href="#" icon="bars"}
+    {ts}Actions{/ts}
+  {/crmButton}
     <div class="ac_results" id="crm-contact-actions-list">
       <div class="crm-contact-actions-list-inner">
         <div class="crm-contact_activities-list">
index 97b1e0d12896a37f9d7118281e20a9148a1bc189..c4b3e08be716e7b689b27fe948ac450dd9198b90 100644 (file)
@@ -27,9 +27,7 @@
 <div class="crm-actions-ribbon crm-contribpage-tab-actions-ribbon">
    <ul id="actions">
       <li><div id="crm-contribpage-links-wrapper">
-            <a id="crm-contribpage-links-link" class="button">
-              <span><i class="crm-i fa-bars"></i> {ts}Contribution Links{/ts}</span>
-            </a>
+            {crmButton id="crm-contribpage-links-link" href="#" icon="bars"}{ts}Contribution Links{/ts}{/crmButton}
               <div class="ac_results" id="crm-contribpage-links-list">
                  <div class="crm-contribpage-links-list-inner">
                    <ul>
index daeb864216794dd4a18014143f803e1a77f50b59..778c427cb12e3c328dc72a96df6c9a877301effc 100644 (file)
@@ -28,7 +28,7 @@
     <div class="crm-actions-ribbon crm-event-manage-tab-actions-ribbon">
       <ul id="actions">
       <li><div id="crm-event-links-wrapper">
-            <a id="crm-event-links-link" class="button"><span><i class="crm-i fa-bars"></i> {ts}Event Links{/ts}</span></a>
+            {crmButton id="crm-event-links-link" href="#" icon="bars"}{ts}Event Links{/ts}{/crmButton}
             <div class="ac_results" id="crm-event-links-list">
                  <div class="crm-event-links-list-inner">
                    <ul>
@@ -44,7 +44,7 @@
         </div></li>
 
       <li><div id="crm-participant-wrapper">
-            <a id="crm-participant-link" class="button"><span><i class="crm-i fa-bars"></i> {ts}Find Participants{/ts}</span></a>
+            {crmButton id="crm-participant-link" href="#" icon="bars"}{ts}Find Participants{/ts}{/crmButton}
             <div class="ac_results" id="crm-participant-list">
                  <div class="crm-participant-list-inner">
                    <ul>