register-pass2.tpl 1.72 KB
Newer Older
luciash's avatar
luciash committed
1
{* $Id$ *}
2
{if $prefs.user_register_prettytracker eq 'y' and $prefs.user_register_prettytracker_tpl}
3
	<input id='pass2' type="password" name="passAgain" onkeypress="regCapsLock(event)" class="form-control" >
4
	{if $prefs.user_register_prettytracker_hide_mandatory neq 'y'}&nbsp;<strong class='mandatory_star text-danger tips' title=":{tr}This field is mandatory{/tr}">*</strong>{/if}
5
{else}
6
	{if !isset($openid_associate) || $openid_associate neq 'y'}
luciash's avatar
luciash committed
7
		<div class="form-group">
8
			<label class="col-sm-4 control-label" for="pass2">{tr}Confirm password{/tr} {if $trackerEditFormId}<strong class='mandatory_star text-danger tips' title=":{tr}This field is mandatory{/tr}">*</strong>{/if}</label>
9
			<div class="col-sm-8">
10 11 12 13 14 15 16 17 18 19 20 21 22 23
				<input
					class="form-control"
					id='pass2'
					type="password"
					name="passAgain"
					value="{if !empty($smarty.post.passAgain)}{$smarty.post.passAgain}{/if}"
				>
				<div id="mypassword2_text">
					<div id="match" style="display:none">
						{icon name='ok' istyle='color:#0ca908'} {tr}Passwords match{/tr}
					</div>
					<div id="nomatch" style="display:none">
						{icon name='error' istyle='color:#ff0000'} {tr}Passwords do not match{/tr}
					</div>
24
				</div>
25
				{if $prefs.feature_jquery_validation neq 'y' && !$userTrackerData}<span id="checkpass"></span>{/if}
luciash's avatar
luciash committed
26
			</div>
27
		</div>
28 29 30
		{if $prefs.generate_password eq 'y'}
			{*if !$reg_in_module}<td>&nbsp;</td>{/if*}
			<div class="form-group">
31
				<div class="col-sm-3 col-sm-offset-4">
32 33
					<span id="genPass">{button href="#" _text="{tr}Generate a password{/tr}"}</span>
				</div>
34
				<div class="col-sm-3">
35 36 37 38
					<input id='genepass' class="form-control" name="genepass" type="text" tabindex="0" style="display:none">
				</div>
			</div>
		{/if}
39
	{/if}
40
{/if}