{strip}
{bithelp}

{tr}User Preferences{/tr}

{include file="bitpackage:users/my_bitweaver_bar.tpl"}
{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') or $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} {$editUser->mInfo.login} {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}   {if $editUser->mPrefs.flag}{biticon iforce=icon ipackage=users ipath=flags/ iname=$editUser->mPrefs.flag iexplain=$editUser->mPrefs.flag}{/if} {/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}
{/legend} {legend legend="User Preferences"} {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 browser timezone offset, or a fixed timezone which will also manage the correct daylight saving"} {/forminput}
{formlabel label="Use double-click to edit pages" for="users_double_click"} {forminput} mPrefs.users_double_click eq 'y'}checked="checked"{/if} /> {formhelp note="Enabling this feature will allow you to double click on any wiki page and it will automatically take you to the edit page. Note that this does not work in all browsers."} {/forminput}
{/legend} {/form} {form legend="Change your email address"}
{formlabel label="Email" for="email"} {forminput} {formhelp note=""} {/forminput}
{formlabel label="Password" for="pass"} {forminput} {formhelp note=""} {/forminput}
{/form} {form legend="Change your password"} {* Users with admin priv can change password without knowing the old one *} {if !$view_user or ( !$gBitUser->hasPermission('p_users_admin') and $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}
{formlabel label="Use dates" for="tasks_use_dates"} {forminput} {formhelp note=""} {/forminput}
{/form} {/if} {/jstab} {jstab title="Pictures"} {legend legend="Pictures and Icons"}
{formlabel label="Pictures"} {forminput} {tr}Upload new 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}