repeat mode confirmation dialog generalization
[civicrm-core.git] / templates / CRM / Event / Form / ManageEvent / EventInfo.tpl
index a0eb361213b0ba0df900cb35ff8811b65b95af5f..8957c3b6e07ad9eb2112f9fbb7fbedd48c578ded 100644 (file)
@@ -75,7 +75,7 @@
       <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}
     {/if}
     <tr class="crm-event-manage-eventinfo-form-block-max_participants">
       <td class="label">{$form.max_participants.label} {help id="id-max_participants" waitlist=$waitlist}</td>
-      <td>{$form.max_participants.html|crmAddClass:four}</td>
+      <td>
+        {$form.max_participants.html|crmAddClass:four}
+        {if call_user_func(array('CRM_Core_Permission','check'), 'administer CiviCRM') }
+          <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 id="id-waitlist" class="crm-event-manage-eventinfo-form-block-has_waitlist">
       {if $waitlist}
     </tr>
     <tr class="crm-event-manage-eventinfo-form-block-is_public">
       <td>&nbsp;</td>
-      <td>{$form.is_public.html} {$form.is_public.label}{help id="id-is_public"}</td>
+      <td>{$form.is_public.html} {$form.is_public.label} {help id="id-is_public"}</td>
     </tr>
     <tr class="crm-event-manage-eventinfo-form-block-is_share">
       <td>&nbsp;</td>
     </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');
     })