Add action links at top of page
authorMatthew Wire <mjw@mjwconsult.co.uk>
Tue, 29 Aug 2017 09:15:58 +0000 (10:15 +0100)
committerMatthew Wire <mjw@mjwconsult.co.uk>
Tue, 29 Aug 2017 09:15:58 +0000 (10:15 +0100)
templates/CRM/Admin/Page/MessageTemplates.tpl

index c41852d52711b3da630d139abb3ab7567ecf35cf..09465b330a8c85f697e7495dd206b1475d21ed64 100644 (file)
           {/if}
           </div>
         <div>
-          <p></p>
+          {if $action ne 1 and $action ne 2 and $type eq 'userTemplates'}
+            <div class="action-link">
+              {crmButton p='civicrm/admin/messageTemplates/add' q="action=add&reset=1" id="newMessageTemplates"  icon="plus-circle"}{ts}Add Message Template{/ts}{/crmButton}
+            </div>
+            <div class="spacer"></div>
+          {/if}
             {if !empty( $template_row) }
               <table class="display">
                 <thead>