<commit_before><?php defined('SYSPATH') or die('No direct access allowed.');
/**
 * Edit event
 *
 * @package    Events
 * @author     <NAME>
 * @copyright  (c) 2010-2011 <NAME>
 * @license    http://www.opensource.org/licenses/mit-license.php MIT license
 */

// Build venue list
$venues_json = array();
$list        = array(__('Choose venue..'));
$_city       = '';
foreach ($venues as $v):

	// Group by city
	$_city = Text::capitalize($v->city() ? $v->city()->name : $v->city_name);
	!isset($list[$_city]) and $list[$_city] = array();
	$list[$_city][$v->id] = $v->name;

	// JSON list for map
	$venues_json[$v->id] = array(
		'id'        => $v->id,
		'name'      => $v->name,
		'address'   => $v->address,
		'city'      => $_city,
		'latitude'  => $v->latitude,
		'longitude' => $v->longitude,
	);

endforeach;
unset($venues, $v);

echo Form::open(null, array('id' => 'form-event-edit'));
?>

	<div class="grid8 first">
		<fieldset id="fields-primary">
			<ul>
				<?php echo Form::input_wrap('name', $event, null, __('Event'), $event_errors) ?>
				<?php echo Form::textarea_wrap('dj',   $event, null, true, __('Performers'), $event_errors) ?>
				<?php echo Form::textarea_wrap('info', $event, null, true, __('Other information'), $event_errors, null, true) ?>
				<?php //echo $event->input('tags', 'form/anqh', array('errors' => $event_errors, 'class' => 'pills', 'values' => $tags)) ?><commit_msg>Event homepage<commit_after><?php defined('SYSPATH') or die('No direct access allowed.');
/**
 * Edit event
 *
 * @package    Events
 * @author     <NAME>
 * @copyright  (c) 2010-2011 <NAME>
 * @license    http://www.opensource.org/licenses/mit-license.php MIT license
 */

// Build venue list
$venues_json = array();
$list        = array(__('Choose venue..'));
$_city       = '';
foreach ($venues as $v):

	// Group by city
	$_city = Text::capitalize($v->city() ? $v->city()->name : $v->city_name);
	!isset($list[$_city]) and $list[$_city] = array();
	$list[$_city][$v->id] = $v->name;

	// JSON list for map
	$venues_json[$v->id] = array(
		'id'        => $v->id,
		'name'      => $v->name,
		'address'   => $v->address,
		'city'      => $_city,
		'latitude'  => $v->latitude,
		'longitude' => $v->longitude,
	);

endforeach;
unset($venues, $v);

echo Form::open(null, array('id' => 'form-event-edit'));
?>

	<div class="grid8 first">
		<fieldset id="fields-primary">
			<ul>
				<?php echo Form::input_wrap('name', $event, null, __('Event'), $event_errors) ?>
				<?php echo Form::input_wrap('homepage', $event, null, __('Homepage'), $event_errors) ?>
				<?php echo Form::textarea_wrap('dj',   $event, null, true, __('Performers'), $event_errors) ?>
				<?php echo Form::textarea_wrap('info', $event, null, true, __('Other information'), $event_errors, null, true) ?>
				<?php // @todo tags ?>
{'fraction_non_alphanumeric': 0.22931526390870186, 'fraction_numerical': 0.006419400855920114, 'mean_word_length': 3.827882960413081, 'pattern_counts': {'":': 0, '<': 24, '<?xml version=': 0, '>': 66, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3999791', 'n_tokens_mistral': 1080, 'n_tokens_neox': 1007, 'n_words': 229}