{* $Header: /cvsroot/bitweaver/_bit_users/templates/users_admin.tpl,v 1.9 2007/11/14 15:30:34 joasch Exp $ *} {strip}
{bithelp}

{tr}Admin users{/tr}

{if (($added ne "") || ($discarded ne "")) }

{tr}Batch Upload Results{/tr}

{if $added} {formfeedback success="`$added` Users Added"} {/if} {if $discarded ne '' } {formfeedback error="`$discarded` Users Rejected"} {foreach key=row from=$discardlist item=reason} {/foreach}
{tr}Row{/tr}{tr}Reason{/tr}
{$row}{$reason}

{/if} {/if} {jstabs} {jstab title="List of Users"} {include file="bitpackage:users/users_list.tpl"} {/jstab} {jstab title="Add User"} {formfeedback success=$addSuccess} {form legend="Add a new user"}
{formlabel label="Real Name" for="real_name"} {forminput} {/forminput}
{formfeedback error=$errors.login} {formlabel label="User" for="login"} {forminput} {/forminput}
{formfeedback error=$errors.password} {formlabel label="Password" for="password"} {forminput} {/forminput}
{formlabel label="Repeat Password" for="password2"} {forminput} {/forminput}
{formfeedback error=$errors.email} {formlabel label="Email" for="email"} {forminput} {/forminput}
{if $defaultGroupId eq ''} {formfeedback error="No default group is currently set. Please set one in the Administration --> Users --> Groups and Permissions page"} {/if} {formlabel label="User will be added to the following group" for=""} {forminput} {$defaultGroupName} {biticon ipackage="icons" iname="accessories-text-editor" iexplain="change settings"} {formhelp note="This is the group that is selected as the default group. If you would like to change the default group, please click on the edit icon and set a different group as default group."} {/forminput}
{formlabel label="{tr}Generate a password{/tr}" for="email"} {forminput} {formhelp note="You can use this link to create a random password. Make sure you pass the information on to the user."} {/forminput}
{formlabel label="Validate user by email" for="admin_verify_user"} {forminput} {formhelp note="This will email the user a validation url with a temporary one time password. On validation the user is forced to choose a new password."} {/forminput}
{formlabel label="Validate email address" for="admin_verify_email"} {forminput} {formhelp note="This feature should be used only when you need the maximum security and should be used with discretion. If a visitor's email server is not responding, they will not be able to register. You also must have a valid sender email to use this feature."} {/forminput}
{formlabel label="Don't email added user" for="admin_noemail_user"} {forminput} {formhelp note="If you for some reason don't want to email the added user the login and password, or validation url."} {/forminput}
{*include file="bitpackage:liberty/edit_services_inc.tpl serviceFile=content_edit_mini_tpl*}
{/form} {/jstab} {jstab title="Advanced"} {form legend="Batch user addition" enctype="multipart/form-data"}
{formlabel label="Batch upload (CSV file)" for="csvlist"} {forminput} {formhelp note="You can batch import users by uploading a CSV (comma-separated values) file. The file needs to have the column names in the first line. The column titles need to match with fields in 'users_users' table. Login, password and email are required fields, however if you leave the password field empty a new password will be auto generated. You can also import a MD5 hash as password, like from phpBB2, it need to be put in the 'hash' column. In such case it override other options and it's assumed the user or at least admin knows the password. Currently you can't import custom fields and if a non-existent field is specified, it's ignored."} {/forminput}
{formlabel label="Delimiter" for="delimiter"} {forminput} {formhelp note="Set the delimiter of the file. You can not use tab as delimiter."} {/forminput}
{formlabel label="Overwrite existing users" for="overwrite"} {forminput} {formhelp note=""} {/forminput}
{formlabel label="Validate users by email" for="admin_verify_user"} {forminput} {formhelp note="This will email the user a validation url with a temporary one time password. On validation the user is forced to choose a new password."} {/forminput}
{formlabel label="Validate email address" for="admin_verify_email"} {forminput} {formhelp note="This feature should be used only when you need the maximum security and should be used with discretion. If a visitor's email server is not responding, they will not be able to register. You also must have a valid sender email to use this feature."} {/forminput}
{formlabel label="Don't email imported users" for="admin_noemail_user"} {forminput} {formhelp note="If you for some reason don't want to email imported users the login and password, or validation url."} {/forminput}
{/form} {/jstab} {/jstabs}
{/strip}