]>
iEval git - plack-app-gruntmaster.git/blob - Page/Account.pm
1 package Gruntmaster
::Page
::Account
;
6 use parent qw
/Exporter/;
7 our @EXPORT_OK = qw
/generate/;
8 our $VERSION = '0.001';
10 use HTML
::Template
::Compiled
;
11 use Gruntmaster
::Page
::Common qw
/cook_templates reload_templates/;
13 my %orig_templates = (
15 <div id="result"></div>
18 <form action="/action/register" method="POST" class="jsform">
20 <input type="text" name="username" required><br>
22 <input type="password" name="password" required><br>
24 <input type="password" name="confirm_password" required><br>
26 <input type="text" name="name" required><br>
28 <input type="email" name="email" required><br>
30 <input type="text" name="town" required><br>
31 University <i>(full name)</i>:<br>
32 <input type="text" name="university" required><br>
33 <input type="submit" value="Register">
36 <h1>Change password</h1>
37 <form action="/action/passwd" method="POST" class="jsform">
39 <input type="password" name="password" required><br>
41 <input type="password" name="new_password" required><br>
42 Confirm new password:<br>
43 <input type="password" name="confirm_new_password" required><br>
44 <input type="submit" value="Change password">
49 my %templates = cook_templates
%orig_templates, account
=> 'Account';
52 %templates = cook_templates
%orig_templates, account
=> 'Account' if reload_templates
;
53 HTML
::Template
::Compiled
->new(scalarref
=> \
$templates{$_[1]})->output
This page took 0.043157 seconds and 4 git commands to generate.