- {if $formName == "Contribute_Preferences"}
- <table class = "form-layout">
- {foreach from=$htmlFields item=desc key=htmlField}
- {if $form.$htmlField}
- {assign var=n value=$htmlField|cat:'_description'}
- <tr class="crm-preferences-form-block-{$htmlField}">
- {if $form.$htmlField.html_type EQ 'checkbox'|| $form.$htmlField.html_type EQ 'checkboxes'}
- <td class="label"></td>
- <td>
- {$form.$htmlField.html} {$form.$htmlField.label}
- {if $desc}
- <br /><span class="description">{$desc}</span>
- {/if}
- </td>
- {else}
- <td class="label">{$form.$htmlField.label} {if $htmlField eq 'acl_financial_type'}{help id="$htmlField"}{/if}</td>
- <td>
- {$form.$htmlField.html}
- {if $desc}
- <br /><span class="description">{$desc}</span>
- {/if}
- </td>
- {/if}
- </tr>
- {/if}
- {/foreach}
- </table>
- {/if}
- <table class="form-layout" id="invoicing_blocks">
- {foreach from=$fields item=field key=fieldName}
- {assign var=n value=$fieldName}
- {if $form.$n}
- <tr class="crm-preferences-form-block-{$fieldName}">
- {if $field.html_type EQ 'checkbox'|| $field.html_type EQ 'checkboxes'}
- <td class="label"></td>
- <td>
- {$form.$n.html}
- {if $field.description}
- <br /><span class="description">{$field.description}</span>
- {/if}
- </td>
- {else}
- <td class="label">{$form.$n.label}</td>
- <td>
- {$form.$n.html}
- {if $field.description}
- <br /><span class="description">{$field.description}</span>
- {/if}
- </td>
- {/if}
- </tr>
- {/if}
- {/foreach}
- </table>
-