Skip to content

Commit

Permalink
Merge pull request #13169 from elisseck/dev/core/482
Browse files Browse the repository at this point in the history
dev/core/482 standardize contact edit form delete block behavior
  • Loading branch information
monishdeb authored Dec 4, 2018
2 parents 2d277de + f336ee2 commit c9bb766
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 3 additions & 2 deletions templates/CRM/Contact/Form/Edit/Website.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@
<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"><a href="#" title="{ts}Delete Website Block{/ts}" onClick="removeBlock('Website','{$blockId}'); return false;">{ts}delete{/ts}</a></td>
{if $blockId gt 1}
<td colspan="3"><a href="#" title="{ts}Delete Website Block{/ts}" onClick="removeBlock('Website','{$blockId}'); return false;">{ts}delete{/ts}</a></td>
{/if}
</tr>
{if !$addBlock}
<tr>
Expand All @@ -50,4 +52,3 @@
</td>
</tr>
{/if}

4 changes: 3 additions & 1 deletion templates/CRM/Contact/Form/Inline/Website.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit c9bb766

Please sign in to comment.