{combine_css path=$CONTACT_FORM_PATH|@cat:"admin/template/style.css"} {footer_script}{literal} jQuery(document).on('change', '.delete', function() { if ($(this).is(':checked')) { $(this).parents('tr').addClass('delete'); } else { $(this).parents('tr').removeClass('delete'); } }); {/literal}{/footer_script}

Contact Form

{counter start=0 assign=i} {foreach from=$EMAILS item=entry} {counter} {/foreach}
{'Name'|@translate} {'Email address'|@translate} {'Active'|@translate} {'Delete'|@translate}
{'+ Add an email'|@translate}
{footer_script}var entry = {$i};{/footer_script}

{footer_script}{literal} jQuery('#addEntry').click(function() { entry++; i = entry; $('#emails').append( ''+ ''+ ''+ ''+ ''+ ''+ ''+ ''+ ''+ ''+ ''+ ''+ ''+ '' ); $('#addEntryContainer') .removeClass('row1 row2') .addClass('row'+ Math.abs(i%2-2)) .appendTo($('#emails')); }); {/literal}{/footer_script}