{if !$no_display_message}
    <div class="space"></div>
{include file=$webdoc.template_dir|cat:"message.tpl"}
{/if}
{if !$no_display}
{if $record}
{if !isset($record.current) || $record.current!=1 }
    <p>Viewing older version.</p>
{/if}
    {if $make}<form method="post" action=""><p>{if $webdoc.main_table=="requirement"}{insert_form type="hidden" name="requirement_id" value=$record.requirement_id}{insert_form type="submit" name="button_make_test" value="Make Test"}{else}{insert_form type="hidden" name="product_id" value=$record.product_id}{insert_form type="submit" name="button_make_test" value="Make Test Run"}{/if}</p></form>{/if}
    <form method="post" action="">
      <table class="record">
        <tr><th>Name:</th></tr><tr><td>{$record.name}</td></tr><tr class="space"><td></td></tr>
        <tr><th>{if $webdoc.main_table=="product"}Family{else}Category{/if}:</th></tr><tr><td>{if !isset($record.category)}-{else}{$record.category}{/if}</td></tr><tr class="space"><td></td></tr>
        <tr><th>Parent:</th></tr><tr><td>{if !isset($record.parent)}-{else}{$record.parent}{/if}</td></tr><tr class="space"><td></td></tr>
        <tr><th>Created:</th></tr><tr><td>{$record.created}{if $record.creator}<br />{$record.creator}{/if}</td></tr><tr class="space"><td></td></tr>
        <tr><th>Approved:</th></tr><tr><td>{if !isset($record.approved)}No{else}{$record.approved}{if isset($record.approver)}<br />{$record.approver}{/if}{/if}</td></tr><tr class="space"><td></td></tr>
        <tr><th>Active:</th></tr><tr><td>{if $record.active==1}Yes{else}No{/if}</td></tr><tr class="space"><td></td></tr>
        <tr><th>Description:</th></tr><tr><td>{$record.description}</td></tr>
{if $webdoc.main_table=="requirement"}
<tr class="space"><td></td></tr>
        <tr><th>Dependences:</th></tr><tr><td>
{assign var=i value=0}
{foreach from=$record.dependences key=key item=dependence}
{assign var=i value=$i+1}
{$dependence}
{if $i<count($record.dependences)}<br />{/if}
{/foreach}
{if !isset($record.dependences)}No{/if}
        </td></tr><tr class="space"><td></td></tr>
        <tr><th>Is product specific:</th></tr><tr><td>{if $record.is_product_specific}Yes{else}No{/if}</td></tr></tr>
{/if}
      </table>
    </form>
{/if}
{/if}