Fix undefined function js error
[civicrm-core.git] / tools / templates / CRM / Auction / Form / SearchAuction.tpl
CommitLineData
6a488035
TO
1{*
2 +--------------------------------------------------------------------+
3 | CiviCRM version 4.1 |
4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC (c) 2004-2011 |
6 +--------------------------------------------------------------------+
7 | This file is a part of CiviCRM. |
8 | |
9 | CiviCRM is free software; you can copy, modify, and distribute it |
10 | under the terms of the GNU Affero General Public License |
11 | Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
12 | |
13 | CiviCRM is distributed in the hope that it will be useful, but |
14 | WITHOUT ANY WARRANTY; without even the implied warranty of |
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
16 | See the GNU Affero General Public License for more details. |
17 | |
18 | You should have received a copy of the GNU Affero General Public |
19 | License and the CiviCRM Licensing Exception along |
20 | with this program; if not, contact CiviCRM LLC |
21 | at info[AT]civicrm[DOT]org. If you have questions about the |
22 | GNU Affero General Public License or the licensing of CiviCRM, |
23 | see the CiviCRM license FAQ at http://civicrm.org/licensing |
24 +--------------------------------------------------------------------+
25*}
26<div class="form-item">
27 <fieldset><legend>{ts}Find Auctions{/ts}</legend>
28 <table class="form-layout">
29 <tr>
30 <td class="label">{$form.title.label}</td>
31 <td>{$form.title.html|crmReplace:class:twenty}
32 <div class="description font-italic">
33 {ts}Complete OR partial Auction name.{/ts}
34 </div>
35 <div style="height: auto; vertical-align: bottom">{$form.auctionsByDates.html}</div>
36 </td>
37 <td class="left" rowspan="2">&nbsp;{$form.buttons.html}</td>
38 </tr>
39 <tr>
40 <td></td>
41 <td>
42 <table class="form-layout-compressed" id="id_fromToDates">
43 <tr>
44 <td>{$form.start_date.label}</td>
45 <td>&nbsp;{$form.start_date.html}&nbsp;
46 &nbsp;{include file="CRM/common/calendar/desc.tpl" trigger=trigger_search_member_1}
47 {include file="CRM/common/calendar/body.tpl" dateVar=start_date startDate=startYear endDate=endYear offset=5 trigger=trigger_search_member_1}
48 </td>
49 </tr>
50 <tr>
51 <td>{$form.end_date.label}</td>
52 <td>&nbsp;{$form.end_date.html}&nbsp;
53 &nbsp;{include file="CRM/common/calendar/desc.tpl" trigger=trigger_search_member_2}
54 {include file="CRM/common/calendar/body.tpl" dateVar=end_date startDate=startYear endDate=endYear offset=5 trigger=trigger_search_member_2}
55 </td>
56 </tr>
57 </table>
58 </td>
59 </tr>
60 </table>
61</fieldset>
62</div>
63
64{include file="CRM/common/showHide.tpl"}
65
66{literal}
67<script type="text/javascript">
68if ( document.getElementsByName('auctionsByDates')[1].checked ) {
a294f3e5 69 cj('#id_fromToDates').show();
6a488035
TO
70}
71</script>
a294f3e5 72{/literal}