X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=lib%2FGruntmaster%2FPage%2FAccount.pm;fp=lib%2FGruntmaster%2FPage%2FAccount.pm;h=6842b121914304b8b5b0420de665d52804fd6f79;hb=088a8d629e11c01e227ca2dc0c80894f1e1db997;hp=0000000000000000000000000000000000000000;hpb=0a15a1ec7c775be1565ff9e6e83e42e049fa1bcb;p=plack-app-gruntmaster.git diff --git a/lib/Gruntmaster/Page/Account.pm b/lib/Gruntmaster/Page/Account.pm new file mode 100644 index 0000000..6842b12 --- /dev/null +++ b/lib/Gruntmaster/Page/Account.pm @@ -0,0 +1,58 @@ +package Gruntmaster::Page::Account; + +use 5.014000; +use strict; +use warnings; +use parent qw/Exporter/; +our @EXPORT_OK = qw/generate/; +our $VERSION = '0.001'; + +use constant TITLE => 'Account'; + +use HTML::Template::Compiled; +use Gruntmaster::Page::Common qw/header footer/; + +my %templates = ( + en => <<'HTML', +
+ +

Register

+
+Username:
+
+Password:
+
+Confirm password:
+
+Full name:
+
+Email:
+
+Town:
+
+University (full name):
+
+ +
+ +

Change password

+
+Old password:
+
+New password:
+
+Confirm new password:
+
+ +
+HTML +); + +$templates{$_} = header($_, TITLE) . $templates{$_} for keys %templates; +$templates{$_} .= footer $_ for keys %templates; + +sub generate{ + HTML::Template::Compiled->new(scalarref => \$templates{$_[1]})->output +} + +1