<? global $vis_language; 
$class='';$attached_id='';?>
<div  class="wrapper-sm m-b-none m-t">
	<?php if($total_problem>0){
			for($i=0;$i<$total_problem;$i++){?>
				<div class="row">
					<div class="col-sm-4 m-t-xs">
						<span class="m-l-sm"><a class="link m-l-xs" href="#/problem/problems_details/<? echo $attached_problem[$i]['problem_hash'];?>/<? echo $attached_problem[$i]['problem_id'];?>" title=""><? echo $attached_problem[$i]['problem_hash'];?></a></span>
						<span class="m-l-sm"><? echo $attached_problem[$i]['problem_name'];?></span>
					</div>
					<div class="col-sm-3 m-t-xs">
						<span class="m-l-sm"><? echo $attached_problem[$i]['domain_name'].' : '.$attached_problem[$i]['department_name'];?></span>
					</div>
					<div class="col-sm-2 m-t-xs">
					   <label><? echo $vis_language['TXTSTATUS']; ?></label>
					   <span class="m-l-sm"><? echo $attached_problem[$i]['status_name'];?></span>
					</div>
					<div class="col-sm-1 m-t-xs pull-right">
						<label><a class="text-muted link" href="javascript:void(0);" data-toggle="ajaxModal" data-modal-arguments="vis_module=problem&vis_operation=confirm_detach_ci&vis_attach_type=2&vis_child_id=<? echo $changes_details['changes_id'];?>&vis_detach_for=changes_ticket&vis_parent_id=<? echo $attached_problem[$i]['problem_id'];?>" title="<? echo $vis_language['TXTITILDETACH']; ?>"><?= $vis_language['TXTITILDETACH'];?></a></label>
					</div>	
				</div>
			<?php
				$attached_id .=$attached_problem[$i]['problem_id'].',';
			}
		}?>
		<div class="row">
			<div class="col-sm-12 m-t-xs">
				<?php if($total_problem==0){ $class="m-l-sm";?><label><? echo  $vis_language['TXTNOPROBLEMATTACHED'];?></label><?php }?>
				<span class="<?php echo $class;?>"><a class="link"  href="javascript:void(0);" data-toggle="ajaxModal" data-modal-arguments="vis_module=changes&vis_operation=attach_problem&ci_for=changes&vis_changes_id=<? echo $changes_details['changes_id'];?>&vis_domain_id=<? echo $changes_details['domain_id'];?>&attached_id=<?php echo $attached_id;?>" title="<? echo $vis_language['TXTLINKPROBLEM']; ?>"><?= $vis_language['TXTLINKPROBLEM'];?></a></span>
			</div>	
		</div>
</div>