CRM-13929 - Centralize and simplify radio clear widget
[civicrm-core.git] / templates / CRM / Custom / Form / CustomField.tpl
index d4e3d3046a6ff8f4403004f28d5f66c59d943035..9bb38a40924318881b0581cb2ecacf6a03222195 100644 (file)
@@ -54,9 +54,6 @@
                                 {/if}
                             {/if}
                         {/foreach}
-                        {if $element.html_type eq 'Radio' and $element.is_view eq 0}
-                            <td><span class="crm-clear-link">(<a href="#" title="unselect" onclick="unselectRadio('{$element_name}', '{$form.formName}'); return false;" >{ts}clear{/ts}</a>)</span></td>
-                        {/if}
                     </tr>
                 </table>
             </td>
@@ -72,9 +69,7 @@
                     {include file="CRM/common/jcalendar.tpl" elementName=$element_name}
                 {/if}
 
-                {if $element.html_type eq 'Radio' and $element.is_view eq 0}
-                    <span class="crm-clear-link">(<a href="#" title="unselect" onclick="unselectRadio('{$element_name}', '{$form.formName}'); return false;" >{ts}clear{/ts}</a>)</span>
-                {elseif $element.data_type eq 'File'}
+                {if $element.data_type eq 'File'}
                     {if $element.element_value.data}
                       <div id="attachStatusMesg_{$element_name}" class="status hiddenElement"></div>
                       <div id="attachFile_{$element_name}">