<? 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['TXTJIRA']; ?></h4>
      </div>
      <div class="modal-body">
         <div class="row">
            <div class="col-sm-12">
               <section class="scrollable wrapper">
                  <!--<header class="panel-heading text-right bg-light clearfix">
                     <ul class="nav nav-tabs pull-left no-borders" id="tabs">
                     	<li  id="jira_issue" class="active"><a href="#vis_details_list" data-toggle="tab" oncontextmenu="return false;" onclick="$('#vis_details_list').visExecution('load_operations',{'vis_module':'ticket', 'vis_operation':'jira_issue','vis_domain':'<?php echo $operation['vis_domain']; ?>','vis_ticketid':'<?=$operation['vis_ticketid']?>'});"><?php echo 'Issues'; ?></a></li>
                        <li  id="create_jira_issue"><a href="#vis_details_list" data-toggle="tab" oncontextmenu="return false;" onclick="$('#vis_details_list').visExecution('load_operations',{'vis_module':'ticket', 'vis_operation':'get_jira_create_issue','vis_domain':'<?php echo $operation['vis_domain']; ?>','vis_ticketid':'<?=$operation['vis_ticketid']?>'});"><?php echo $vis_language['TXTCREATEISSUE']; ?></a></li>
                     </ul>
                  </header-->
                  <div id="vis_details_list">
                  <? if($jira_link_detail==-1){?>
                  <div id="link_div">
                      <div class="col-sm-12 text-center"><a class="link" href="javascript:void(0);" onclick="get_jira_issue();"><?php echo $vis_language['TXTLINKISSUE']; ?></a> <?php echo $vis_language['TXTOR']; ?> <a class="link" href="javascript:void(0);" onclick="get_create_issue();"><?php echo $vis_language['TXTCREATEISSUE']; ?></a></div>  
                  </div>
                  <? }else{?>
                  <script>$('#vis_details_list').visExecution('load_operations',{'vis_module':'ticket', 'vis_operation':'jira_issue','vis_domain':'<?php echo $operation['vis_domain']; ?>','vis_ticketid':'<?=$operation['vis_ticketid']?>'});</script>
                  <? }?>
                     <!--<div class="tab-content">
                        <div class="tab-pane active" id="vis_details_list">-->
                          <!-- <script language="javascript">
                              $('#vis_details_list').visExecution('load_operations',{'vis_module':'ticket', 'vis_operation':'jira_issue','vis_domain':'<?php echo $operation['vis_domain']; ?>','vis_ticketid':'<?=$operation['vis_ticketid']?>'});
                           </script>-->
                       <!-- </div>
                     </div>-->
                  </div>
               </section>
            </div>
         </div>
      </div>      
   </div>
</div>
<script>
function get_jira_issue(){
  $('#vis_details_list').visExecution('load_operations',{'vis_module':'ticket', 'vis_operation':'jira_issue','vis_domain':'<?php echo $operation['vis_domain']; ?>','vis_ticketid':'<?=$operation['vis_ticketid']?>'});
}
function get_create_issue(){
	$('#vis_details_list').visExecution('load_operations',{'vis_module':'ticket', 'vis_operation':'get_jira_create_issue','vis_domain':'<?php echo $operation['vis_domain']; ?>','vis_ticketid':'<?=$operation['vis_ticketid']?>'});
}
</script>