[% META title = 'User » Register New User' -%] [% # PROCESS dumper.tt dump = errs %]

Registration Details

[% IF errs %]

[% c.cfg('msg').dfv_errors %]

[% ELSE %]

Usage: preview message -> post message.

Paste Application Details:
[% END %]
[% IF user_groups AND NOT errs %]

User group: « select one

[% END %]

[% IF new_user_create_success %] create new user » [% ELSE %] [% IF user_details AND NOT errs; class = has_role ? 'normal' : 'red' %] [% ELSE %] [% END %] [% IF user_details AND NOT has_role %] check spelling/case of 'position' entry [% END %] [% END %]

[% IF user_details; # PROCESS dumper.tt dump = preview %]

Preview:

[% class = user_details.user_location_id ? 'normal' : 'red' %]
UserID: [% user_details.username | upper %] [% IF user_details.username != user_details.last_name %] « LastName = Username already exists - check user details [% END %]
LastName: [% user_details.last_name | ucfirst %] [% IF errs.error_first_name # fname + lname constraint; would update existing entry %] * combination of first & last name already exists [% END %] [% IF errs.error_last_name %] [%errs.error_last_name %] [% END %]
FirstName: [% user_details.first_name | ucfirst %]
Email: [% user_details.email %] [% errs.error_email %]
Location: [% user_details.location %] [% IF errs.error_user_location_id.match('missing') %] « unknown user location [% END %]
Designation: [% class = has_role OR new_user_create_success ? 'normal' : 'red' %] [% user_details.designation %] [% UNLESS has_role OR new_user_create_success %] « does not exist [% END %]

            [% INCLUDE admin/user/new_user_msg.tt | html %]                
            
[% END %]