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

<form
	action="<?php echo url_for('seller/'.($form->getObject()->isNew() ? 'create' : 'update').(!$form->getObject()->isNew() ? '?id='.$form->getObject()->getId() : '')) ?>"
	method="post"
	<?php $form->isMultipart() and print 'enctype="multipart/form-data" ' ?>>
	<?php if (!$form->getObject()->isNew()): ?> <input type="hidden"
	name="sf_method" value="put" /> <?php endif; ?>
<table>
	<tfoot>
		<tr>
			<td colspan="2"><?php echo $form->renderHiddenFields(false) ?> &nbsp;<a
				href="<?php echo url_for('seller/index') ?>">Back to list</a> <?php if (!$form->getObject()->isNew()): ?>
			&nbsp;<?php echo link_to('Delete', 'seller/delete?id='.$form->getObject()->getId(), array('method' => 'delete', 'confirm' => 'Are you sure?')) ?>
			<?php endif; ?> <input type="submit" value="Save" /></td>
		</tr>
	</tfoot>
	<tbody>
	<?php echo $form->renderGlobalErrors() ?>
		<tr>
			<th><?php echo $form['board_id']->renderLabel() ?></th>
			<td><?php echo $form['board_id']->renderError() ?> <?php echo $form['board_id'] ?>
			</td>
		</tr>
		<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['sold_time']->renderLabel() ?></th>
			<td><?php echo $form['sold_time']->renderError() ?> <?php echo $form['sold_time'] ?>
			</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>
