* added comment field for pdfreaders

svn path=/trunk/; revision=16814
This commit is contained in:
e-user
2010-09-14 13:08:50 +00:00
parent 84b332c150
commit 2593be7de0
3 changed files with 14 additions and 2 deletions

View File

@@ -172,6 +172,12 @@
<input id="group" name="group" type="text" />
</p>
<p>
<label for="comment">Additional comments</label>
<small>Optional</small>
<input id="comment" name="comment" type="text" />
</p>
<p>
<label>I also wish to</label>

View File

@@ -44,7 +44,7 @@ $form->validate_format ('institution-url', type => 'url');
$form->validates_presence_of ('institution-address');
$form->validates_presence_of ('name');
$form->validate_format ('email', type => 'email');
# Group is optional
# Group, Comment are optional
if ($form->has_errors)
{
@@ -72,7 +72,8 @@ my $data = { institution_name => $query->param ('institution-name'),
group => $query->param ('group') || '',
petition => $query->param ('petition'),
newsletter => $query->param ('newsletter'),
contact => $query->param ('contact') };
contact => $query->param ('contact'),
comment => $query->param ('comment') };
$template->process ('pdfreaders-mail.tt2', $data, \$mail);

View File

@@ -11,6 +11,11 @@ for [% institution_country %]. [% name %] is [% IF !contact %]not [% END %]avail
[[% IF petition %]X[% ELSE %] [% END %]] Petition
[[% IF newsletter %]X[% ELSE %] [% END %]] Newsletter
[% IF comment -%]
Additional comments:
[% comment %]
[%- END %]
Please validate and use the following XML snippet if appropriate:
---
<bug institution-name="[% institution_name %]"