Add ID to custom group/field admin forms
authorMatthew Wire <mjw@mjwconsult.co.uk>
Fri, 10 Apr 2020 17:54:52 +0000 (18:54 +0100)
committerMatthew Wire <mjw@mjwconsult.co.uk>
Fri, 10 Apr 2020 17:54:52 +0000 (18:54 +0100)
templates/CRM/Custom/Page/Field.tpl
templates/CRM/Custom/Page/Group.tpl

index 8a3c3001cb2f73077c6a357b43f7b7b5c6bcf214..01b5cc6114550b0a0a9b167bb28fa1f190115c20 100644 (file)
@@ -23,6 +23,7 @@
          <table id="options" class="row-highlight">
          <thead>
          <tr>
+            <th>{ts}ID{/ts}</th>
             <th>{ts}Field Label{/ts}</th>
             <th>{ts}Data Type{/ts}</th>
             <th>{ts}Field Type{/ts}</th>
@@ -36,6 +37,7 @@
         <tbody>
         {foreach from=$customField item=row}
         <tr id="CustomField-{$row.id}" class="crm-entity {cycle values="odd-row,even-row"}{if NOT $row.is_active} disabled{/if}">
+            <td>{$row.id}</td>
             <td class="crm-editable" data-field="label">{$row.label}</td>
             <td>{$row.data_type}</td>
             <td>{$row.html_type}</td>
index 008e50cad29d0e67b47ddf4e793ea3174ce5a601..d430a99f3bac36ded4e2732f09ccdfa28cfbe4e1 100644 (file)
@@ -28,6 +28,7 @@
       <table id="options" class="row-highlight">
         <thead>
           <tr>
+            <th>{ts}ID{/ts}</th>
             <th>{ts}Set{/ts}</th>
             <th>{ts}Enabled?{/ts}</th>
             <th>{ts}Used For{/ts}</th>
@@ -40,6 +41,7 @@
         <tbody>
         {foreach from=$rows item=row}
         <tr id="CustomGroup-{$row.id}" data-action="setvalue" class="crm-entity {cycle values="odd-row,even-row"} {$row.class}{if NOT $row.is_active} disabled{/if}">
+          <td>{$row.id}</td>
           <td class="crmf-title crm-editable">{$row.title}</td>
           <td id="row_{$row.id}_status">{if $row.is_active eq 1} {ts}Yes{/ts} {else} {ts}No{/ts} {/if}</td>
           <td>{if $row.extends eq 'Contact'}{ts}All Contact Types{/ts}{else}{$row.extends_display}{/if}</td>