Merge pull request #17833 from totten/master-website-test
[civicrm-core.git] / templates / CRM / Event / Cart / Form / Checkout / ConferenceEvents.tpl
1 {include file="CRM/common/TrackingFields.tpl"}
2
3 <h3>{ts 1=$mer_participant->display_name 2=$mer_participant->email}Choose Events For %1 (%2){/ts}</h3>
4
5 {foreach from=$slot_fields key=slot_name item=field_name}
6 <fieldset>
7 <legend>
8 {$slot_name}
9 </legend>
10 <div class="slot_options">
11 <ul class="indented">
12 {$form.$field_name.html}
13 </ul>
14 </div>
15 </fieldset>
16 {/foreach}
17
18 <script type="text/javascript">
19 var session_options = {$session_options};
20 {literal}
21 for (var radio_id in session_options)
22 {
23 var info = session_options[radio_id];
24 var label_sel = "label[for=" + radio_id + "]";
25 cj("#"+radio_id +","+ label_sel).wrapAll("<li>");
26 if (info.session_full) {
27 cj("#"+radio_id).prop('disabled', true);
28 cj("#"+radio_id).after('<span class="error">{/literal}{ts escape='js'}Session is Full{/ts}{literal}: </span>');
29 }
30 var more = cj('<a href="#">{/literal}{ts escape='js'}more info{/ts}{literal}</a>').click(function(event) {
31 event.preventDefault();
32 var nfo = cj(this).data("session_info");//F-!
33 cj("<div style='font-size: 90%;'>" + (nfo.session_description || "-{/literal}{ts escape='js'}No description available for this event{/ts}{literal}-") + "</div>").dialog({
34 title: nfo.session_title,
35 resizable: false,
36 draggable: false,
37 width: 600,
38 modal: true
39 });
40 });
41 more.data("session_info", info);
42 cj(label_sel).append(" ", more);
43 }
44 {/literal}
45 </script>
46
47 <div id="crm-submit-buttons" class="crm-submit-buttons">
48 {include file="CRM/common/formButtons.tpl" location="bottom"}
49 </div>
50
51 {include file="CRM/Event/Cart/Form/viewCartLink.tpl"}