<?php
/* Smarty version 3.1.33, created on 2022-01-28 14:50:50
  from '/home/recursosspa/public_html/testlink/gui/templates/plan/inc_controls_planEdit.tpl' */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '3.1.33',
  'unifunc' => 'content_61f402ca1cedb3_56121458',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    '472676fb317193588ebd6c35c1c093694b1cc59c' => 
    array (
      0 => '/home/recursosspa/public_html/testlink/gui/templates/plan/inc_controls_planEdit.tpl',
      1 => 1643038955,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_61f402ca1cedb3_56121458 (Smarty_Internal_Template $_smarty_tpl) {
echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['lang_get'][0], array( array('var'=>"labels",'s'=>'testplan_copy_builds,testplan_copy_tcases,testplan_copy_tcases_latest,
             testplan_copy_tcases_current,testplan_copy_builds,
             testplan_copy_priorities,testplan_copy_milestones,
             testplan_copy_assigned_to,testplan_copy_user_roles,
             testplan_copy_platforms_links,testplan_copy_attachments'),$_smarty_tpl ) );?>


<?php echo '<script'; ?>
 type="text/javascript">
function manageTestCaseRelated(checkBoxOid)
{
  var obj = document.getElementById(checkBoxOid);
  var target = ['version','priority','exec_assignment'];
  var dmode;

  // Display
  dmode = 'none';
  if(obj.checked)
  {
    dmode = '';
  }  

  var loop2do = target.length;
  for (var idx = 0; idx < loop2do; idx++) 
  {
    document.getElementById(target[idx]).style.display=dmode;
  }

  // Enable / disable + value set
  plink = document.getElementById('copy_platforms_links');
  if(obj.checked)
  {
    plink.checked = true;
    plink.disabled = true;
  }  
  else
  {
    plink.disabled = false;
  } 
} 

function manageBuildRelated(checkBoxOid)
{
  var obj = document.getElementById(checkBoxOid);
  var target = ['exec_assignment'];
  var dmode;

  dmode = 'none';
  if(obj.checked)
  {
    dmode = '';
  }  

  var loop2do = target.length;
  for (var idx = 0; idx < loop2do; idx++) 
  {
    document.getElementById(target[idx]).style.display=dmode;
  }
} 
<?php echo '</script'; ?>
>

<table style="float: left; text-align:left">
  <tr>
    <td align='left'>
      <input type="checkbox" name="copy_user_roles" checked="checked"/><?php echo $_smarty_tpl->tpl_vars['labels']->value['testplan_copy_user_roles'];?>

    </td>
  </tr>
  <tr>
    <td align='left'>
      <input type="checkbox" name="copy_attachments" checked="checked"/><?php echo $_smarty_tpl->tpl_vars['labels']->value['testplan_copy_attachments'];?>

    </td>
  </tr>

  <tr>
    <td align='left'>
      <input type="checkbox" name="copy_tcases" id="copy_tcases" 
             checked="checked" onclick="manageTestCaseRelated('copy_tcases');" />
      <?php echo $_smarty_tpl->tpl_vars['labels']->value['testplan_copy_tcases'];?>

    </td>
  </tr>
  <tr id="version">
    <td align='left'>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
      <input type="radio" name="tcversion_type" value="latest" /><?php echo $_smarty_tpl->tpl_vars['labels']->value['testplan_copy_tcases_latest'];?>

      <input type="radio" name="tcversion_type" value="current" checked="1"/><?php echo $_smarty_tpl->tpl_vars['labels']->value['testplan_copy_tcases_current'];?>

    </td>
  </tr>
  <tr id="priority">
    <td align='left'>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
      <input type="checkbox" name="copy_priorities" checked="checked"/><?php echo $_smarty_tpl->tpl_vars['labels']->value['testplan_copy_priorities'];?>

    </td>
  </tr>
  <tr>
    <td align='left'>
      <input type="checkbox" name="copy_builds" id="copy_builds" 
             checked="checked" onclick="manageBuildRelated('copy_builds');"/>
      <?php echo $_smarty_tpl->tpl_vars['labels']->value['testplan_copy_builds'];?>

    </td>
  </tr>
  <tr id="exec_assignment">
    <td align='left'>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
      <input type="checkbox" name="copy_assigned_to" checked="checked"/><?php echo $_smarty_tpl->tpl_vars['labels']->value['testplan_copy_assigned_to'];?>

    </td>
  </tr>

  <tr id="platforms_links">
    <td align='left'>
      <input type="checkbox" name="copy_platforms_links" 
             id="copy_platforms_links" disabled="disabled" 
             checked="checked"/><?php echo $_smarty_tpl->tpl_vars['labels']->value['testplan_copy_platforms_links'];?>

    </td>
  </tr>

  <tr>
    <td align='left'>
      <input type="checkbox" name="copy_milestones" checked="checked"/><?php echo $_smarty_tpl->tpl_vars['labels']->value['testplan_copy_milestones'];?>

    </td>
  </tr>

  
    <!--
  <input type="hidden" name="copy_platforms_links" value="1"/>
  -->
</table><?php }
}
