{strip}
{bithelp}

{tr}User Preferences{/tr}

{formfeedback hash=$feedback} {jstabs} {jstab title="User"} {form} {legend legend="User Information"}
{formlabel label="Real Name" for="real_name"} {forminput} {if !$gBitSystem->getConfig('users_display_name') || $gBitSystem->getConfig('users_display_name') eq 'real_name'} {formhelp note="This is the name that is visible to other users when viewing information added by you."} {/if} {/forminput}
{formlabel label="Username"} {forminput} {if $gBitUser->hasPermission('p_users_admin')} {else} {$editUser->mInfo.login} {/if} {if $gBitSystem->getConfig('users_display_name') eq 'login'} {formhelp note="This is the name that is visible to other users when viewing information added by you."} {/if} {/forminput}
{formlabel label="Last login"} {forminput} {$editUser->mInfo.last_login|bit_long_datetime} {formhelp note=""} {/forminput}
{formlabel label="Is email public?" for="users_email_display"} {forminput} {formhelp note="Pick the scrambling method to prevent spam."} {/forminput}
{formlabel label="Country" for="country"} {forminput} {include file="bitpackage:users/flag_select_inc.tpl" fsName="users_country" fsValue=$editUser->mPrefs.users_country_code fsId="flag-select-prefs" fsSize="medium"} {/forminput}
{if $gBitSystem->isFeatureActive('users_change_language')}
{formlabel label="Language" for="language"} {forminput} {formhelp note="Pick your preferred site language."} {/forminput}
{/if} {foreach from=$customFields key=i item=field}
{formlabel label=$field} {forminput} {/forminput}
{/foreach}
{formlabel label="User information" for="users_information"} {forminput} {formhelp note=""} {/forminput}
{formlabel label="HomePage" for="users_homepage"} {forminput} {formhelp note="If you have a personal or professional homepage, enter it here."} {/forminput}
{if $gBitSystem->getConfig('users_themes') == 'y'}
{formlabel label="Theme" for="style"} {forminput} {formhelp note="Pick the theme for your personal Homepage."} {/forminput}
{/if}
{formlabel label="Displayed time zone"} {forminput}
{formhelp note="Internal data is stored using UTC time stamps, these can then be displayed using your current browser timezone offset (which ignores daylight saving), or a fixed timezone which will also manage the correct daylight saving"} {/forminput}
{/legend} {/form}
{form legend="Change your email address" secure=$gBitSystem->isFeatureActive("site_https_login_required")}
{formlabel label="Email" for="email"} {forminput} {formhelp note=""} {/forminput}
{formlabel label="Password" for="pass"} {forminput} {formhelp note=""} {/forminput}
{/form}
{form legend="Change your password" secure=$gBitSystem->isFeatureActive("site_https_login_required")} {* Users with admin priv can change password without knowing the old one *} {if !$view_user || ( !$gBitUser->hasPermission('p_users_admin') && $view_user )}
{formlabel label="Old password" for="old"} {forminput} {formhelp note=""} {/forminput}
{else} {/if}
{formlabel label="New password" for="pass1"} {forminput} {formhelp note=""} {/forminput}
{formlabel label="Again please" for="pass2"} {forminput} {formhelp note=""} {/forminput}
{/form}
{* this should go in tidbits *} {if $gBitSystem->isFeatureActive( 'feature_tasks' )} {form legend="User Tasks"}
{formlabel label="Tasks per page" for="tasks_max_records"} {forminput} {formhelp note=""} {/forminput}
{forminput label="checkbox"} Use dates {formhelp note=""} {/forminput}
{/form} {/if} {/jstab} {jstab title="Pictures"} {legend legend="Pictures and Icons"}
{formlabel label="Pictures"} {forminput} {tr}Change pictures{/tr} {formhelp note=""} {/forminput}
{formlabel label="Avatar"} {forminput} {if $editUser->mInfo.avatar_url} {/if} {formhelp note="Small icon used for your posts or comments."} {/forminput}
{formlabel label="Self Portrait"} {forminput} {if $editUser->mInfo.portrait_url} {/if} {formhelp note="Larger picture used on your bio page."} {/forminput}
{formlabel label="Logo" for=""} {forminput} {if $editUser->mInfo.logo_url}
{/if} {formhelp note="Image used for your organization."} {/forminput}
{/legend} {/jstab} {if $watches} {jstab title="Watches"} {foreach item=watch from=$watches} {/foreach}
{tr}Watches{/tr}
Event Title
{$watch.event|escape} {$watch.title|escape}
{/jstab} {/if} {foreach item=file from=$includFiles} {include file=$file.tpl userPrefs=$editUser->mPrefs view_user=$editUser->mUserId} {/foreach} {/jstabs}
{/strip}