<div class="space"></div>
{include file=$webdoc.template_dir|cat:"message.tpl"}
{if !$no_display}
    <form method="post" action="">
      <table class="record" border=0>
        {if $record.is_approved<>1}<tr><th>Name:</th></tr><tr><td>{insert_form type="text" name="name" value=$record.name}</td></tr><tr class="space"><td></td></tr>{else}{insert_form type="hidden" name="name" value=$record.name}{/if}
        {if !isset($record.edit)}{if isset($record.test_id)}<tr><th>Test ID:</th></tr><tr><td>{$record.test_id}{insert_form type="hidden" name="test_id" value=$record.test_id}</td></tr><tr class="space"><td></td></tr>{/if}{/if}
        {if !isset($record.edit)}{if isset($record.product_id)}<tr><th>Product ID:</th></tr><tr><td>{$record.product_id}{insert_form type="hidden" name="product_id" value=$record.product_id}</td></tr><tr class="space"><td></td></tr>{/if}{/if}
        {if $record.is_approved<>1}<tr><th>SW rev:</th></tr><tr><td>{insert_form type="text" name="sw_rev" value=$record.sw_rev}</td></tr><tr class="space"><td></td></tr>{else}{insert_form type="hidden" name="sw_rev" value=$record.sw_rev}{/if}
        {if $record.is_approved<>1}<tr><th>HW rev:</th></tr><tr><td>{insert_form type="text" name="hw_rev" value=$record.hw_rev}</td></tr><tr class="space"><td></td></tr>{else}{insert_form type="hidden" name="hw_rev" value=$record.hw_rev}{/if}
        {if $record.is_approved<>1}<tr><th>Setup:</th></tr><tr><td>{insert_form type="textarea" name="setup" value=$record.setup}</td></tr><tr class="space"><td></td></tr>{else}{insert_form type="hidden" name="setup" value=$record.setup}{/if}
        <tr><th>Result:</th></tr><tr><td>{insert_form type="textarea" name="result" value=$record.result}</td></tr><tr class="space"><td></td></tr>
        <tr><th>Duration:</th></tr><tr><td>{insert_form type="text" name="duration" value=$record.duration}</td></tr><tr class="space"><td></td></tr>
        <tr><th>Description:</th></tr><tr><td>{insert_form type="textarea" name="description" value=$record.description}</td></tr><tr class="space"><td></td></tr>
        <tr><td colspan="2">{if $record.edit}{insert_form type="hidden" name="test_run_id" value=$record.test_run_id}{insert_form type="submit" name="button_edit" value="Edit Test Run"}{else}{insert_form type="submit" name="button_save" value="Add new Test Run"}{/if}</td><tr>
      </table>
    </form>
{/if}