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