{$required_fields=$userquery->load_signup_fields()|@array_filter} {$custom_fields=$Upload->load_custom_form_fields(false,false,false,true)} {ANCHOR place="all_conn_btns"} {if $mode == 'signup_success'}
{if $udetails.usr_status !='Ok'} {lang code='signup_success_usr_ok'} {else} {$signupsuccessusremailverify = lang('signup_success_usr_emailverify')} {$login_link = cblink(["name"=>"login"])} {sprintf($signupsuccessusremailverify,$login_link)}
{/if} {else}

### Login

{lang code="Username"}
{lang code="Password"}
{lang code="Remember me"}
{lang code='user_forgot_password'} | {lang code='user_forgot_username'}
{if $allow_registeration} {$allow_registeration} {else}

### Signup!

{foreach from=$required_fields item=field} {if $field.type!='checkbox' && $field.type!='radiobutton'} {$field.class='form-control'} {/if}
{$field.title} {if $field.type=='radiobutton'} {$field.label_class="radio-inline"} {$field.sep=" "}
{/if} {if $field.type=='checkbox'} {$field.label_class="checkbox-inline"} {$field.sep=" "}
{/if} {if $field.hint_before} {$field.hint_before} {/if} {ANCHOR place=$field.anchor_before} {$formObj->createField($field)} {ANCHOR place=$field.anchor_after} {if $field.hint_after} {$field.hint_after} {/if}
{/foreach} {foreach from=$custom_fields item=field} {if $field.type!='checkbox' && $field.type!='radiobutton'} {$field.class='form-control'} {/if}
{$field.title} {if $field.type=='radiobutton'} {$field.label_class="radio-inline"} {$field.sep=" "}
{/if} {if $field.type=='checkbox'} {$field.label_class="checkbox-inline"} {$field.sep=" "}
{/if} {if $field.hint_before} {$field.hint_before} {/if} {ANCHOR place=$field.anchor_before} {$formObj->createField($field)} {ANCHOR place=$field.anchor_after} {if $field.hint_after} {$field.hint_after} {/if}
{/foreach} {$captcha = get_captcha()} {if $captcha} {if $captcha.show_field} Verification Code {load_captcha captcha=$captcha load=field field_params = ' id="verification_code" '}
{/if}
{load_captcha captcha=$captcha load=function}
{/if}
{sprintf(lang(user_i_agree_to_the),$cbpage->get_page_link(3),$cbpage->get_page_link(2))}
{ANCHOR place="the_form"} {ANCHOR place='signup_form'} {/if}
{/if}
{literal}
{/literal}