<?php

	global $lumise;
	$section = 'bug';

	$fields = $lumise_admin->process_data(array(
		array(
			'type' => 'text',
			'name' => 'content',
			'label' => $lumise->lang('Content')
		),
		array(
			'type' => 'dropbox',
			'name' => 'status',
			'label' => $lumise->lang('Status'),
			'options' => array(
				'new' => 'New',
				'pending' => 'Pending',
				'fixed' => 'Fixed',
			)
		),
	), 'bugs');

?>

<div class="lumise_wrapper">
	<div class="lumise_content">
		<?php
			$lumise->views->detail_header(array(
				'add' => $lumise->lang('Add New Bug'),
				'edit' => $lumise->lang('Edit Bug'),
				'page' => $section
			));
		?>
		<form action="<?php echo $lumise_router->getURI(); ?>lumise-page=<?php
			echo $section.(isset($_GET['callback']) ? '&callback='.$_GET['callback'] : '');
		?>" id="lumise-clipart-form" method="post" class="lumise_form" enctype="multipart/form-data">

			<?php $lumise->views->tabs_render($fields); ?>

			<div class="lumise_form_group lumise_form_submit">
				<input type="submit" value="<?php echo $lumise->lang('Save Bug'); ?>"/>
				<input type="hidden" name="do" value="action" />
				<a class="lumise_cancel" href="<?php echo $lumise_router->getURI();?>lumise-page=bugs">
					<?php echo $lumise->lang('Cancel'); ?>
				</a>
				<input type="hidden" name="lumise-section" value="<?php echo $section; ?>">
			</div>
		</form>
	</div>
</div>
