<h1>Obsevaciones del Documento</h1>
<div>

<?php $this->widget('bootstrap.widgets.TbGridView', array(
	'type'=>'striped bordered condensed',
	'id'=>'observacion-grid',
	'dataProvider'=>$model->search(),
	'filter'=>$model,
	'columns'=>array(		
		'obs_titulo',
		'obs_descripcion',
		'obs_fecha',		
		array(
									'header'=>'Descargar',
									'class'=>'bootstrap.widgets.TbButtonColumn',
									'template'=>'{add}',
									'buttons'=>array
									(
										'add' => array
										(											
										'label'=>CHtml::image(Yii::app()->request->baseUrl."/images/descarga-icon.png"),									
										'url'=>'Yii::app()->createUrl("documento/Download", array("name"=>$data->obs_ruta))',	
										 'visible' => '$data->obs_ruta != null',									
										),													
									),
										'htmlOptions'=>array(
										'style'=>'width: 20px',
															),
									),			
		/*
		'obs_codigo',
		'obs_ruta',
		'doc_codigo',
		'revisar_codigo',
		
		array(
			'class'=>'CButtonColumn',
		),*/
	),
)); ?>
</div>
<div class="span7">
               <a href="http://172.17.123.45/gestor_documental/tesis/index.php?r=documento/admin">
                  <img src="http://172.17.123.45/gestor_documental/tesis/images/volver.png" 
                  onmouseover="this.src='http://172.17.123.45/gestor_documental/tesis/images/volver-h.png';" 
                  onmouseout="this.src='http://172.17.123.45/gestor_documental/tesis/images/volver.png';" />
               </a>            
</div>