dev/core/482 resolve issue for inline template as well
authorEli Lisseck <lisseck@gmail.com>
Thu, 29 Nov 2018 01:04:59 +0000 (17:04 -0800)
committerEli Lisseck <lisseck@gmail.com>
Thu, 29 Nov 2018 01:04:59 +0000 (17:04 -0800)
templates/CRM/Contact/Form/Inline/Website.tpl

index 8057d46ddde4adf86c8fc13148cdba85f0d2b3a7..ccd6e4aa043f32402ea194008deba131d336748f 100644 (file)
@@ -50,7 +50,9 @@
     <tr id="Website_Block_{$blockId}" {if $blockId gt $actualBlockCount}class="hiddenElement"{/if}>
       <td>{$form.website.$blockId.url.html|crmAddClass:url}&nbsp;</td>
       <td>{$form.website.$blockId.website_type_id.html}</td>
-      <td><a class="crm-delete-inline crm-hover-button action-item" href="#" title="{ts}Delete Website{/ts}"><span class="icon delete-icon"></span></a></td>
+      {if $blockId gt 1}
+        <td><a class="crm-delete-inline crm-hover-button action-item" href="#" title="{ts}Delete Website{/ts}"><span class="icon delete-icon"></span></a></td>
+      {/if}
     </tr>
     {/section}
 </table>