From: <ri...@us...> - 2008-08-29 18:23:04
|
Revision: 14550 http://tikiwiki.svn.sourceforge.net/tikiwiki/?rev=14550&view=rev Author: ricks99 Date: 2008-08-29 18:23:14 +0000 (Fri, 29 Aug 2008) Log Message: ----------- [MOD]move the generate pw link. make it a button. add strength and match checker to the button. Modified Paths: -------------- trunk/templates/tiki-register.tpl Modified: trunk/templates/tiki-register.tpl =================================================================== --- trunk/templates/tiki-register.tpl 2008-08-29 17:58:16 UTC (rev 14549) +++ trunk/templates/tiki-register.tpl 2008-08-29 18:23:14 UTC (rev 14550) @@ -42,10 +42,9 @@ {else} - <form action="tiki-register.php" method="post"> <br /> + <form action="tiki-register.php" method="post" name="RegForm"> <br /> <table class="normal"> - <tr><td class="formcolor">{if $prefs.login_is_email eq 'y'}{tr}Email{/tr}{else}{tr}Username{/tr}{/if}:</td> <td class="formcolor"> <input type="text" name="name" id="name"{if $prefs.feature_ajax eq 'y'} onKeyUp="return check_name()"{/if} /><br /> @@ -74,6 +73,13 @@ {if $prefs.feature_ajax ne 'y' and $prefs.min_pass_length > 1}<em>{tr}Minimum {$prefs.min_pass_length} characters long{/tr}</em>. {/if} {if $prefs.feature_ajax ne 'y' and $prefs.pass_chr_num eq 'y'}<em>{tr}Password must contain both letters and numbers{/tr}</em>.{/if} {if $prefs.feature_ajax ne 'y'}</div></p>{/if} + + +{if $prefs.generate_password eq 'y'} + <p><div><a class="linkbut" href="#" onClick="genPass('genepass','pass1','pass2');runPassword(document.RegForm.genpass.value, 'mypassword');{if $prefs.feature_ajax eq 'y'}check_pass();{/if}">{tr}Generate a password{/tr}:</a> <input id='genepass' name="genpass" type="text" /></div></p> +{/if} + + </td> </tr> @@ -124,12 +130,4 @@ {icon _id=information style="vertical-align:middle" align="left"}{tr}NOTE: Make sure to whitelist this domain to prevent registration emails being canned by your spam filter!{/tr} </div> <br /> - - {if $prefs.generate_password eq 'y'} - <table class="normal"> - <tr><td class="formcolor"><a class="link" href="javascript:genPass('genepass','pass1','pass2');">{tr}Generate a password{/tr}</a></td> - <td class="formcolor"><input id='genepass' type="text" /></td> - </tr> - </table> - {/if} {/if} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |