From 06f3d6ce436489f54a2618fd8a3bfce78731172d Mon Sep 17 00:00:00 2001 From: "spider@app1" Date: Thu, 19 Oct 2017 15:00:17 -0400 Subject: remove login.php and use only signin.php; add hyridauth providers to reigstration --- templates/register.tpl | 354 +++++++++++++++++++++++++------------------------ 1 file changed, 183 insertions(+), 171 deletions(-) (limited to 'templates/register.tpl') diff --git a/templates/register.tpl b/templates/register.tpl index c254a4b..a401db3 100644 --- a/templates/register.tpl +++ b/templates/register.tpl @@ -3,6 +3,7 @@ {if $msg}
{$msg|escape}
{else} + {form class="col-md-6 col-xs-12 form-horizontal" action="`$smarty.const.USERS_PKG_URL`register.php" enctype="multipart/form-data" legend="Register as a new user" secure=$gBitSystem->isFeatureActive("site_https_login_required")} {foreach from=$reg.CUSTOM item='custom' key='custom_name'} @@ -11,217 +12,228 @@ {/foreach} {formfeedback error=$errors.create} - {if $gBitSystem->isFeatureActive('users_register_passcode')} -
- {formfeedback error=$errors.passcode} - {formlabel label="Passcode to register" for="passcode"} - {forminput} - - {formhelp note="This is not your user password. It is a code required for registration. Contact your site administrator for details."} - {/forminput} -
- {/if} + {if $hybridProviders} +
+ {formlabel label="Click to Register" for="user"} + {forminput} + {foreach from=$hybridProviders key=providerKey item=providerHash}{booticon iname=$providerHash.icon} {$providerHash.provider} {/foreach} + {formhelp note="1-Click registration with any of the sites above."} + {/forminput} +
+
+ {/if} - {if $gBitSystem->isFeatureActive( 'reg_real_name' )} -
- {formlabel label="Your Name" for="real_name"} - {forminput} - - {formhelp note="This will be displayed in links to your information."} - {/forminput} -
- {/if} + {if $gBitSystem->isFeatureActive('users_register_passcode')} +
+ {formfeedback error=$errors.passcode} + {formlabel label="Passcode to register" for="passcode"} + {forminput} + + {formhelp note="This is not your user password. It is a code required for registration. Contact your site administrator for details."} + {/forminput} +
+ {/if} + {if $gBitSystem->isFeatureActive( 'reg_real_name' )}
- {formfeedback error=$errors.login} - {formlabel label="Username" for="login"} + {formlabel label="Your Name" for="real_name"} {forminput} - - {formhelp note="This will be used in links to your profile. Your username can only contain numbers, characters, and underscores."} -
{$smarty.const.BIT_ROOT_URI}
+ + {formhelp note="This will be displayed in links to your information."} {/forminput} - + } + }; + BitUser.updateUserUrl(); + {/literal} /* ]]> */ +
+ + {if $gBitSystem->isFeatureActive( 'users_validate_user' )} + {formfeedback warning="{tr}A confirmation email will be sent to you with instructions on how to login{/tr}"} + {/if} + +
+ {formfeedback error=$errors.email} + {formlabel label="Email" for="email"} + {forminput} + + {/forminput} +
+ + {if !$gBitSystem->isFeatureActive( 'users_validate_user' )} +
+ {formfeedback error=$errors.password} + {formlabel label="Password" for="pass"} + {forminput} + + {/forminput}
- {if $gBitSystem->isFeatureActive( 'users_validate_user' )} - {formfeedback warning="{tr}A confirmation email will be sent to you with instructions on how to login{/tr}"} - {/if} -
- {formfeedback error=$errors.email} - {formlabel label="Email" for="email"} + {formfeedback error=$errors.password2} + {formlabel label="Repeat password" for="password2"} {forminput} - + {/forminput}
- {if !$gBitSystem->isFeatureActive( 'users_validate_user' )} + {if $gBitSystem->isFeatureActive( 'user_password_generator' )}
- {formfeedback error=$errors.password} - {formlabel label="Password" for="pass"} + {formlabel label="{tr}Generate a password{/tr}" for="email"} {forminput} - + + {formhelp note="You can use this link to create a random password. Make sure you make a note of it somewhere to log in to this site in the future."} {/forminput}
- + {/if} + {/if} + {if $gBitUser->hasPermission( 'p_users_view_user_homepage' ) } +
+ {formlabel label="User information" for="users_information"} + {forminput} + + {formhelp note="Please select whether you would like to be a public or private user (you can change this later)"} + {/forminput} +
+ {/if} + {if $gBitSystem->isFeatureActive( 'reg_real_name' ) or $gBitSystem->isFeatureActive( 'reg_homepage' ) or $gBitSystem->isFeatureActive( 'reg_country' ) or $gBitSystem->isFeatureActive( 'reg_language' ) or $gBitSystem->isFeatureActive( 'reg_portrait' )} + {if $gBitSystem->isFeatureActive( 'reg_homepage' )}
- {formfeedback error=$errors.password2} - {formlabel label="Repeat password" for="password2"} + {formlabel label="HomePage" for="users_homepage"} {forminput} - + + {formhelp note="If you have a personal or professional homepage, enter it here."} {/forminput}
- - {if $gBitSystem->isFeatureActive( 'user_password_generator' )} -
- {formlabel label="{tr}Generate a password{/tr}" for="email"} - {forminput} - - {formhelp note="You can use this link to create a random password. Make sure you make a note of it somewhere to log in to this site in the future."} - {/forminput} -
- {/if} {/if} - {if $gBitUser->hasPermission( 'p_users_view_user_homepage' ) } -
- {formlabel label="User information" for="users_information"} - {forminput} - - {formhelp note="Please select whether you would like to be a public or private user (you can change this later)"} - {/forminput} -
- {/if} - {if $gBitSystem->isFeatureActive( 'reg_real_name' ) or $gBitSystem->isFeatureActive( 'reg_homepage' ) or $gBitSystem->isFeatureActive( 'reg_country' ) or $gBitSystem->isFeatureActive( 'reg_language' ) or $gBitSystem->isFeatureActive( 'reg_portrait' )} - {if $gBitSystem->isFeatureActive( 'reg_homepage' )} -
- {formlabel label="HomePage" for="users_homepage"} - {forminput} - - {formhelp note="If you have a personal or professional homepage, enter it here."} - {/forminput} -
- {/if} - - {if $gBitSystem->isFeatureActive( 'reg_country' )} -
- {formlabel label="Country" for="country"} - {forminput} - - {formhelp note=""} - {/forminput} -
- {/if} - - {if $gBitSystem->isFeatureActive( 'reg_language' )} -
- {formlabel label="Language" for="language"} - {forminput} - - {formhelp note="Pick your preferred site language."} - {/forminput} -
- {/if} - - {if $gBitSystem->isFeatureActive( 'reg_portrait' )} -
- {formlabel label="Profile Picture" for="user_portrait_file"} - {forminput} - - {formhelp note="Upload a personal photo to be displayed on your personal page."} - {/forminput} -
- {/if} + + {if $gBitSystem->isFeatureActive( 'reg_country' )} +
+ {formlabel label="Country" for="country"} + {forminput} + + {formhelp note=""} + {/forminput} +
{/if} - {section name=f loop=$customFields} + {if $gBitSystem->isFeatureActive( 'reg_language' )}
- {formlabel label=$customFields[f]} + {formlabel label="Language" for="language"} {forminput} - + + {formhelp note="Pick your preferred site language."} {/forminput}
- {/section} + {/if} - {foreach from=$auth_reg_fields item='output' key='op_id'} - {assign var=op_name value="auth[`$op_id`]"} + {if $gBitSystem->isFeatureActive( 'reg_portrait' )}
- {formlabel label=$output.label for=$op_id} + {formlabel label="Profile Picture" for="user_portrait_file"} {forminput} - {if $output.type == 'checkbox'} - {forminput label="checkbox"} - {html_checkboxes name="$op_name" values="y" selected=$output.value labels=false id=$op_id} - {/forminput} - {elseif $output.type == 'option'} - - {else} - - {/if} - {formhelp note=$output.note page=$output.page link=$output.link} + + {formhelp note="Upload a personal photo to be displayed on your personal page."} {/forminput}
- {/foreach} + {/if} + {/if} - {if count($groupList) > 1} -
- {formlabel label="Group" for="group"} + {section name=f loop=$customFields} +
+ {formlabel label=$customFields[f]} {forminput} - {foreach item=gr from=$groupList name=group} - - {if $gr.is_default eq "y"} - {tr}None{/tr} - {elseif $gr.group_desc} - {$gr.group_desc} - {else} - {$gr.group_name} - {/if} - - {if !$smarty.foreach.group.last}
{/if} - {/foreach} - {formhelp note="Choose the group you belong to."} + {/forminput} - {/if} - - {foreach item=package from=$packages} - {include file=$package.template } - {/foreach} - - {captcha force=true variant=row} +
+ {/section} + {foreach from=$auth_reg_fields item='output' key='op_id'} + {assign var=op_name value="auth[`$op_id`]"}
- {forminput class="submit"} - + {formlabel label=$output.label for=$op_id} + {forminput} + {if $output.type == 'checkbox'} + {forminput label="checkbox"} + {html_checkboxes name="$op_name" values="y" selected=$output.value labels=false id=$op_id} + {/forminput} + {elseif $output.type == 'option'} + + {else} + + {/if} + {formhelp note=$output.note page=$output.page link=$output.link} {/forminput}
+ {/foreach} + + {if count($groupList) > 1} +
+ {formlabel label="Group" for="group"} + {forminput} + {foreach item=gr from=$groupList name=group} + + {if $gr.is_default eq "y"} + {tr}None{/tr} + {elseif $gr.group_desc} + {$gr.group_desc} + {else} + {$gr.group_name} + {/if} + + {if !$smarty.foreach.group.last}
{/if} + {/foreach} + {formhelp note="Choose the group you belong to."} + {/forminput} + {/if} + + {foreach item=package from=$packages} + {include file=$package.template } + {/foreach} + + {captcha force=true variant=row} + +
+ {forminput class="submit"} + + {/forminput} +
{/form} {/if} -- cgit v1.3