Merge pull request #129 from dlobo/CRM-12101
[civicrm-core.git] / templates / CRM / Event / Form / ManageEvent / Conference.tpl
CommitLineData
6a488035
TO
1{*
2 +--------------------------------------------------------------------+
3 | CiviCRM version 4.3 |
4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC (c) 2004-2013 |
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="crm-block crm-form-block crm-event-conference-form-block">
27<div class="crm-submit-buttons">
28 {include file="CRM/common/formButtons.tpl" location="top"}
29</div>
30
31 <table class="form-layout">
32 <tr class="crm-event-conference-form-block-title">
33 <td class="label">{$form.title.label}</td>
34 <td>{$form.title.html}</td>
35 </tr>
36 </table>
37
38 <div id="parent_event_name">
39 <table id="parent_event_name" class="form-layout">
40 <tr class="crm-event-conference-form-block-parent_event_name">
41 <td class="label">{$form.parent_event_name.label}</td>
42 <td>
43 {$form.parent_event_name.html|crmAddClass:huge}
44 </td>
45 </tr>
46 </table>
47 </div>
48
49 <div id="conference_slot_id">
50 <table id="conference_slot_id" class="form-layout">
51 <tr class="crm-event-conference-form-block-slot_label_id">
52 <td class="label">{$form.slot_label_id.label}</td>
53 <td>{if $action == 2}{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_event' field='slot_label_id' id=$id}{/if}{$form.slot_label_id.html|crmAddClass:big}
54 </td>
55 </tr>
56 </table>
57 </div>
58 <div class="crm-submit-buttons">
59 {include file="CRM/common/formButtons.tpl" location="bottom"}
60 </div>
61</div>
62
63{include file="CRM/common/formNavigate.tpl"}
64
65{literal}
66<script type="text/javascript">
67var eventUrl = "{/literal}{crmURL p='civicrm/ajax/event' h=0}{literal}";
68
69cj('input#parent_event_name').autocomplete(
70 eventUrl,
71 {
72 width : 280,
73 selectFirst : false,
74 matchContains: true,
75 }
76).result( function(event, data, formatted)
77 {
78 cj( "input#parent_event_name" ).val( data[0] );
79 cj( "input[name=parent_event_id]" ).val( data[1] );
80 }
81).bind( 'click', function( ) { cj( "input#parent_event_name" ).val(''); });
82</script>
83{/literal}