{style} .owm_join_photo_upload .owm_upload_photo_attach_wrap { padding:0px; } .owm_join_photo_button { position: absolute; top: 9px; left: 10px; } .owm_join_photo_button_label { padding-left: 63px; margin-right: 8px; min-width:53px; float:left; } .owm_join_photo_button_img { min-width: 100px; float: left; } {/style} {script} $("input[name=userPhoto]").change(function() { var img = $('.join_photo_upload #photo-file-prevew'); var img_span = img.parents(".join_photo_upload .owm_upload_img_name_label"); var changeLabel = $('.join_photo_upload .owm_upload_replace_label'); var uploadLabel = $('.join_photo_upload .owm_upload_choose_label'); var icon = $('.join_photo_upload .join_photo_button a'); var name = img_span.find("span"); name.text(""); img_span.hide(); if (!this.files || !this.files[0]) { return }; if ( window.FileReader ) { var reader = new FileReader(); reader.onload = function (e) { img.attr('src', e.target.result); img_span.css('display','table'); changeLabel.css('display','table'); uploadLabel.hide(); icon.parents('div:eq(0)').addClass('owm_upload_photo_attach_wrap'); } reader.readAsDataURL(this.files[0]); } else { name.text(this.files[0].name); } }); {/script}
{if isset($notValidInviteCode)}
{block_decorator name="box" type="empty" addClass="ow_center" style="padding:15px;"} {text key="base+join_not_valid_invite_code"} {/block_decorator}
{else} {if $step == 1}
{text key="mobile+mobile_join_promo"}
{if !empty($joinConnectHook)} {foreach from=$joinConnectHook item='item'}
{$item}
{/foreach} {/if} {/if} {form name=joinForm} {if $displayAccountType==true}
{label name='accountType'}*
{input name='accountType'}
{error name='accountType'}
{/if} {foreach from=$questionArray key='section' item='questions' name='section'} {if !empty($section) }
{/if} {foreach from=$questions item='question' name='question'} {if in_array( $question.presentation, array('text', 'password') ) }
{input name=$question.name}
{error name=$question.name}
{else}
{label name=$question.name}
{input name=$question.name}
{error name=$question.name}
{/if} {if $question.name=='password'}
{input name='repeatPassword'}
{error name='repeatPassword'}
{/if} {/foreach} {/foreach} {if $isLastStep} {if $display_photo}
{label name='userPhoto'}{if $requiredPhotoUpload}*{/if} {label name='userPhoto'}{if $requiredPhotoUpload}*{/if}
{error name='userPhoto'}
{/if} {if $display_terms_of_use}
{label name='termOfUse'}*
{input name='termOfUse'}
{error name='termOfUse'}
{/if} {if $display_captcha}
{input name='captchaField'}*
{error name='captchaField'}
{/if} {/if}
{submit name='joinSubmit'}
{/form} {/if}