%#============================================================================
%# ePortal - WEB Based daily organizer
%# Author - S.Rusakov <rusakov_sa@users.sourceforge.net>
%#
%# Copyright (c) 2000-2004 Sergey Rusakov.  All rights reserved.
%# This program is open source software
%#
%#
%#----------------------------------------------------------------------------

&nbsp;
<% $dlg->dialog_start(
			title => pick_lang(rus => "Редактор пользователей", eng => "Users editor"),
			width => "450") %>

% foreach my $field (qw/username fullname department title password enabled ext_user email/) {
	<% $dlg->field($field) %>
% }

% foreach my $field (qw/last_login last_checked/) {
	<% $dlg->field($field, RO => 1) %>
% }

<% $dlg->buttons %>
<% $dlg->dialog_end %>
&nbsp;


%#=== @METAGS attr =========================================================
<%attr>
Title => {rus => "Редактор пользователей", eng => "Users editor"}
Layout => 'Dialog'
</%attr>


%#=== @METAGS onStartRequest ====================================================
<%method onStartRequest><%perl>
	$dlg = new ePortal::HTML::Dialog( obj => new ePortal::epUser);

  my $location = try {
    $dlg->handle_request( );
  } catch ePortal::Exception::DataNotValid with {
    my $E = shift;
    $session{ErrorMessage} = $E->text;
    '';
  };
  return $location if $location;
</%perl></%method>

%#=== @metags once =========================================================
<%once>
my ($dlg, $obj);
</%once>

%#=== @metags cleanup =========================================================
<%cleanup>
($dlg, $obj) = ();
</%cleanup>

