{if $status}
	<div class="form-group">
		<label for="trackerinput_status" class="control-label">{tr}Status{/tr}</label>
		<div id="trackerinput_status">
			{include 'trackerinput/status.tpl' status_types=$status_types status=$status}
		</div>
	</div>
{/if}
{foreach from=$fields item=field}
	<div class="form-group">
		<label for="trackerinput_{$field.fieldId|escape}" class="control-label">
			{$field.name|tra|escape}
			{if $field.isMandatory eq 'y'}
				<span class="mandatory_star">*</span>
			{/if}
		</label>
		<div id="trackerinput_{$field.fieldId|escape}">
			{trackerinput field=$field}
			{if !empty($field.description) && $field.type ne 'S'}
				{if $field.descriptionIsParsed eq 'y'}
					<div class="description help-block">{wiki}{$field.description}{/wiki}</div>
				{else}
					<div class="description help-block">{$field.description|tra|escape}</div>
				{/if}
			{/if}
		</div>
	</div>
{/foreach}
{jq}$('label').click(function() {$('input, select, textarea', '#'+$(this).attr('for')).focus();});{/jq}

{if $status}
	<div class="form-group">
		<label for="trackerinput_status" class="control-label">{tr}Status{/tr}</label>
		<div id="trackerinput_status">
			{include 'trackerinput/status.tpl' status_types=$status_types status=$status}
		</div>
	</div>
{/if}
{foreach from=$fields item=field}
	<div class="form-group">
		<label for="trackerinput_{$field.fieldId|escape}" class="control-label{if $field.type eq 'h'} h{$field.options_map.level}{/if}">
			{$field.name|tra|escape}
			{if $field.isMandatory eq 'y'}
				<span class="mandatory_star">*</span>
			{/if}
		</label>
		<div id="trackerinput_{$field.fieldId|escape}">
			{trackerinput field=$field}
			{if !empty($field.description) && $field.type ne 'S'}
				{if $field.descriptionIsParsed eq 'y'}
					<div class="description help-block">{wiki}{$field.description}{/wiki}</div>
				{else}
					<div class="description help-block">{$field.description|tra|escape}</div>
				{/if}
			{/if}
		</div>
	</div>
{/foreach}
{jq}$('label').click(function() {$('input, select, textarea', '#'+$(this).attr('for')).focus();});{/jq}

Make header fields in flat item view layout look like headings
[ENH] trackers: Make header fields in flat item view layout look like headings

git-svn-id: 7564fe402ed407387e083b9f1c8ef2c2bd7bb5d7@55647 b456876b-0849-0410-b77d-98878d47e9d5
