<? 	global $vis_language; 
	$class='';
	$attached_id='';
?>
<div  class="wrapper-sm m-b-none m-t">
	<?php if($total_changes>0){ 
			for($i=0;$i<$total_changes;$i++){?>
				<div class="row">
					<div class="col-sm-4 m-t-xs">
						<span class="m-l-sm"><a class="link m-l-xs" href="#/changes/changes_details/<? echo $attached_changes[$i]['changes_hash'];?>/<? echo $attached_changes[$i]['changes_id'];?>" title=""><? echo $attached_changes[$i]['changes_hash'];?></a></span>
						<span class="m-l-sm"><? echo $attached_changes[$i]['changes_name'];?></span>
					</div>
					<div class="col-sm-3 m-t-xs">
						<span class="m-l-sm"><? echo $attached_changes[$i]['domain_name'].' : '.$attached_changes[$i]['department_name'];?></span>
					</div>
					<div class="col-sm-3 m-t-xs">
					   <label><? echo $vis_language['TXTSTATUS']; ?></label>
					   <span class="m-l-sm"><? echo $attached_changes[$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=releases&vis_operation=confirm_detach_ci&vis_attach_type=3&vis_parent_id=<? echo $attached_changes[$i]['changes_id'];?>&vis_detach_for=release&vis_child_id=<? echo $releases_details['release_id'];?>" title="<? echo $vis_language['TXTITILDETACH']; ?>"><?= $vis_language['TXTITILDETACH'];?></a></label>
					</div>	
				</div>
		<?php $attached_id .=$attached_changes[$i]['changes_id'].',';
			}
		}?>
		<div class="row">
			<div class="col-sm-12 m-t-xs">
				<?php if($total_changes==0){ $class="m-l-sm";?><label><? echo  $vis_language['TXTNOCHANGESATTACHED'];?></label><?php }?>
				<span class="m-l-sm"><a class="link"  href="javascript:void(0);" data-toggle="ajaxModal" data-modal-arguments="vis_module=releases&vis_operation=attach_changes_to_release&ci_for=release&vis_release_id=<? echo $releases_details['release_id'];?>&vis_domain_id=<? echo $releases_details['domain_id'];?>&attached_id=<?php echo $attached_id;?>" title="<? echo $vis_language['TXTITILLINKCHANGES']; ?>"><?= $vis_language['TXTITILLINKCHANGES'];?></a></span>
			</div>	
		</div>
</div>