<? global $vis_language;?>
<div class="modal-dialog">
    <div class="modal-content">
        <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal">&times;</button>
            <h4 class="modal-title"><?  echo $vis_language['TXTCREATESUBTASK']; ?></h4>
        </div>
        <div class="modal-body">
            <div class="row">
				<form class="form-horizontal" role="form" id="vis_subtask_form" name="vis_subtask_form" method="post">
					<div class="form-group">
						<label for="vis_firstname" class="col-sm-3 control-label"><? echo $vis_language['TXTTITLE']; ?></label>
						<div class="col-sm-8">
							<input type="text" class="form-control input-sm" data-type="text" data-required="true" name="vis_task_title" id="vis_task_title">
						</div>
					</div>  
					<div class="form-group">
						<label for="taskStartdate" class="col-sm-3 control-label"><? echo $vis_language['TXTSTARTDATE']; ?></label>
						<div class="col-sm-8">
							<span class="input-group-addon no-padder no-borders start"><input class="input-sm form-control" id="vis_task_start_date" name="vis_task_start_date" size="16" type="text" placeholder="DD-MM-YYYY" ></span>
						</div>
					</div>  
					<div class="form-group">
						<label for="taskEnddate" class="col-sm-3 control-label"><? echo $vis_language['TXTENDDATE']; ?></label>
						<div class="col-sm-8">
							<span class="input-group-addon no-padder no-borders start"> <input class="input-sm form-control" id="vis_task_end_date" name="vis_task_end_date" size="16" type="text" placeholder="DD-MM-YYYY" ></span>
						</div>
					</div>  
				</form>
            </div>
        </div>
        <div class="modal-footer">	
            <a class="btn btn-default" data-dismiss="modal"><? echo $vis_language['TXTCANCEL']; ?></a>
            <a class="btn btn-primary" onclick="$(this).visExecution('submit_form',{'vis_module':'home', 'vis_operation':'add_task', 'vis_form':'vis_subtask_form', 'vis_static_area':'vis_subtask_modal' ,'vis_parent_id':'<? echo $operation['vis_task_id']; ?>'});"><? echo $vis_language['TXTCREATE']; ?></a>
        </div>
    </div>
</div>
<script>$('.start').datetimepicker({
        format: "<?php echo VIS_DATETIMEPICKER_FORMAT;?>"
	});
</script>
