CRM-21621 - Provide ability to delete first website field
authoryashodha <yashodha@cividesk.com>
Wed, 3 Jan 2018 09:39:47 +0000 (15:09 +0530)
committeryashodha <yashodha@cividesk.com>
Wed, 3 Jan 2018 09:39:47 +0000 (15:09 +0530)
templates/CRM/Contact/Form/Edit/Website.tpl
templates/CRM/Contact/Form/Inline/Website.tpl

index b22a5d797e3c72ebcf661a9e5e9f046d80afebab..c4ec37f6fd28a25f77cca0fb826f458ef420b25d 100644 (file)
@@ -41,7 +41,7 @@
 <tr id="Website_Block_{$blockId}">
     <td>{$form.website.$blockId.url.html|crmAddClass:url}&nbsp;</td>
     <td>{$form.website.$blockId.website_type_id.html}</td>
-    <td colspan="3">{if $blockId > 1} <a href="#" title="{ts}Delete Website Block{/ts}" onClick="removeBlock('Website','{$blockId}'); return false;">{ts}delete{/ts}</a>{/if}</td>
+    <td colspan="3"><a href="#" title="{ts}Delete Website Block{/ts}" onClick="removeBlock('Website','{$blockId}'); return false;">{ts}delete{/ts}</a></td>
 </tr>
 {if !$addBlock}
 <tr>
index f24694e778a89cf2377a52bf8e7c46a3d17cc130..5e261158653b7b27ab774cfedb84ea8bfcfce650 100644 (file)
     <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>
-        {if $blockId > 1}
-          <a class="crm-delete-inline crm-hover-button action-item" href="#" title="{ts}Delete Website{/ts}"><span class="icon delete-icon"></span></a>
-        {/if}
-       </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>
     </tr>
     {/section}
 </table>