<?php
/* Smarty version 3.1.33, created on 2022-01-24 16:46:25
  from '/home/recursosspa/public_html/testlink/gui/templates/testcases/steps_horizontal.inc.tpl' */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '3.1.33',
  'unifunc' => 'content_61eed7e1478506_12943244',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    '34923e46e39772d544add4d9d2c2cb539e97e4c8' => 
    array (
      0 => '/home/recursosspa/public_html/testlink/gui/templates/testcases/steps_horizontal.inc.tpl',
      1 => 1643038978,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
    'file:error_icon.tpl' => 1,
    'file:execute/add_issue_on_step.inc.tpl' => 1,
    'file:execute/issue_inputs_on_step.inc.tpl' => 1,
    'file:attachments_simple.inc.tpl' => 1,
  ),
),false)) {
function content_61eed7e1478506_12943244 (Smarty_Internal_Template $_smarty_tpl) {
$_smarty_tpl->_checkPlugins(array(0=>array('file'=>'/home/recursosspa/public_html/testlink/vendor/smarty/smarty/libs/plugins/function.html_options.php','function'=>'smarty_function_html_options',),));
?>
  <?php if (isset($_smarty_tpl->tpl_vars['add_exec_info']->value) && $_smarty_tpl->tpl_vars['add_exec_info']->value) {?>
    <?php $_smarty_tpl->_assignInScope('inExec', 1);?>
  <?php } else { ?>
    <?php $_smarty_tpl->_assignInScope('inExec', 0);?>
  <?php }?>  

  <tr>
    <th width="40px"><nobr>
    <?php if ($_smarty_tpl->tpl_vars['edit_enabled']->value && $_smarty_tpl->tpl_vars['steps']->value != '' && !is_null($_smarty_tpl->tpl_vars['steps']->value) && $_smarty_tpl->tpl_vars['args_frozen_version']->value == "no") {?>
      <img class="clickable" src="<?php echo $_smarty_tpl->tpl_vars['tlImages']->value['reorder'];?>
" align="left"
           title="<?php echo $_smarty_tpl->tpl_vars['inc_steps_labels']->value['show_hide_reorder'];?>
"
           onclick="showHideByClass('span','order_info');">
      <img class="clickable" src="<?php echo $_smarty_tpl->tpl_vars['tlImages']->value['ghost_item'];?>
" align="left"
           title="<?php echo $_smarty_tpl->tpl_vars['inc_steps_labels']->value['show_ghost_string'];?>
"
           onclick="showHideByClass('tr','ghost');">
    <?php }?>
    <?php echo $_smarty_tpl->tpl_vars['inc_steps_labels']->value['step_number'];?>

    </th>
    <th><?php echo $_smarty_tpl->tpl_vars['inc_steps_labels']->value['step_actions'];?>

    </th>
    <th><?php echo $_smarty_tpl->tpl_vars['inc_steps_labels']->value['expected_results'];?>
</th>
    <?php if ($_smarty_tpl->tpl_vars['session']->value['testprojectOptions']->automationEnabled) {?>
    <th width="25"><?php echo $_smarty_tpl->tpl_vars['inc_steps_labels']->value['execution_type_short_descr'];?>
</th>
    <?php }?>
    <?php if ($_smarty_tpl->tpl_vars['edit_enabled']->value) {?>
    <th>&nbsp;</th>
    <th>&nbsp;</th>
    <?php }?>

    <?php if ($_smarty_tpl->tpl_vars['inExec']->value) {?>
      <th><?php if ($_smarty_tpl->tpl_vars['tlCfg']->value->exec_cfg->steps_exec_notes_default == 'latest') {
echo $_smarty_tpl->tpl_vars['inc_steps_labels']->value['latest_exec_notes'];?>

          <?php } else {
echo $_smarty_tpl->tpl_vars['inc_steps_labels']->value['step_exec_notes'];
}?>
          <img class="clickable" src="<?php echo $_smarty_tpl->tpl_vars['tlImages']->value['clear_notes'];?>
" 
          onclick="javascript:clearTextAreaByClassName('step_note_textarea');" title="<?php echo $_smarty_tpl->tpl_vars['inc_steps_labels']->value['clear_all_notes'];?>
"></th>

      <th><?php echo $_smarty_tpl->tpl_vars['inc_steps_labels']->value['step_exec_status'];?>

       <img class="clickable" src="<?php echo $_smarty_tpl->tpl_vars['tlImages']->value['reset'];?>
" 
          onclick="javascript:clearSelectByClassName('step_status');" title="<?php echo $_smarty_tpl->tpl_vars['inc_steps_labels']->value['clear_all_status'];?>
"></th>
    <?php }?>    


  </tr>
  
  <?php $_smarty_tpl->_assignInScope('rowCount', count($_smarty_tpl->tpl_vars['steps']->value));?> 
  <?php $_smarty_tpl->_assignInScope('row', 0);?>

  <?php $_smarty_tpl->_assignInScope('att_ena', $_smarty_tpl->tpl_vars['inExec']->value && $_smarty_tpl->tpl_vars['tlCfg']->value->exec_cfg->steps_exec_attachments);?>

  <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['steps']->value, 'step_info');
if ($_from !== null) {
foreach ($_from as $_smarty_tpl->tpl_vars['step_info']->value) {
?>
  <tr id="step_row_<?php echo $_smarty_tpl->tpl_vars['step_info']->value['step_number'];?>
">
    <td style="text-align:left;">
      <span class="order_info" style='display:none'>
      <?php if ($_smarty_tpl->tpl_vars['edit_enabled']->value && $_smarty_tpl->tpl_vars['args_frozen_version']->value == "no") {?>
        <input type="text" class="step_number<?php echo $_smarty_tpl->tpl_vars['args_testcase']->value['id'];?>
" name="step_set[<?php echo $_smarty_tpl->tpl_vars['step_info']->value['id'];?>
]" id="step_set_<?php echo $_smarty_tpl->tpl_vars['step_info']->value['id'];?>
"
          value="<?php echo $_smarty_tpl->tpl_vars['step_info']->value['step_number'];?>
"
          size="<?php echo $_smarty_tpl->smarty->ext->configLoad->_getConfigVariable($_smarty_tpl, 'STEP_NUMBER_SIZE');?>
"
          maxlength="<?php echo $_smarty_tpl->smarty->ext->configLoad->_getConfigVariable($_smarty_tpl, 'STEP_NUMBER_MAXLEN');?>
">
        <?php $_smarty_tpl->_subTemplateRender("file:error_icon.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array('field'=>"step_number"), 0, true);
?>
      <?php }?>
      </span>
      <?php echo $_smarty_tpl->tpl_vars['step_info']->value['step_number'];?>

    </td>
    <td <?php if ($_smarty_tpl->tpl_vars['edit_enabled']->value && $_smarty_tpl->tpl_vars['args_frozen_version']->value == "no") {?> style="cursor:pointer;" onclick="launchEditStep(<?php echo $_smarty_tpl->tpl_vars['step_info']->value['id'];?>
)" <?php }?>><?php if ($_smarty_tpl->tpl_vars['gui']->value->stepDesignEditorType == 'none') {
echo nl2br($_smarty_tpl->tpl_vars['step_info']->value['actions']);
} else {
echo $_smarty_tpl->tpl_vars['step_info']->value['actions'];
}?>
    </td>
    <td <?php if ($_smarty_tpl->tpl_vars['edit_enabled']->value && $_smarty_tpl->tpl_vars['args_frozen_version']->value == "no") {?> style="cursor:pointer;" onclick="launchEditStep(<?php echo $_smarty_tpl->tpl_vars['step_info']->value['id'];?>
)" <?php }?>><?php if ($_smarty_tpl->tpl_vars['gui']->value->stepDesignEditorType == 'none') {
echo nl2br($_smarty_tpl->tpl_vars['step_info']->value['expected_results']);
} else {
echo $_smarty_tpl->tpl_vars['step_info']->value['expected_results'];
}?></td>
    <?php if ($_smarty_tpl->tpl_vars['session']->value['testprojectOptions']->automationEnabled) {?>
    <td <?php if ($_smarty_tpl->tpl_vars['edit_enabled']->value && $_smarty_tpl->tpl_vars['args_frozen_version']->value == "no") {?> style="cursor:pointer;" onclick="launchEditStep(<?php echo $_smarty_tpl->tpl_vars['step_info']->value['id'];?>
)" <?php }?>><?php echo $_smarty_tpl->tpl_vars['gui']->value->execution_types[$_smarty_tpl->tpl_vars['step_info']->value['execution_type']];?>
</td>
    <?php }?>

    <?php if ($_smarty_tpl->tpl_vars['edit_enabled']->value && $_smarty_tpl->tpl_vars['args_frozen_version']->value == "no") {?>
    <td class="clickable_icon">
      <img style="border:none;cursor: pointer;"
           title="<?php echo $_smarty_tpl->tpl_vars['inc_steps_labels']->value['delete_step'];?>
"
           alt="<?php echo $_smarty_tpl->tpl_vars['inc_steps_labels']->value['delete_step'];?>
"
           onclick="delete_confirmation(<?php echo $_smarty_tpl->tpl_vars['step_info']->value['id'];?>
,'<?php echo htmlspecialchars(strtr($_smarty_tpl->tpl_vars['step_info']->value['step_number'], array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\/" )), ENT_QUOTES, 'UTF-8', true);?>
',
                                         '<?php echo $_smarty_tpl->tpl_vars['del_msgbox_title']->value;?>
','<?php echo $_smarty_tpl->tpl_vars['warning_msg']->value;?>
');"
           src="<?php echo $_smarty_tpl->tpl_vars['tlImages']->value['delete'];?>
"/>
    </td>
    
    <td class="clickable_icon">
      <img style="border:none;cursor: pointer;"  title="<?php echo $_smarty_tpl->tpl_vars['inc_steps_labels']->value['insert_step'];?>
"    
           alt="<?php echo $_smarty_tpl->tpl_vars['inc_steps_labels']->value['insert_step'];?>
"
           onclick="launchInsertStep(<?php echo $_smarty_tpl->tpl_vars['step_info']->value['id'];?>
);"    src="<?php echo $_smarty_tpl->tpl_vars['tlImages']->value['insert_step'];?>
"/>
    </td>
    
    <?php }?>

    <?php if ($_smarty_tpl->tpl_vars['inExec']->value) {?>
      <td class="exec_tcstep_note">
        <textarea class="step_note_textarea" name="step_notes[<?php echo $_smarty_tpl->tpl_vars['step_info']->value['id'];?>
]" id="step_notes_<?php echo $_smarty_tpl->tpl_vars['step_info']->value['id'];?>
" 
                  cols="40" rows="5"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['step_info']->value['execution_notes'], ENT_QUOTES, 'UTF-8', true);?>
</textarea>
      </td>

      <td>
        <select class="step_status" name="step_status[<?php echo $_smarty_tpl->tpl_vars['step_info']->value['id'];?>
]" id="step_status_<?php echo $_smarty_tpl->tpl_vars['step_info']->value['id'];?>
">
          <?php echo smarty_function_html_options(array('options'=>$_smarty_tpl->tpl_vars['gui']->value->execStepStatusValues,'selected'=>$_smarty_tpl->tpl_vars['step_info']->value['execution_status']),$_smarty_tpl);?>


        </select> <br>
        
        <?php if ($_smarty_tpl->tpl_vars['gui']->value->tlCanCreateIssue) {?>
          <?php $_smarty_tpl->_subTemplateRender("file:execute/add_issue_on_step.inc.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array('args_labels'=>$_smarty_tpl->tpl_vars['labels']->value,'args_step_id'=>$_smarty_tpl->tpl_vars['step_info']->value['id']), 0, true);
?>
        <?php }?>
      </td>

    <?php }?>
   
  </tr>
  <?php if ($_smarty_tpl->tpl_vars['inExec']->value && $_smarty_tpl->tpl_vars['gui']->value->tlCanCreateIssue) {?> 
    <tr>
      <td colspan=6>
      <?php $_smarty_tpl->_subTemplateRender("file:execute/issue_inputs_on_step.inc.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array('args_labels'=>$_smarty_tpl->tpl_vars['labels']->value,'args_step_id'=>$_smarty_tpl->tpl_vars['step_info']->value['id']), 0, true);
?>
      </td>
    </tr> 
  <?php }?>

  <?php if ($_smarty_tpl->tpl_vars['gui']->value->allowStepAttachments && $_smarty_tpl->tpl_vars['att_ena']->value) {?>
    <tr>
      <td colspan=6>
      <?php $_smarty_tpl->_subTemplateRender("file:attachments_simple.inc.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array('attach_id'=>$_smarty_tpl->tpl_vars['step_info']->value['id']), 0, true);
?>
      </td>
    </tr> 
  <?php }?> 

  <?php if ($_smarty_tpl->tpl_vars['ghost_control']->value) {?>
    <tr class='ghost' style='display:none'><td></td><td><?php echo $_smarty_tpl->tpl_vars['step_info']->value['ghost_action'];?>
</td><td><?php echo $_smarty_tpl->tpl_vars['step_info']->value['ghost_result'];?>
</td></tr>    
  <?php }?>

    <?php $_smarty_tpl->_assignInScope('rCount', $_smarty_tpl->tpl_vars['row']->value+$_smarty_tpl->tpl_vars['step_info']->value['step_number']);?>
    <?php if (($_smarty_tpl->tpl_vars['rCount']->value < $_smarty_tpl->tpl_vars['rowCount']->value) && ($_smarty_tpl->tpl_vars['rowCount']->value >= 1)) {?>
      <tr width="100%">
        <?php if ($_smarty_tpl->tpl_vars['session']->value['testprojectOptions']->automationEnabled) {?>
        <td colspan=6>
        <?php } else { ?>
        <td colspan=5>
        <?php }?>
        <hr align="center" width="100%" color="grey" size="1">
        </td>
      </tr>
    <?php }?>

  <?php
}
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);
}
}
