 <? global $vis_language;?>
<form class="form-horizontal" method="post" enctype="multipart/form-data" name="vis_new_ticket_form" id="vis_ticket_post_content_form_<? echo $problems_details['problem_id']; ?>">
	<div class="form-group">
		<div class="col-sm-12">
			<textarea name="vis_problem_desc" id="vis_problem_desc_<? echo $problems_details['problem_id']; ?>" class="form-control"><? echo stripslashes($problems_details['description']); ?></textarea>
		</div>
	</div>
	<div class="form-group">
		<div class="col-sm-12">		    
			<input name="vis_problem_id" type="hidden" value="<? echo $problems_details['problem_id']; ?>" />
			<span class="btn btn-default" onclick="$('#vis_ticket_post_content_text_<? echo $problems_details['problem_id']; ?>').show(); $('#vis_ticket_post_content_edit_<? echo $problems_details['problem_id']; ?>').hide();"><? echo $vis_language['TXTDISCARD']; ?></span>
			<span class="btn btn-primary m-l-xs" onclick="$(this).visExecution('submit_form',{'vis_module':'problem', 'vis_operation':'update_problem_description', 'vis_form':'vis_ticket_post_content_form_<? echo $problems_details['problem_id']; ?>'});"><? echo $vis_language['TXTUPDATE']; ?></span>
        </div>
    </div>
</form>
<script>
$('#vis_ticket_post_content_text_<? echo $problems_details['problem_id']; ?>').hide();
<? if(!defined('VIS_HTML_EDITOR') || VIS_HTML_EDITOR==1) { ?>    
	$(function(){
		$('#vis_problem_desc_<? echo $problems_details['problem_id']; ?>').redactor({
			buttonSource: true,
			minHeight: 180, // pixels
			maxHeight: 180,
			imageUpload: "index.php?vis_tmpst="+new Date().getTime()+"&vis_module=ticket&vis_operation=upload_file&vis_static_area=editor_image_upload",
			imageUploadParam: 'files',            
			focus: true,
			plugins: ['source']
		});
	});
<? } ?>
</script>
