$this->assign('id', $this->_id);
$this->assign('mode', $this->_mode);
+ $this->assign('isHideFieldSet', ($this->_mode === self::MODE_CREATE || $this->_mode === self::MODE_EDIT));
$this->assign('action', $this->_action);
$this->assign('fields', $this->_fields);
$this->assign('fieldset', (isset($this->_fieldset)) ? $this->_fieldset : "");
<div class="clearfix">
{assign var=pre value="event[`$event_id`][participant][`$participant_id`][customPre]"}
<div class="profile-group">
- {include file="CRM/UF/Form/Block.tpl" fields=$custom.$pre form=$form.field.$participant_id}
+ {include file="CRM/UF/Form/Block.tpl" fields=$custom.$pre form=$form.field.$participant_id hideFieldset=false}
</div>
<div class="participant-info crm-section form-item">
{assign var=post value="event[`$event_id`][participant][`$participant_id`][customPost]"}
<div style="clear:left"></div>
<div class="profile-group">
- {include file="CRM/UF/Form/Block.tpl" fields=$custom.$post form=$form.field.$participant_id}
+ {include file="CRM/UF/Form/Block.tpl" fields=$custom.$post form=$form.field.$participant_id hideFieldset=false}
</div>
</div>
<!--if $form_participant->participant_index > 0-->
{if $onbehalfProfile && $onbehalfProfile|@count}
<div class="crm-group onBehalf_display-group label-left crm-profile-view">
- {include file="CRM/UF/Form/Block.tpl" fields=$onbehalfProfile prefix='onbehalf'}
+ {include file="CRM/UF/Form/Block.tpl" fields=$onbehalfProfile prefix='onbehalf' hideFieldset=false}
</div>
{/if}
<div class="display-block">
<div class="label-left crm-section honoree_profile-section">
<strong>{$honorName}</strong><br/>
- {include file="CRM/UF/Form/Block.tpl" fields=$honoreeProfileFields mode=8 prefix='honor'}
+ {include file="CRM/UF/Form/Block.tpl" fields=$honoreeProfileFields mode=8 prefix='honor' hideFieldset=false}
</div>
</div>
</div>
{if $customPre}
<fieldset class="label-left crm-profile-view">
- {include file="CRM/UF/Form/Block.tpl" fields=$customPre prefix=false}
+ {include file="CRM/UF/Form/Block.tpl" fields=$customPre prefix=false hideFieldset=false}
</fieldset>
{/if}
{if $customPost}
<fieldset class="label-left crm-profile-view">
- {include file="CRM/UF/Form/Block.tpl" fields=$customPost prefix=false}
+ {include file="CRM/UF/Form/Block.tpl" fields=$customPost prefix=false hideFieldset=false}
</fieldset>
{/if}
{/if}
{/crmRegion}
<div id="honorType" class="honoree-name-email-section">
- {include file="CRM/UF/Form/Block.tpl" fields=$honoreeProfileFields mode=8 prefix='honor'}
+ {include file="CRM/UF/Form/Block.tpl" fields=$honoreeProfileFields mode=8 prefix='honor' hideFieldset=false}
</div>
</fieldset>
{/if}
<div class="crm-public-form-item crm-group custom_pre_profile-group">
- {include file="CRM/UF/Form/Block.tpl" fields=$customPre prefix=false}
+ {include file="CRM/UF/Form/Block.tpl" fields=$customPre prefix=false hideFieldset=false}
</div>
{if array_key_exists('pcp_display_in_roll', $form)}
{include file="CRM/Core/BillingBlockWrapper.tpl"}
<div class="crm-public-form-item crm-group custom_post_profile-group">
- {include file="CRM/UF/Form/Block.tpl" fields=$customPost prefix=false}
+ {include file="CRM/UF/Form/Block.tpl" fields=$customPost prefix=false hideFieldset=false}
</div>
<div id="crm-submit-buttons" class="crm-submit-buttons">
</div>
</div>
{/if}
- {include file="CRM/UF/Form/Block.tpl" fields=$onBehalfOfFields mode=8 prefix='onbehalf'}
+ {include file="CRM/UF/Form/Block.tpl" fields=$onBehalfOfFields mode=8 prefix='onbehalf' hideFieldset=true}
</fieldset>
{/if}
{/crmRegion}
{if $onbehalfProfile && $onbehalfProfile|@count}
<div class="crm-group onBehalf_display-group label-left crm-profile-view">
- {include file="CRM/UF/Form/Block.tpl" fields=$onbehalfProfile prefix='onbehalf'}
+ {include file="CRM/UF/Form/Block.tpl" fields=$onbehalfProfile prefix='onbehalf' hideFieldset=false}
</div>
{/if}
<div class="display-block">
<div class="label-left crm-section honoree_profile-section">
<strong>{$honorName}</strong><br/>
- {include file="CRM/UF/Form/Block.tpl" fields=$honoreeProfileFields prefix='honor'}
+ {include file="CRM/UF/Form/Block.tpl" fields=$honoreeProfileFields prefix='honor' hideFieldset=false}
</div>
</div>
</div>
{if $customPre}
<fieldset class="label-left crm-profile-view">
- {include file="CRM/UF/Form/Block.tpl" fields=$customPre prefix=false}
+ {include file="CRM/UF/Form/Block.tpl" fields=$customPre prefix=false hideFieldset=false}
</fieldset>
{/if}
{if $customPost}
<fieldset class="label-left crm-profile-view">
- {include file="CRM/UF/Form/Block.tpl" fields=$customPost prefix=false}
+ {include file="CRM/UF/Form/Block.tpl" fields=$customPost prefix=false hideFieldset=false}
</fieldset>
{/if}
{else}
<div class="form-item">
{include file="CRM/common/CMSUser.tpl"}
-{include file="CRM/UF/Form/Block.tpl" fields=$fields prefix=false}
+{include file="CRM/UF/Form/Block.tpl" fields=$fields prefix=false hideFieldset=false}
</div>
<div class="crm-submit-buttons">
{include file="CRM/common/formButtons.tpl" location="bottom"}
{/if}
<div class="crm-public-form-item crm-section custom_pre-section">
- {include file="CRM/UF/Form/Block.tpl" fields=$additionalCustomPre prefix=false}
+ {include file="CRM/UF/Form/Block.tpl" fields=$additionalCustomPre prefix=false hideFieldset=false}
</div>
{if $priceSet && $allowGroupOnWaitlist}
{/if}
<div class="crm-public-form-item crm-section custom_post-section">
- {include file="CRM/UF/Form/Block.tpl" fields=$additionalCustomPost prefix=false}
+ {include file="CRM/UF/Form/Block.tpl" fields=$additionalCustomPost prefix=false hideFieldset=false}
</div>
<div id="crm-submit-buttons" class="crm-submit-buttons">
<div class="crm-public-form-item crm-section custom_pre-section">
{* Display "Top of page" profile immediately after the introductory text *}
- {include file="CRM/UF/Form/Block.tpl" fields=$customPre prefix=false}
+ {include file="CRM/UF/Form/Block.tpl" fields=$customPre prefix=false hideFieldset=false}
</div>
{if $priceSet}
{/if}
<div class="crm-public-form-item crm-section custom_post-section">
- {include file="CRM/UF/Form/Block.tpl" fields=$customPost prefix=false}
+ {include file="CRM/UF/Form/Block.tpl" fields=$customPost prefix=false hideFieldset=false}
</div>
<div id="crm-submit-buttons" class="crm-submit-buttons">
{else}
<div class="form-item crm-block crm-form-block">
{include file="CRM/common/CMSUser.tpl"}
-{include file="CRM/UF/Form/Block.tpl" fields=$fields prefix=false}
+{include file="CRM/UF/Form/Block.tpl" fields=$fields prefix=false hideFieldset=false}
<div class="crm-submit-buttons">
{include file="CRM/common/formButtons.tpl" location="bottom"}
{/if}
{if ($action eq 1 and $mode eq 4 ) or ($action eq 2) or ($action eq 8192)}
+ {assign var=floatStyle value=''}
{if $action eq 2 and $multiRecordFieldListing}
<div class="crm-multi-record-custom-field-listing">
{include file="CRM/Profile/Page/MultipleRecordFieldsListing.tpl" showListing=true}
{strip}
{assign var=zeroField value="Initial Non Existent Fieldset"}
{assign var=fieldset value=$zeroField}
- {include file="CRM/UF/Form/Fields.tpl"}
+ {* Unfortunately uF group information is munged into the uf fields array. We have ot iterate throug
+ to extract it. I n future we could migrate to a version of Block.tpl that expects the UFGroup
+ to be assigned by itself & remove this *}
+ {foreach from=$fields item=field key=fieldName}
+ {assign var=groupHelpPost value=$field.groupHelpPost}
+ {assign var=groupHelpPre value=$field.groupHelpPre}
+ {assign var=fieldset value=$field.groupTitle}
+ {assign var=groupDisplayTitle value=$field.groupDisplayTitle}
+ {assign var=group_id value=$field.group_id}
+ {assign var=groupName value=$field.groupName}
+ {/foreach}
- {if $field.groupHelpPost && $action neq 4}
- <div class="messages help">{$field.groupHelpPost}</div>
+ {if $groupHelpPre && $action neq 4}
+ <div class="messages help">{$groupHelpPre|smarty:nodefaults|purify}</div>
{/if}
- {if $mode eq 4}
- <div class="crm-submit-buttons">
- {$form.buttons.html}
- </div>
+ {if !$hideFieldset}
+ <fieldset class="crm-profile crm-profile-id-{$group_id} crm-profile-name-{$groupName}"><legend>{$groupDisplayTitle}</legend>
{/if}
- {if $mode ne 8 && !$hideFieldset}
- </fieldset>
+ {if ($form.formName eq 'Confirm' OR $form.formName eq 'ThankYou') AND $prefix neq 'honor'}
+ <div class="header-dark">{$groupDisplayTitle} </div>
+ {/if}
+ {include file="CRM/UF/Form/Fields.tpl"}
+
+ {if $groupHelpPost && $action neq 4}
+ <div class="messages help">{$groupHelpPost|smarty:nodefaults|purify}</div>
+ {/if}
+ {if !$hideFieldset}
+ </fieldset>
{/if}
{/strip}
{assign var="rowIdentifier" value=$field.name}
{/if}
- {if $field.groupTitle != $fieldset}
- {if $fieldset != $zeroField}
- {if $groupHelpPost && $action neq 4}
- <div class="messages help">{$groupHelpPost|smarty:nodefaults|purify}</div>
- {/if}
- {if $mode ne 8}
- </fieldset>
- {/if}
- {/if}
-
- {if !$hideFieldset}
- <fieldset class="crm-profile crm-profile-id-{$field.group_id} crm-profile-name-{$field.groupName}"><legend>{$field.groupDisplayTitle}</legend>
- {/if}
-
- {if ($form.formName eq 'Confirm' OR $form.formName eq 'ThankYou') AND $prefix neq 'honor'}
- <div class="header-dark">{$field.groupDisplayTitle} </div>
- {/if}
- {assign var=fieldset value=`$field.groupTitle`}
- {assign var=groupHelpPost value=`$field.groupHelpPost`}
- {if $field.groupHelpPre && $action neq 4}
- <div class="messages help">{$field.groupHelpPre|smarty:nodefaults|purify}</div>
- {/if}
- {/if}
-
{if $field.field_type eq "Formatting"}
{if $action neq 4}
{$field.help_pre}