<?php use_stylesheets_for_form($form) ?>
<?php use_javascripts_for_form($form) ?>

<form
	action="<?php echo url_for('seller/sell?id='.$form->getObject()->getId()); ?>"
	method="post"
	<?php $form->isMultipart() and print 'enctype="multipart/form-data" ' ?>>
<table>
	<tfoot>
		<tr>
			<td colspan="2"><?php echo $form->renderHiddenFields(false) ?> &nbsp;<a
				href="<?php echo url_for('seller/index') ?>">Back to seller</a>
			 <input type="submit" value="Sell ticket!" /></td>
		</tr>
	</tfoot>
	<tbody>
	<?php echo $form->renderGlobalErrors() ?><tr>
			<th><?php echo $form['partner_seat_id']->renderLabel() ?></th>
			<td><?php echo $form['partner_seat_id']->renderError() ?> <?php echo $form['partner_seat_id'] ?>
			</td>
		</tr>
		<tr>
			<th><?php echo $form['guest_id']->renderLabel() ?></th>
			<td><?php echo $form['guest_id']->renderError() ?> <?php echo $form['guest_id'] ?>
			</td>
		</tr>
		<tr>
			<th><?php echo $form['price']->renderLabel() ?></th>
			<td><?php echo $form['price']->renderError() ?> <?php echo $form['price'] ?>
			</td>
		</tr>
		<tr>
			<th><?php echo $form['comment']->renderLabel() ?></th>
			<td><?php echo $form['comment']->renderError() ?> <?php echo $form['comment'] ?>
			</td>
		</tr>
	</tbody>
</table>
</form>
