<h1>Create a new job listing</h1>

<form id="jobform" action="<?php echo url::site(url::current()) ?>#formerrors" method="post">

<?php include Kohana::find_file('views', 'elements/formerrors') ?>

<p class="clearfix <?php if (isset($formerrors['company'])) echo 'error' ?>">
<label for="company">Company name</label>
<input id="company" name="company" type="text" value="<?php echo html::specialchars($job->company) ?>" maxlength="100" size="30" />
</p>

<p class="clearfix <?php if (isset($formerrors['location'])) echo 'error' ?>">
<label for="location">Location</label>
<input id="location" name="location" type="text" value="<?php echo html::specialchars($job->location) ?>" maxlength="100" size="30" />
</p>

<p class="clearfix <?php if (isset($formerrors['email'])) echo 'error' ?>">
<label for="email">E-mail</label>
<input id="email" name="email" type="text" value="<?php echo html::specialchars($job->email) ?>" maxlength="100" size="30" />
</p>

<p class="clearfix <?php if (isset($formerrors['description'])) echo 'error' ?>">
<label for="description">Description</label>
<textarea id="description" name="description" cols="50" rows="10"><?php echo html::specialchars($job->description) ?></textarea>
</p>

<p>
<input class="main" type="submit" value="<?php echo ($new) ? 'Post' : 'Edit' ?>" />
or <input name="preview" type="submit" value="Preview" />
</p>

</form>