    <div class="space"></div>
{include file=$webdoc.template_dir|cat:"message.tpl"}
{if !$no_display}
{if !$no_display_form}
    <form method="post" action="">
    <input type="submit" name="button_save" value="Save" style="display: none;">
      <table class="record">
        <tr><th>Name:</th></tr><tr><td>{insert_form type="text" name="name" value=$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>{html_options name=category_id options=$tree selected=$record.category_id}</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>{insert_form type="textarea" name="description" value=$record.description}</td></tr><tr class="space"><td></td></tr>
        <tr><th>Comments:</th></tr><tr><td>{insert_form type="textarea" name="comments" value=$record.comments}</td></tr><tr class="space"><td></td></tr>
{if $webdoc.main_table=="requirement"}
        <tr><th>Dependces:</th></tr><tr><td>{insert_id_selections select_name="dependences_id" buttons_name="dependence" select=$dependences array_id=$record.dependences_id}</td></tr><tr class="space"><td></td></tr>
        <tr><th>Is product specific:</th></tr><tr><td>{html_options name=is_product_specific options=$yesno selected=$record.is_product_specific}</td></tr></tr><tr class="space"><td></td></tr>
{/if}
{if $webdoc.main_table=="product"}
        <tr><th>Requirements (state, priority):</th></tr><tr><td>{insert_id_selections select_name="requirements_id" buttons_name="requirement" select=$requirements array_id=$record.requirements_id states=$states states_id=$record.states_id priorities=$priorities priorities_id=$record.priorities_id}</td></tr><tr class="space"><td></td></tr>
{/if}
        <tr><td>{insert_form type="submit" name="button_save" value="Save"}</td><tr>
      </table>
    </form>
{/if}
{/if}