1 {include file="CRM/common/TrackingFields.tpl"}
3 <h3>{ts 1=$mer_participant->display_name 2=$mer_participant->email}Choose Events For %1 (%2){/ts}</h3>
5 {foreach from=$slot_fields key=slot_name item=field_name}
10 <div class="slot_options">
12 {$form.$field_name.html}
18 <script type="text/javascript">
19 var session_options = {$session_options};
21 for (var radio_id in session_options)
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>');
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,
41 more.data("session_info", info);
42 cj(label_sel).append(" ", more);
47 <div id="crm-submit-buttons" class="crm-submit-buttons">
48 {include file="CRM/common/formButtons.tpl" location="bottom"}
51 {include file="CRM/Event/Cart/Form/viewCartLink.tpl"}