{* Testlink: smarty template - Edit own account $Id: userInfo.tpl,v 1.17 2009/08/29 23:18:02 havlat Exp $ rev: 20080908 - franciscom - email validity check *} {assign var="cfg_section" value="login" } {config_load file="input_dimensions.conf" section=$cfg_section} {lang_get var='labels' s='title_account_settings,warning_empty_pwd,warning_different_pwd,never_logged, warning_enter_less1,warning_enter_at_least1,warning_enter_at_least2, warning_enter_less2,th_login,th_first_name,th_last_name, th_email,th_locale,btn_save,th_old_passwd,audit_login_history,none, th_new_passwd,th_new_passwd_again,btn_change_passwd,audit_last_failed_logins, your_password_is_external,user_api_key,btn_apikey_generate,empty_email_address, audit_last_succesful_logins,warning,warning_empty_first_name,no_good_email_address, warning_empty_last_name,passwd_dont_match,empty_old_passwd,show_event_history'} {assign var="action_mgmt" value="lib/usermanagement/userInfo.php"} {include file="inc_head.tpl" jsValidate="yes" openHead="yes"} {include file="inc_del_onclick.tpl"} {literal} {/literal}

{$labels.title_account_settings}

{include file="inc_update.tpl" user_feedback=$user_feedback}

{lang_get s="title_personal_data"}

demoMode} onsubmit="alert('{lang_get s="warn_demo"}'); return false;"> {else} onsubmit="return validatePersonalData(this)"> {/if}
{$labels.th_login} {$user->login}
{$labels.th_first_name} {include file="error_icon.tpl" field="firstName"}
{$labels.th_last_name} {include file="error_icon.tpl" field="lastName"}
{$labels.th_email} {include file="error_icon.tpl" field="emailAddress"}
{$labels.th_locale}

{lang_get s="title_personal_passwd"}

{if $external_password_mgmt eq 0 }
demoMode} onsubmit="alert('{lang_get s="warn_demo"}'); return false;"> {else} onsubmit="return checkPasswords('oldpassword','newpassword','newpassword_check');"> {/if}
{$labels.th_old_passwd}
{$labels.th_new_passwd}
{$labels.th_new_passwd_again}
{else}

{$labels.your_password_is_external}

{/if} {if $tlCfg->api->enabled eq TRUE}


{lang_get s="title_api_interface"}

{$labels.user_api_key} = {$user->userApiKey|escape}

{/if}

{$labels.audit_login_history} {if $mgt_view_events eq "yes"} {$labels.show_event_history}

{/if}

{$labels.audit_last_succesful_logins}

{if $loginHistory->ok != ''} {foreach from=$loginHistory->ok item=event} {localize_timestamp ts=$event->timestamp} {$event->description|escape}
{/foreach} {else} {$labels.never_logged} {/if}
{if $loginHistory->failed != ''}

{$labels.audit_last_failed_logins}

{foreach from=$loginHistory->failed item=event} {localize_timestamp ts=$event->timestamp} {$event->description|escape}
{/foreach}
{/if}
{if $update_title_bar == 1} {literal} {/literal} {/if}