<?php /* Smarty version 2.6.19, created on 2008-04-28 21:56:00
         compiled from includes/edit_tests.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'cat', 'includes/edit_tests.tpl', 2, false),array('function', 'insert_form', 'includes/edit_tests.tpl', 6, false),)), $this); ?>
<div class="space"></div>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ((is_array($_tmp=$this->_tpl_vars['webdoc']['template_dir'])) ? $this->_run_mod_handler('cat', true, $_tmp, "message.tpl") : smarty_modifier_cat($_tmp, "message.tpl")), 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<?php if (! $this->_tpl_vars['no_display']): ?>
    <form method="post" action="">
      <table class="record" border=0>
        <tr><th>Name:</th></tr><tr><td><?php echo smarty_function_insert_form(array('type' => 'text','name' => 'name','value' => $this->_tpl_vars['record']['name']), $this);?>
</td></tr><tr class="space"><td></td></tr>
        <?php if (! $this->_tpl_vars['record']['edit']): ?><tr><th>Requirement ID:</th></tr><tr><td><?php echo $this->_tpl_vars['record']['requirement_id']; ?>
<?php echo smarty_function_insert_form(array('type' => 'hidden','name' => 'requirement_id','value' => $this->_tpl_vars['record']['requirement_id']), $this);?>
</td></tr><tr class="space"><td></td></tr><?php endif; ?>
        <tr><th>Acceptance criteria:</th></tr><tr><td><?php echo smarty_function_insert_form(array('type' => 'textarea','name' => 'acceptance_criteria','value' => $this->_tpl_vars['record']['acceptance_criteria']), $this);?>
</td></tr><tr class="space"><td></td></tr>
        <tr><th>Comments:</th></tr><tr><td><?php echo smarty_function_insert_form(array('type' => 'textarea','name' => 'comments','value' => $this->_tpl_vars['record']['comments']), $this);?>
</td></tr><tr class="space"><td></td></tr>
        <?php if ($this->_tpl_vars['record']['edit']): ?>
        <tr><th>Connect with Requirement:</th></tr><tr>
        <td><?php $_from = $this->_tpl_vars['record_requirement_id']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['row']):
?><?php if (count ( $this->_tpl_vars['record_requirement_id'] ) > 1): ?><?php echo smarty_function_insert_form(array('type' => 'checkbox','name' => 'requirement_has_test_id','value' => $this->_tpl_vars['row']['requirement_has_test_id']), $this);?>
<?php echo $this->_tpl_vars['row']['requirement_id']; ?>
<?php else: ?><?php echo $this->_tpl_vars['row']['requirement_id']; ?>
<br><?php endif; ?><?php endforeach; endif; unset($_from); ?><?php if (count ( $this->_tpl_vars['record_requirement_id'] ) > 1): ?> <?php echo smarty_function_insert_form(array('type' => 'submit','name' => 'button_edit_delete','value' => 'Delete Requirement'), $this);?>
<br><?php endif; ?><br>
        <select name="requirement"><?php $_from = $this->_tpl_vars['requirement']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['row']):
?><option label="<?php echo $this->_tpl_vars['row']['name']; ?>
" value="<?php echo $this->_tpl_vars['row']['requirement_id']; ?>
"><?php echo $this->_tpl_vars['row']['name']; ?>
</option><?php endforeach; endif; unset($_from); ?></select><?php echo smarty_function_insert_form(array('type' => 'submit','name' => 'button_edit_add','value' => 'Add Requirement'), $this);?>

        </td>
        </tr><tr class="space"><td></td></tr>
        <?php endif; ?>
        <tr><td colspan="2"><?php if ($this->_tpl_vars['record']['edit']): ?><?php echo smarty_function_insert_form(array('type' => 'hidden','name' => 'test_id','value' => $this->_tpl_vars['record']['test_id']), $this);?>
<?php echo smarty_function_insert_form(array('type' => 'submit','name' => 'button_edit','value' => 'Edit Test'), $this);?>
<?php else: ?><?php echo smarty_function_insert_form(array('type' => 'submit','name' => 'button_save','value' => 'Add new Test'), $this);?>
<?php endif; ?></td><tr>
      </table>
    </form>
<?php endif; ?>