<td>{$form.summary.html}</td>
</tr>
<tr class="crm-event-manage-eventinfo-form-block-description">
- <td class="label">{$form.description.label}</td>
+ <td class="label">{$form.description.label} {if $action == 2}{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_event' field='description' id=$eventID}{/if}</td>
<td>{$form.description.html}</td>
</tr>
{if !$isTemplate}
<td>{include file="CRM/common/jcalendar.tpl" elementName=end_date}</td>
</tr>
{/if}
- {capture assign=participantStatusURL}{crmURL p='civicrm/admin/participant_status' q="reset=1"}{/capture}
<tr class="crm-event-manage-eventinfo-form-block-max_participants">
- <td class="label">{$form.max_participants.label}</td>
+ <td class="label">{$form.max_participants.label} {help id="id-max_participants" waitlist=$waitlist}</td>
<td>
- {$form.max_participants.html|crmAddClass:four} {help id="id-max_participants" waitlist=$waitlist}
+ {$form.max_participants.html|crmAddClass:four}
{if call_user_func(array('CRM_Core_Permission','check'), 'administer CiviCRM') }
- {capture assign=participantStatusURL}{/capture}
- <a class="crm-option-edit-link crm-hover-button" title="{ts}Edit Participant Status Options{/ts}" href="{crmURL p='civicrm/admin/participant_status' q='reset=1'}"><span class="icon edit-icon"> </span></a>
+ <a class="crm-popup crm-hover-button" target="_blank" title="{ts}Edit Participant Status Options{/ts}" href="{crmURL p='civicrm/admin/participant_status' q='reset=1'}"><span class="icon edit-icon"> </span></a>
{/if}
</td>
</tr>
</tr>
</table>
<div id="customData"></div>
+ {include file="CRM/Form/validate.tpl"}
{*include custom data js file*}
- {include file="CRM/common/customData.tpl"}
{literal}
<script type="text/javascript">
- cj(document).ready(function() {
+ CRM.$(function($) {
{/literal}
{if $customDataSubType}
CRM.buildCustomData( '{$customDataType}', {$customDataSubType} );
{literal}
<script type="text/javascript">
CRM.$(function($) {
- $('#template_id', '#EventInfo').change(function() {
- $('#crm-main-content-wrapper')
+ var $form = $('form.{/literal}{$form.formClass}{literal}');
+ $('#template_id', $form).change(function() {
+ $(this).closest('.crm-ajax-container, #crm-main-content-wrapper')
.crmSnippet({url: CRM.url('civicrm/event/add', {action: 'add', reset: 1, template_id: $(this).val()})})
.crmSnippet('refresh');
})