Skip to content

Commit

Permalink
fix: added active/deactive code removed by error during refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
fmancardi committed Apr 30, 2020
1 parent 9600fcb commit 788b94a
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion gui/templates/tl-classic/testcases/tcView_viewer.tpl
Expand Up @@ -260,8 +260,31 @@ viewer for test case in test specification
{/if}
{/if}

{* activate/desactivate TC version *}
{if $args_can_do->edit == "yes"
&& $args_can_do->deactivate=='yes'
&& $args_frozen_version=="no"}

{$act_deact_btn="activate_this_tcversion"}
{$act_deact_value="activate_this_tcversion"}
{$version_title_class="inactivate_version"}

{if $args_testcase.active eq 1}
{$prex = "de"}
{$act_deact_btn = "$prex$act_deact_btn"}
{$act_deact_value = "$prex$act_deact_value"}
{$version_title_class = "activate_version"}
{/if}

<input type="submit" name="{$act_deact_btn}"
value="{lang_get s=$act_deact_value}" />
{/if}



{* freeze/unfreeze TC version *}
{if 'editOnExec' != $gui->show_mode && $args_read_only != "yes"
{if 'editOnExec' != $gui->show_mode
&& $args_read_only != "yes"
&& $args_can_do->freeze=='yes'}
{if $args_frozen_version=="yes"}
{$freeze_btn="unfreeze"}
Expand Down

0 comments on commit 788b94a

Please sign in to comment.