* added comment field for pdfreaders
svn path=/trunk/; revision=16814
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -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 %]"
|
||||
|
||||
Reference in New Issue
Block a user