function content_5694a3581fc1b($_smarty_tpl)
    {
        ?>
<link href='//fonts.googleapis.com/css?family=Source+Code+Pro' rel='stylesheet' type='text/css'>

<div class="TaskConfigContainer">
    <div id="pageOverlay" onclick="closePageOverlay();" style='cursor:url("modules/Workflow2/icons/cross-button.png"), auto;position:fixed;z-index:20000;top:0;left:0;display:none;height:100%;width:100%;background-image:url("modules/Workflow2/icons/modal.png");'><div id='pageOverlayContent' style='position:fixed;cursor:default;top:100px;margin:auto;left:50%;padding:10px;background-color:#ffffff;'>&nbsp;</div></div>
		<form method="POST" action="#" onsubmit="return checkForm();" id="mainTaskForm" name="mainTaskForm" accept-charset="UTF-8" enctype="multipart/form-data">
            <?php 
        echo $_smarty_tpl->tpl_vars['csrf']->value;
        ?>


			<input type="hidden" id="save_workflow_id" name="editID" value="<?php 
        echo $_smarty_tpl->tpl_vars['DATA']->value['id'];
        ?>
">

            <div id="fixedHeader">
			<table class="tableHeading" id="ConfigHeadline" width="100%" border="0" cellspacing="0" cellpadding="5">
				<tr>
					<td class="big blockHeader" nowrap="nowrap">
						<strong><?php 
        echo $_smarty_tpl->tpl_vars['MOD']->value['LBL_ZUSAMMENFASSUNG'];
        ?>
</strong>
					</td>
					<td class="small buttonbar blockHeader" align="right" style="padding:5px 5px 10px 10px;">
                        <?php 
        if ($_smarty_tpl->tpl_vars['helpUrl']->value != '') {
            ?>
                        <div class="buttonbar inline" style="margin-right:50px;">
                            <input type="button" onclick="window.open('<?php 
            echo $_smarty_tpl->tpl_vars['helpUrl']->value;
            ?>
');" name="help_page" class="btn green" value="<?php 
            echo vtranslate("LBL_DOCUMENTATION", "Settings:Workflow2");
            ?>
" id="help_page">
                        </div>
                        <?php 
        }
        ?>
                        <?php 
        if ($_smarty_tpl->tpl_vars['DATA']->value['type'] != "start") {
            ?>
                        <div class="buttonbar inline" style="margin-right:10px;">
                            <input type="button" id="edittask_duplicate_button" onclick="duplicateBlock(<?php 
            echo $_smarty_tpl->tpl_vars['block_id']->value;
            ?>
);" class="btn" value="<?php 
            echo vtranslate("LBL_DUPLICATE_BLOCK", "Settings:Workflow2");
            ?>
">
                            <input type="button" id="edittask_remove_button" onclick="removeBlock(<?php 
            echo $_smarty_tpl->tpl_vars['block_id']->value;
            ?>
);" class="btn" value="<?php 
            echo vtranslate("LBL_DELETE_BLOCK", "Settings:Workflow2");
            ?>
">
                        </div>
                        <?php 
        }
        ?>
                        <div class="buttonbar inline">
                            <input type="submit" name="save" class="btn green" value="<?php 
        echo vtranslate("LBL_SAVE", "Settings:Workflow2");
        ?>
" id="save">
                            <input type="button" onclick="window.close();" id="edittask_cancel_button" class="btn" value="<?php 
        echo vtranslate("LBL_CLOSE", "Settings:Workflow2");
        ?>
">
                        </div>
					</td>
				</tr>
			</table>
            </div>
        <?php 
        $_smarty_tpl->tpl_vars['message'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['message']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['hint']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['message']->key => $_smarty_tpl->tpl_vars['message']->value) {
            $_smarty_tpl->tpl_vars['message']->_loop = true;
            ?>
            <?php 
            if ($_smarty_tpl->tpl_vars['message']->value != '') {
                ?>
                <div style='background-color:#fed22f;padding:5px;text-align:center;'><?php 
                echo $_smarty_tpl->tpl_vars['message']->value;
                ?>
</div>
            <?php 
            }
            ?>
        <?php 
        }
        ?>
		<table border="0" cellpadding="5" cellspacing="0" width="100%" class="newTable">
            <?php 
        if ($_smarty_tpl->tpl_vars['DATA']->value['type'] != "start") {
            ?>
			<tr>
				<td class="dvtCellLabel" align=right width=15% nowrap="nowrap"><b><font color="red">*</font> <?php 
            echo vtranslate("LBL_AUFGABENBEZEICHNUNG", "Settings:Workflow2");
            ?>
</b></td>
				<td class="dvtCellInfo" align="left" ><input type="text" class="detailedViewTextBox textfield taskTitle" name="taskSettings[text]" onblur="saveTaskText(this.value);" value="<?php 
            echo htmlentities($_smarty_tpl->tpl_vars['DATA']->value['text']);
            ?>
" id="task_text">&nbsp;<img src='modules/Workflow2/icons/save-indicator.gif' style="display:none;margin-left:5px;margin-bottom:-5px;" id="text_save_indicator"></td>
			</tr>
            <?php 
        }
        ?>
			<tr>
				<td class="dvtCellLabel" align=right width=15% nowrap="nowrap"><b><?php 
        echo vtranslate("LBL_STATUS", "Settings:Workflow2");
        ?>
</b></td>
				<td class="dvtCellInfo" align="left">
					<select name="active" class="small chzn-select-nosearch" id="taskSelectActive" style="width:100px;">
						<option value="true"><?php 
        echo vtranslate("LBL_ACTIVE", "Settings:Workflow2");
        ?>
</option>
						<option value="false" <?php 
        if ($_smarty_tpl->tpl_vars['DATA']->value['active'] == "0") {
            ?>
selected='selected'<?php 
        }
        ?>
><?php 
        echo vtranslate("LBL_INACTIVE", "Settings:Workflow2");
        ?>
</option>
					</select> <?php 
        echo \Workflow\VtUtils::Smarty_HelpURL(array('url' => "workflowdesigner:tasks", 'height' => 28), $_smarty_tpl);
        ?>

				</td>
			</tr>
		</table>

	<script src="modules/Workflow2/resources/jquery.timepicker.js" type="text/javascript" charset="utf-8"></script>

	<script src="modules/Workflow2/resources/functional.js" type="text/javascript" charset="utf-8"></script>
	<script src="modules/Workflow2/resources/VTUtils.js" type="text/javascript" charset="utf-8"></script>
	<script src="modules/Workflow2/resources/json2.js" type="text/javascript" charset="utf-8"></script>
	<script src="modules/Workflow2/resources/fieldvalidator.js" type="text/javascript" charset="utf-8"></script>
	<script src="modules/Workflow2/resources/edittaskscript.js?v=<?php 
        echo @WORKFLOW2_VERSION;
        ?>
" type="text/javascript" charset="utf-8"></script>
    <script src="modules/Workflow2/resources/vtigerwebservices.js" type="text/javascript" charset="utf-8"></script>
    <script src="libraries/jquery/jquery_windowmsg.js?&v=6.0.0" type="text/javascript" charset="utf-8"></script>
    <script type="text/javascript" src="modules/Workflow2/views/resources/js/complexecondition.js?v=<?php 
        echo $_smarty_tpl->tpl_vars['CURRENT_VERSION']->value;
        ?>
"></script>
    <script type="text/javascript" src="modules/Workflow2/views/resources/js/jquery.form.min.js?v=<?php 
        echo $_smarty_tpl->tpl_vars['CURRENT_VERSION']->value;
        ?>
"></script>
    <script type="text/javascript" src="modules/Settings/Workflow2/views/resources/ConditionPopup.js?v=<?php 
        echo $_smarty_tpl->tpl_vars['CURRENT_VERSION']->value;
        ?>
"></script>

	<script type="text/javascript" charset="utf-8">

		var returnUrl = '/index.php?module=Workflow2&action=Workflow2Ajax&file=configBlock&id=<?php 
        echo $_smarty_tpl->tpl_vars['DATA']->value['id'];
        ?>
';
		var validator;
		edittaskscript(jQuery);
        function handleError(fn){
        	return function(status, result){
        		if(status){
        			fn(result);
        		} else {
        		    // alert('Failure:'+result);
                    wsFields = {};
        		}
        	};
        }
        function initChosen() {
            jQuery(".chzn-select").chosen();
            
            jQuery(".chzn-select-nosearch").chosen({disable_search_threshold: 20});
        }

        function saveTaskText(text) {
            jQuery("#text_save_indicator").show();
            jQuery.post("index.php?module=Workflow2&parent=Settings&action=TaskSaveTitle", { ajaxaction:'setTaskText', block_id:'<?php 
        echo $_smarty_tpl->tpl_vars['block_id']->value;
        ?>
', text:text}, function() {
                jQuery("#text_save_indicator").hide();
            });
        }

        jQuery(function() {
            initChosen();


    jQuery(document).keydown(function(e) {
               if ( (e.which == '115' || e.which == '83' ) && (e.ctrlKey || e.metaKey) )
               {
                   e.preventDefault();
                   jQuery("#mainTaskForm").trigger("submit");
                   return false;
               }
               else
               {
                   return true;
               }
           });
        });

	</script>
	<script type="text/javascript">
        var moduleName = '<?php 
        echo $_smarty_tpl->tpl_vars['workflow_module_name']->value;
        ?>
';
	</script>
    <script type="text/javascript">
        var MOD = <?php 
        echo json_encode($_smarty_tpl->tpl_vars['MOD']->value);
        ?>
;
    </script>
    <script type="text/javascript">
        var oldTask = <?php 
        echo json_encode($_smarty_tpl->tpl_vars['task']->value);
        ?>
;
    </script>
    <script type="text/javascript">
        /** For various field **/
        var dateFormat = '<?php 
        echo $_smarty_tpl->tpl_vars['current_user']->value['date_format'];
        ?>
';
        var workflowID = <?php 
        echo $_smarty_tpl->tpl_vars['workflowID']->value;
        ?>
;
        var workflowModuleName = moduleName;
    </script>
    <script type="text/javascript">
        <?php 
        echo $_smarty_tpl->tpl_vars['additionalInlineJS']->value;
        ?>

    </script>
    <?php 
        if (count($_smarty_tpl->tpl_vars['envSettings']->value) > 0) {
            ?>
    <div id="contEnvironmental" style="display:none;">
        <table class="tableHeading" border="0"  width="100%" cellspacing="0" cellpadding="5">
            <tr>
                <td class="big blockHeader" nowrap="nowrap">
                    <strong><?php 
            echo vtranslate('LBL_ENVIRONMENTAL_VARS_HEAD', 'Settings:Workflow2');
            ?>
</strong>
                </td>
            </tr>
        </table>
        <p style="font-style:italic;margin: 10px;">
          <?php 
            echo $_smarty_tpl->tpl_vars['MOD']->value['LBL_ENVIRONMENTAL_DESCRIPTION'];
            ?>

        </p>
        <table border="0" cellpadding="5" cellspacing="0" width="100%" class="small newTable">
            <?php 
            $_smarty_tpl->tpl_vars['value'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['value']->_loop = false;
            $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable();
            $_from = $_smarty_tpl->tpl_vars['envSettings']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['value']->key => $_smarty_tpl->tpl_vars['value']->value) {
                $_smarty_tpl->tpl_vars['value']->_loop = true;
                $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['value']->key;
                ?>
            <tr>
                <td class='dvtCellLabel' align="right" width=15% nowrap="nowrap"><?php 
                echo $_smarty_tpl->tpl_vars['value']->value;
                ?>
</td>
                <td class='dvtCellInfo'><input type="text" name="task[env][<?php 
                echo $_smarty_tpl->tpl_vars['key']->value;
                ?>
]" value="<?php 
                echo $_smarty_tpl->tpl_vars['task']->value['env'][$_smarty_tpl->tpl_vars['key']->value];
                ?>
" class="form_input textfield" style='margin-right:10px;float:left;width: 250px;'></td>
            </tr>
            <?php 
            }
            ?>
        </table>
    </div>
    <?php 
        }
        ?>
		<table class="tableHeading" border="0"  width="100%" cellspacing="0" cellpadding="5">
			<tr>
				<td class="big blockHeader" nowrap="nowrap">
                <?php 
        if (count($_smarty_tpl->tpl_vars['envSettings']->value) > 0) {
            ?>
<a style="float:right;" href="#" onclick="jQuery('#contEnvironmental').slideToggle('fast');return false;"><?php 
            echo $_smarty_tpl->tpl_vars['MOD']->value['LBL_ENVIRONMENTAL_VARS_HEAD'];
            ?>
</a><?php 
        }
        ?>
                    <strong><?php 
        echo $_smarty_tpl->tpl_vars['MOD']->value['LBL_AUSGABENBEZEICHNUNG'];
        ?>
</strong>
				</td>
			</tr>
		</table>
			<?php 
        echo $_smarty_tpl->tpl_vars['CONTENT']->value;
        ?>

		</form>
</div><?php 
    }