%#============================================================================
%# ePortal - WEB Based daily organizer
%# Author - S.Rusakov <rusakov_sa@users.sourceforge.net>
%#
%# Copyright (c) 2000-2003 Sergey Rusakov.  All rights reserved.
%# This program is free software; you can redistribute it
%# and/or modify it under the same terms as Perl itself.
%#
%#
%#----------------------------------------------------------------------------
&nbsp;
<% $dlg->dialog_start(title => pick_lang(rus => "Домашняя страница", eng =>"Home page"), width => 400) %>

% foreach my $field (qw/title columnswidth/) {
	<% $dlg->field($field) %>
% }

% if ($ePortal->isAdmin) {
% foreach my $field (qw/pvtype/) {
	<% $dlg->field($field) %>
% }}

<% $dlg->buttons %>
<% $dlg->dialog_end %>
	<p>



%#=== @METAGS attr =========================================================
<%attr>
Title => {rus => "Создание домашней страницы", eng => "Personal home page"}
</%attr>


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

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


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

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

