Page MenuHomeIn-Portal Phabricator

registration_fields.elm.tpl
No OneTemporary

File Metadata

Created
Fri, Feb 7, 7:26 PM

registration_fields.elm.tpl

<!--## AFFILIATE REGISTRATION CHECKBOX ##-->
<inp2:m_if check="m_ConfigEquals" option="Comm_RegisterAsAffiliate" value="1">
<inp2:m_RenderElement name="inp_edit_field_separator" is_last="0"/>
<tr class="<inp2:m_odd_even odd="table_color1" even="table_color2"/>">
<inp2:m_inc param="tab_index" by="1"/>
<td class="field-name">
<label for="RegisterAsAffiliate">
<inp2:m_phrase label="lu_fld_RegisterAsAffiliate"/>:
</label>
</td>
<td class="field-value">
<input tabindex="<inp2:m_get param="tab_index"/>" type="checkbox" id="RegisterAsAffiliate" name="RegisterAsAffiliate" onchange="toggle_affiliate()" <inp2:m_if check="m_GetEquals" name="RegisterAsAffiliate" value="on">checked</inp2:m_if>/>
<input class="hidden-element" type="submit" id="events[u][OnRefreshForm]" name="events[u][OnRefreshForm]" />
</td>
</tr>
<inp2:m_if check="m_GetEquals" name="RegisterAsAffiliate" value="on">
<inp2:m_RenderElement name="inp_edit_field_separator" is_last="0"/>
</inp2:m_if>
</inp2:m_if>
<!--## /AFFILIATE REGISTRATION CHECKBOX ##-->
<inp2:m_if check="m_GetEquals" name="RegisterAsAffiliate" value="on">
<inp2:m_include template="in-commerce/elements/forms.elm"/>
<inp2:m_RenderElement name="inp_affiliate_box" field="SSN" title="lu_fld_SSNField" required="1"/>
<inp2:m_RenderElement name="inp_affiliate_payment_types" field="PaymentTypeId" title="lu_fld_AffiliatePaymentType"/>
<inp2:m_RenderElement name="inp_affiliate_textarea" field="Comments" title="lu_fld_AffiliateComments" cols="35" rows="5"/>
<inp2:m_RenderElement name="inp_affiliate_terms_checkbox"/>
</inp2:m_if>
<script type="text/javascript">
function toggle_affiliate() {
document.getElementById('events[u][OnRefreshForm]').click();
}
</script>

Event Timeline