Hide button in popup mode
authorColeman Watts <coleman@civicrm.org>
Wed, 30 Apr 2014 03:14:14 +0000 (20:14 -0700)
committerColeman Watts <coleman@civicrm.org>
Wed, 30 Apr 2014 03:14:14 +0000 (20:14 -0700)
templates/CRM/UF/Form/Group.tpl

index 6388cf8901eec355f6db0e2ca6f9b46ef25f132f..9212e49d839983f48b8a065437dfbc24da89f7d4 100644 (file)
@@ -32,7 +32,7 @@
 {if $action neq 8}
 <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
 {/if}
-{if $action eq 2 or $action eq 4 } {* Update or View*}
+{if ($action eq 2 or $action eq 4) and $snippet neq 'json' } {* Update or View*}
     <div class="action-link">
   <a href="{crmURL p='civicrm/admin/uf/group/field' q="action=browse&reset=1&gid=$gid"}" class="button"><span>{ts}View or Edit Fields for this Profile{/ts}</a></span>
   <div class="clear"></div>