[{if $bValidJob}]
<div class="Tab1Header">
	<div class="padt10 padr15">
		[{$CommunityToolbar}]
	</div>
</div>
<div class="Tab1Content">
	<div class="padl15">
		<div class="mrgt15">
		[{$job_details}]
		</div>
		<hr style="margin-top: 20px; margin-bottom: 20px;" />

		[{if $bPostLinkAvailable}]
		[{* <h3><span class="nrm nrmlink" onclick="JobQuoteLink('[{$teasing_job_quote_type}]','[{$teasing_job_quote_link}]');">[{t}]quotepage_Post_a_quote[{/t}] &raquo;</span></h3> *}]
		<input class="minismbred" type="button" name="btn_post_quote" value="[{t escape=attr}]quotepage_Post_a_quote[{/t}]" onclick="JobQuoteLink('[{$teasing_job_quote_type}]','[{$teasing_job_quote_link}]');" />
		[{/if}]

		[{if $bOwnedByUser}]
			[{if $bCloseable}]
				<input class="minismbred" type="button" name="btn_close" value="[{t escape=attr}]Close_job[{/t}]" onclick="CloseJob( [{$job.job_id}] );" />
			[{/if}]

			[{if $bRevokable}]
				<input class="minismbred" type="button" name="btn_revoke" value="[{t escape=attr}]Revoke_job[{/t}]" onclick="RevokeJob( [{$job.job_id}] );" />
			[{/if}]
			<br/><br/>
			<table width="100%">
				<tr>
					<td align="left"><h2><a class="nrm" href="[{$url_my_jobs}]">&laquo; [{t}]qojpage_Back_to_my_jobs[{/t}]</a></h2></td>
			[{if $job.number_of_quotes>=0}]
					<td align="right"><h2><a class="nrm" href="[{$job.quotes_of_job_url}]">[{t}]qojpage_Quotes_of_job[{/t}] ([{$job.number_of_quotes}]) &raquo;</a></h2></td>
			[{/if}]
			</table>
		[{else}]
			<table width="100%">
				<tr>
					<td align="left"><h2><a class="nrm" href="[{$url_jobs}]">&laquo; [{t}]qojpage_Back_to_jobs[{/t}]</a></h2></td>
				</tr>
			</table>
		[{/if}]
	</div>
</div>
[{$JobHandler}]

</div>
[{else}]
<div class="Tab1Header">
	<div class="padt10 padr10">
		<h1>[{t}]Jobs[{/t}]</h1>
		<hr/>
	</div>
</div>
<div class="Tab1Content">
	<div class="padl15">
		[{t}]error_Invalid_job[{/t}]
	</div>
</div>
[{/if}]
