<?php $jes_adata = get_site_option('jes_events' ); ?>
<div class="item-list-tabs no-ajax" id="subnav">
	<ul>
		<?php bp_event_admin_tabs(); ?>
	</ul>
</div><!-- .item-list-tabs -->

<form action="<?php bp_event_admin_form_action() ?>" name="event-settings-form" id="event-settings-form" class="standard-form" method="post" enctype="multipart/form-data">

<?php do_action( 'bp_before_event_admin_content' ) ?>

<?php /* Edit Event Details */ ?>
<?php if ( bp_is_event_admin_screen( 'edit-details' ) ) : ?>

	<?php do_action( 'bp_before_event_details_admin' ); ?>
<div style="clear:left;"> </div>
<table width="100%" valign="top">
	<tr>
		<td width="50%" style="vertical-align:top;">
			<h4><?php _e('Base event details', 'buddypress') ?></h4>
				<label for="event-name"><?php _e('* Event Name', 'buddypress') ?> <?php _e( '(required)', 'buddypress')?></label>
				<input type="text" name="event-name" id="event-name" value="<?php jes_bp_event_name() ?>" />
		<?php
			$showeventnona = $jes_adata[ 'jes_events_adminapprove_enable' ];
		if ( current_user_can('manage_options') and $showeventnona)
			{ ?>
				<label for="event-eventapproved"><?php _e('Approve Event?', 'buddypress') ?> <?php _e( '(required)', 'buddypress')?></label>
				<select name="event-eventapproved" id="event-eventapproved" size = "1">
					<option <?php if (jes_bp_get_event_eventapproved() == 1) { ?>selected<?php } ?> value="1"><?php _e('Approve', 'buddypress'); ?></option> 
					<option <?php if (jes_bp_get_event_eventapproved() == 0) { ?>selected<?php } ?> value="0"><?php _e('Not Approve', 'buddypress'); ?></option> 
				</select>
		<?php } ?>
				<label for="event-etype"><?php _e('* Event classification', 'buddypress') ?> <?php _e( '(required)', 'buddypress')?></label>
			<?php if (!$jes_adata[ 'jes_events_class_enable' ])  { ?>					
				<input type="text" name="event-etype" id="event-etype" value="<?php jes_bp_event_etype() ?>" />	
			<?php } else { ?>
				<select name="event-etype" id="event-etype" size = "1">
					<option <?php if (jes_bp_get_event_etype() == $jes_adata['jes_events_text_one' ]) { ?>selected<?php } ?> value="<?php echo $jes_adata['jes_events_text_one' ] ?>"><?php echo $jes_adata['jes_events_text_one' ] ?></option> 
					<option <?php if (jes_bp_get_event_etype() == $jes_adata['jes_events_text_two' ]) { ?>selected<?php } ?> value="<?php echo $jes_adata['jes_events_text_two' ] ?>"><?php echo $jes_adata['jes_events_text_two' ] ?></option>
					<option <?php if (jes_bp_get_event_etype() == $jes_adata['jes_events_text_three' ]) { ?>selected<?php } ?> value="<?php echo $jes_adata['jes_events_text_three' ] ?>"><?php echo $jes_adata['jes_events_text_three' ] ?></option>
					<option <?php if (jes_bp_get_event_etype() == $jes_adata['jes_events_text_four' ]) { ?>selected<?php } ?> value="<?php echo $jes_adata['jes_events_text_four' ] ?>"><?php echo $jes_adata['jes_events_text_four' ] ?></option>
					<option <?php if (jes_bp_get_event_etype() == $jes_adata['jes_events_text_five' ]) { ?>selected<?php } ?> value="<?php echo $jes_adata['jes_events_text_five' ] ?>"><?php echo $jes_adata['jes_events_text_five' ] ?></option>
				</select>
			<?php } ?>
				<label for="event-desc"><?php _e('* Event Description', 'buddypress') ?> <?php _e( '(required)', 'buddypress')?></label>
				<textarea name="event-desc" id="event-desc"><?php jes_bp_event_description() ?></textarea>
	<?php if ($jes_adata[ 'jes_events_countryopt_enable' ])
			{ ?>
				<label for="event-placedcountry"><?php _e('* Event Country', 'buddypress') ?> <?php _e( '(required)', 'buddypress')?></label>
				<input type="text" name="event-placedcountry" id="event-placedcountry" size="15" maxlength="25" value="<?php jes_bp_event_placedcountry() ?>" />
	<?php } else { ?>
				<input type="hidden" name="event-placedcountry" id="event-placedcountry" value="<?php $jes_adata[ 'jes_events_countryopt_def' ] ?>" />		
	<?php } ?>

	<?php if ($jes_adata[ 'jes_events_stateopt_enable' ])
			{ ?>
				<label for="event-placedstate"><?php _e('* Event State', 'buddypress') ?> <?php _e( '(required)', 'buddypress')?></label>
				<input type="text" name="event-placedstate" id="event-placedstate" size="15" maxlength="25" value="<?php jes_bp_event_placedstate() ?>" />
	<?php } else { ?>
				<input type="hidden" name="event-placedstate" id="event-placedstate" value="<?php $jes_adata[ 'jes_events_stateopt_def' ] ?>" />		
	<?php } ?>
	<?php if ($jes_adata[ 'jes_events_cityopt_enable' ])
			{ ?>
				<label for="event-placedcity"><?php _e('* Event City', 'buddypress') ?> <?php _e( '(required)', 'buddypress')?></label>
				<input type="text" name="event-placedcity" id="event-placedcity" value="<?php jes_bp_event_placedcity() ?>" />
	<?php } else { ?>
				<input type="hidden" name="event-placedcity" id="event-placedcity" value="<?php $jes_adata[ 'jes_events_cityopt_def' ] ?>" />		
	<?php } ?>
				<label for="event-placedaddress"><?php _e('Event address', 'buddypress') ?></label>
				<input type="text" name="event-placedaddress" id="event-placedaddress" size="25" maxlength="40" value="<?php jes_bp_event_placedaddress() ?>" />

	<?php if ($jes_adata[ 'jes_events_noteopt_enable' ])
			{ ?>
				<label for="event-placednote"><?php _e('Event note', 'buddypress') ?></label>
				<input type="text" name="event-placednote" id="event-placednote" size="25" maxlength="40" value="<?php jes_bp_event_placednote() ?>" />
		
				<input type="hidden" name="event-placednote" id="event-placednote" size="25" maxlength="40" value="<?php jes_bp_event_placednote() ?>" />
	<?php } else { ?>
				<input type="hidden" name="event-placednote" id="event-placednote" size="25" maxlength="40" value="<?php jes_bp_event_placednote() ?>" />
	<?php } ?>

	<?php if ($jes_adata[ 'jes_events_googlemapopt_enable' ])
			{
			if ($jes_adata[ 'jes_events_googlemapopt_type' ] == 'image') { ?>			
				<label for="event-placedgooglemap"><?php _e('Link to Google Maps or any other image', 'buddypress') ?></label>
				<input type="text" name="event-placedgooglemap" id="event-placedgooglemap" size="50" maxlength="250" value="<?php jes_bp_event_placedgooglemap() ?>" />
		<?php } else { ?>
				<input type="hidden" name="event-placedgooglemap" id="event-placedgooglemap" size="25" maxlength="40" value="<?php jes_bp_event_placedgooglemap() ?>" />
		<?php } ?>		
	<?php } else { ?>
				<input type="hidden" name="event-placedgooglemap" id="event-placedgooglemap" size="50" maxlength="250" value="<?php jes_bp_event_placedgooglemap() ?>" />
	<?php } ?>

	<?php if ($jes_adata[ 'jes_events_flyeropt_enable' ])
			{ ?>
				<label for="event-flyer"><?php _e('Link to image flyer', 'buddypress') ?></label>
				<input type="text" name="event-flyer" id="event-flyer" size="50" maxlength="250" value="<?php jes_bp_event_flyer() ?>" />
	<?php } else { ?>
				<input type="hidden" name="event-flyer" id="event-flyer" size="50" maxlength="250" value="<?php jes_bp_event_flyer() ?>" />
	<?php } ?>
		</td>
		<td width="50%" style="vertical-align:top;">
	<?php if ($jes_adata['jes_events_specialconditions_enable']) { ?>
			<label for="event-eventterms"><h4><?php _e('Special Conditions', 'buddypress') ?></h4></label>
			<textarea name="event-eventterms" id="event-eventterms"><?php jes_bp_event_eventterms() ?></textarea>
	<?php } ?>

	<?php if ($jes_adata['jes_events_publicnews_enable'] || $jes_adata['jes_publicnews_enable']) { ?>					
			<h4><?php _e('News for event', 'buddypress') ?></h4>					
	<?php } ?>
	<?php if ($jes_adata['jes_events_publicnews_enable']) { ?>
			<label for="event-newspublic"><?php _e('Public Event News', 'buddypress') ?></label>
			<textarea name="event-newspublic" id="event-newspublic"><?php jes_bp_event_newspublic() ?></textarea>
	<?php } ?>
	<?php if ($jes_adata['jes_events_privatenews_enable']) { ?>
			<label for="event-newsprivate"><?php _e('Private Event News', 'buddypress') ?></label>
			<textarea name="event-newsprivate" id="event-newsprivate"><?php jes_bp_event_newsprivate() ?></textarea>					
	<?php } ?>
		</td>
	</tr>
	<tr>
	<td width="50%" style="vertical-align:bottom;">
	<tr>
		<td>
			<h4><?php _e('Event Date', 'buddypress') ?></h4>
				<table>
					<tr>
						<td width="49%">
							<label for="event-edtsd"><?php _e('* Event Start date', 'buddypress') ?> <?php _e( '(required)', 'buddypress')?></label>
						</td>
						<td>
							<input type="text" readonly name="event-edtsd" id="event-edtsd" size="20" maxlength="20" value="<?php jes_bp_event_edtsd() ?>" /><br />
							<select name="event-edtsth" id="event-edtsth" size=1>
								<?php
									for ($i=0; $i<24; $i++) { ?>
									<?php if ($i<10)
										{ $codei = '0'.$i; }
											else
										{ $codei = $i; } ?>
										<option <?php if (jes_bp_get_event_edtsth() == $codei) {?>selected="selected" <?php } ?>value="<?php echo $codei;?>"><?php echo $codei; ?></option>
								<?php } ?>
							</select><?php _e(' hours', 'buddypress'); ?>
							<select name="event-edtstm" id="event-edtstm" size=1>
								<?php for ($i=0;$i<60;$i=$i+5)
									{ ?>
									<?php if ($i<10)
										{ $codei = '0'.$i; }
											else
										{ $codei = $i; } ?>
								<option <?php if (jes_bp_get_event_edtstm() == $codei ) {?>selected="selected" <?php } ?>value="<?php echo $codei; ?>"><?php echo $codei; ?></option>
								<?php } ?>
							</select><?php _e(' minutes', 'buddypress'); ?>
						</td>
					</tr>
				</table>
		</td>
		<td width="50%" style="vertical-align:bottom;">
			<table>
				<tr>
					<td width="49%">
						<label for="event-edtsd"><?php _e('* Event End date', 'buddypress') ?> <?php _e( '(required)', 'buddypress')?></label>
					</td>
					<td>
						<input type="text" readonly name="event-edted" id="event-edted" size="20" maxlength="20" value="<?php jes_bp_event_edted() ?>" /><br />
						<select name="event-edteth" id="event-edteth" size=1>
								<?php
									for ($i=0; $i<24; $i++) { ?>
									<?php if ($i<10)
										{ $codei = '0'.$i; }
											else
										{ $codei = $i; } ?>
										<option <?php if (jes_bp_get_event_edteth() == $codei) {?>selected="selected" <?php } ?>value="<?php echo $codei;?>"><?php echo $codei; ?></option>
								<?php } ?>
						</select><?php _e(' hours', 'buddypress'); ?>
						<select name="event-edtetm" id="event-edtetm" size=1>
								<?php for ($i=0;$i<60;$i=$i+5)
									{ ?>
									<?php if ($i<10)
										{ $codei = '0'.$i; }
											else
										{ $codei = $i; } ?>
								<option <?php if (jes_bp_get_event_edtetm() == $codei ) {?>selected="selected" <?php } ?>value="<?php echo $codei; ?>"><?php echo $codei; ?></option>
								<?php } ?>
						</select><?php _e(' minutes', 'buddypress'); ?>
					</td>
				</tr>
			</table>
		</td>
	</tr>
	<tr>
		<td>
			<label for="event-notify-members"><?php _e('Notify participants of the event to update the details?', 'buddypress') ?>
			<input type="checkbox" name="event-notify-members" id="event-notify-members" value="1" /></label>
		</td>
		<td>
		</td>
	</tr>
</table>		
	<?php do_action( 'bp_after_event_details_admin' ); ?>

	<p><input type="submit" value="<?php _e( 'Save Changes', 'buddypress') ?> &rarr;" id="save" name="save" /></p>
	<?php wp_nonce_field( 'events_edit_event_details' ) ?>

<?php endif; ?>

<?php /* Manage Event Settings */ ?>
<?php if ( bp_is_event_admin_screen( 'event-settings' ) ) : ?>

	<?php do_action( 'bp_before_event_settings_admin' ); ?>

	<h4><?php _e( 'Privacy Options', 'buddypress'); ?></h4>

	<div class="radio">
		<label>
			<input type="radio" name="event-status" value="public"<?php jet_bp_event_show_status_setting('public') ?> />
			<strong><?php _e( 'This is a public event', 'buddypress') ?></strong>
			<ul>
				<li><?php _e( 'Any site member can join this event.', 'buddypress') ?></li>
				<li><?php _e( 'This event will be listed in the events directory and in search results.', 'buddypress') ?></li>
				<li><?php _e( 'Event content and activity will be visible to any site member.', 'buddypress') ?></li>
			</ul>
		</label>
		<label>
			<input type="radio" name="event-status" value="private"<?php jet_bp_event_show_status_setting('private') ?> />
			<strong><?php _e( 'This is a private event', 'buddypress') ?></strong>
			<ul>
				<li><?php _e( 'Only users who request membership and are accepted can join the event.', 'buddypress') ?></li>
				<li><?php _e( 'This event will be listed in the events directory and in search results.', 'buddypress') ?></li>
				<li><?php _e( 'Event content and activity will only be visible to members of the event.', 'buddypress') ?></li>
			</ul>
		</label>
		<label>
			<input type="radio" name="event-status" value="hidden"<?php jet_bp_event_show_status_setting('hidden') ?> />
			<strong><?php _e( 'This is a hidden event', 'buddypress') ?></strong>
			<ul>
				<li><?php _e( 'Only users who are invited can join the event.', 'buddypress') ?></li>
				<li><?php _e( 'This event will not be listed in the events directory or search results.', 'buddypress') ?></li>
				<li><?php _e( 'Event content and activity will only be visible to members of the event.', 'buddypress') ?></li>
			</ul>
		</label>
	</div>

	<h4><?php _e( 'Group/Forum link options', 'buddypress'); ?></h4>					
		<label><?php _e('Select the group you want to contact the event:', 'buddypress'); ?></label>
		<?php jes_event_groups_dropdown( jes_bp_get_event_grouplink() ) ?>

<?php /*					<label><?php _e('Select the forum topic you want to contact the event:', 'buddypress'); ?></label>					
					<select id="forum-link" name="forum-link">
						<option selected="selected" value="0"><?php _e( 'Do not communicate with forums', 'buddypress') ?></option>
			<?php while ( bp_forum_topics() ) : bp_the_forum_topic(); ?>
						<option value="<?php bp_forum_topics_id() ?>"><?php bp_the_topic_title() ?></option>
			<?php endwhile; ?>					
					</select>
*/ ?>					

	<input type="hidden" name="event-forumlink" id="event-forumlink" value="1" />

		<h4><?php _e('Sociable Share', 'buddypress'); ?></h4>
		<label for="enablesocial"><?php _e('Enable Social share button?', 'buddypress'); ?></label>
				<select name="enablesocial" id="enablesocial">
					<option <?php if (jes_bp_get_event_enablesocial()) { ?>selected<?php } ?> value="1"><?php _e('Yes', 'buddypress'); ?></option>
					<option <?php if (!jes_bp_get_event_enablesocial()) { ?>selected<?php } ?> value="0"><?php _e('No', 'buddypress'); ?></option>
				</select>	
	
	<?php do_action( 'bp_after_event_settings_admin' ); ?>

	<p><input type="submit" value="<?php _e( 'Save Changes', 'buddypress') ?> &rarr;" id="save" name="save" /></p>
	<?php wp_nonce_field( 'events_edit_event_settings' ) ?>

<?php endif; ?>

<?php /* Event Avatar Settings */ ?>
<?php if ( bp_is_event_admin_screen( 'event-avatar' ) ) : ?>

	<?php if ( 'upload-image' == bp_get_avatar_admin_step() ) : ?>

	<p><?php _e("Upload an image to use as an avatar for this event. The image will be shown on the main event page, and in search results.", 'jet-event-system') ?></p>
		<p>
			<input type="file" name="file" id="file" />
			<input type="submit" name="upload" id="upload" value="<?php _e( 'Upload Image', 'buddypress') ?>" />
			<input type="hidden" name="action" id="action" value="bp_avatar_upload" />
		</p>

	<?php if ( bp_get_event_has_avatar() ) : ?>
		<p><?php _e( "If you'd like to remove the existing avatar but not upload a new one, please use the delete avatar button.", 'jet-event-system' ) ?></p>
		<div class="generic-button" id="delete-event-avatar-button">
			<a class="edit" href="<?php jes_bp_event_avatar_delete_link() ?>" title="<?php _e( 'Delete Avatar', 'buddypress') ?>"><?php _e( 'Delete Avatar', 'buddypress') ?></a>
		</div>
	<?php endif; ?>

			<?php wp_nonce_field( 'bp_avatar_upload' ) ?>

<?php endif; ?>

<?php if ( 'crop-image' == bp_get_avatar_admin_step() ) : ?>

	<h3><?php _e( 'Crop Avatar', 'buddypress') ?></h3>
	<img src="<?php bp_avatar_to_crop() ?>" id="avatar-to-crop" class="avatar" alt="<?php _e( 'Avatar to crop', 'buddypress') ?>" />

	<div id="avatar-crop-pane">
		<img src="<?php bp_avatar_to_crop() ?>" id="avatar-crop-preview" class="avatar" alt="<?php _e( 'Avatar preview', 'buddypress') ?>" />
	</div>

	<input type="submit" name="avatar-crop-submit" id="avatar-crop-submit" value="<?php _e( 'Crop Image', 'buddypress') ?>" />

	<input type="hidden" name="image_src" id="image_src" value="<?php bp_avatar_to_crop_src() ?>" />
	<input type="hidden" id="x" name="x" />
	<input type="hidden" id="y" name="y" />
	<input type="hidden" id="w" name="w" />
	<input type="hidden" id="h" name="h" />

<?php wp_nonce_field( 'bp_avatar_cropstore' ) ?>

	<?php endif; ?>

<?php endif; ?>

<?php /* Manage Event Members */ ?>
<?php if ( bp_is_event_admin_screen( 'manage-members' ) ) : ?>

	<?php do_action( 'bp_before_event_manage_members_admin' ); ?>

	<div class="bp-widget">
		<h4><?php _e( 'Administrators', 'buddypress'); ?></h4>
		<?php jes_bp_event_admin_memberlist( true ) ?>
	</div>

	<?php if ( jes_bp_event_has_moderators() ) : ?>

		<div class="bp-widget">
			<h4><?php _e( 'Moderators', 'buddypress') ?></h4>
			<?php jes_bp_event_mod_memberlist( true ) ?>
		</div>

	<?php endif; ?>

	<div class="bp-widget">
		<h4><?php _e("Members", "jet-event-system"); ?></h4>

		<?php if ( bp_event_jes_has_members( 'per_page=15&exclude_banned=false' ) ) : ?>

			<?php if ( bp_event_member_needs_pagination() ) : ?>

				<div class="pagination no-ajax">

					<div id="member-count" class="pag-count">
						<?php bp_event_member_pagination_count() ?>
					</div>

					<div id="member-admin-pagination" class="pagination-links">
						<?php bp_event_member_admin_pagination() ?>
					</div>

				</div>

			<?php endif; ?>

			<ul id="members-list" class="item-list single-line">
				<?php while ( bp_event_members() ) : bp_event_the_member(); ?>

					<?php if ( bp_get_event_member_is_banned() ) : ?>

						<li class="banned-user">
							<?php bp_event_member_avatar_mini() ?>

							<h5><?php bp_event_member_link() ?> <?php _e( '(banned)', 'buddypress') ?> <span class="small"> - <a href="<?php bp_event_member_unban_link() ?>" class="confirm" title="<?php _e( 'Kick and ban this member', 'buddypress') ?>"><?php _e( 'Remove Ban', 'buddypress'); ?></a> </h5>

					<?php else : ?>

						<li>
							<?php bp_event_member_avatar_mini() ?>
							<h5><?php bp_event_member_link() ?>  <span class="small"> - <a href="<?php bp_event_member_ban_link() ?>" class="confirm" title="<?php _e( 'Kick and ban this member', 'buddypress'); ?>"><?php _e( 'Kick &amp; Ban', 'buddypress'); ?></a> | <a href="<?php bp_event_member_promote_mod_link() ?>" class="confirm" title="<?php _e( 'Promote to Mod', 'buddypress'); ?>"><?php _e( 'Promote to Mod', 'buddypress'); ?></a> | <a href="<?php bp_event_member_promote_admin_link() ?>" class="confirm" title="<?php _e( 'Promote to Admin', 'buddypress'); ?>"><?php _e( 'Promote to Admin', 'buddypress'); ?></a></span></h5>

					<?php endif; ?>

							<?php do_action( 'bp_event_manage_members_admin_item' ); ?>
						</li>

				<?php endwhile; ?>
			</ul>

		<?php else: ?>

			<div id="message" class="info">
				<p><?php _e( 'This event has no members.', 'buddypress'); ?></p>
			</div>

		<?php endif; ?>

	</div>

	<?php do_action( 'bp_after_event_manage_members_admin' ); ?>

<?php endif; ?>

<?php /* Manage Membership Requests */ ?>
<?php if ( bp_is_event_admin_screen( 'membership-requests' ) ) : ?>

	<?php do_action( 'bp_before_event_membership_requests_admin' ); ?>

	<?php if ( bp_event_jes_has_membership_requests() ) : ?>

		<ul id="request-list" class="item-list">
			<?php while ( bp_event_membership_requests() ) : bp_event_the_membership_request(); ?>

				<li>
					<?php bp_event_request_user_avatar_thumb() ?>
					<h4><?php bp_event_request_user_link() ?> <span class="comments"><?php bp_event_request_comment() ?></span></h4>
					<span class="activity"><?php bp_event_request_time_since_requested() ?></span>

					<?php do_action( 'bp_event_membership_requests_admin_item' ); ?>

					<div class="action" id="jes-accept-button">

						<div class="generic-button accept">
							<a href="<?php bp_event_request_accept_link() ?>"><?php _e( 'Accept', 'buddypress'); ?></a>
						</div>

					 &nbsp;

						<div class="generic-button reject">
							<a href="<?php bp_event_request_reject_link() ?>"><?php _e( 'Reject', 'buddypress'); ?></a>
						</div>

						<?php do_action( 'bp_event_membership_requests_admin_item_action' ); ?>

					</div>
				</li>

			<?php endwhile; ?>
		</ul>

	<?php else: ?>

		<div id="message" class="info">
			<p><?php _e( 'There are no pending membership requests.', 'buddypress'); ?></p>
		</div>

	<?php endif; ?>

	<?php do_action( 'bp_after_event_membership_requests_admin' ); ?>

<?php endif; ?>

<?php do_action( 'events_custom_edit_steps' ) // Allow plugins to add custom event edit screens ?>

<?php /* Delete Event Option */ ?>
<?php if ( bp_is_event_admin_screen( 'delete-event' ) ) : ?>

	<?php do_action( 'bp_before_event_delete_admin' ); ?>

	<div id="message" class="info">
		<p><?php _e( 'WARNING: Deleting this event will completely remove ALL content associated with it. There is no way back, please be careful with this option.', 'buddypress'); ?></p>
	</div>

	<input type="checkbox" name="delete-event-understand" id="delete-event-understand" value="1" onclick="if(this.checked) { document.getElementById('delete-event-button').disabled = ''; } else { document.getElementById('delete-event-button').disabled = 'disabled'; }" /> <?php _e( 'I understand the consequences of deleting this event.', 'buddypress'); ?>

	<?php do_action( 'bp_after_event_delete_admin' ); ?>

	<div class="submit">
		<input type="submit" disabled="disabled" value="<?php _e( 'Delete Event', 'buddypress') ?> &rarr;" id="delete-event-button" name="delete-event-button" />
	</div>

	<input type="hidden" name="event-id" id="event-id" value="<?php jes_bp_event_id() ?>" />

	<?php wp_nonce_field( 'events_delete_event' ) ?>

<?php endif; ?>

<?php /* This is important, don't forget it */ ?>
	<input type="hidden" name="event-id" id="event-id" value="<?php jes_bp_event_id() ?>" />

<?php do_action( 'bp_after_event_admin_content' ) ?>

</form><!-- #event-settings-form -->
