<?php
$botoes = '{vincular}';

$this->PageTitle = false;
$this->renderPartial('_menu', array('model' => $model, 'active' => 'atividades', 'resposta' => $resposta));
?>

<div id="div-atividades">
    <h1>Interessados &raquo; Atividades &raquo; <?php echo $model->INT_EMPRESA; ?></h1>
    <div class="">
        <div class="portlet" id="yw2">
            <div class="portlet-content">
                <ul id="yw3">
                    <?php if ($model->canAddActivity()) { ?>
                        <li><a href="<?php echo Yii::app()->createUrl("atendimentos/atividadeInteressado", array('id'=>$model->INT_CODIGO)); ?>" id="adicionar-novo"><?php echo FaHtml::iconNovo(); ?></a></li>
                    <?php } ?>
                    <li><a class="search-button" href="#"><?php echo FaHtml::iconSetaClose(); ?></a></li>
                    <li><a onclick="reloadFrame();" class="refresh-button" href="javascript:void(0);"><?php echo FaHtml::iconRefresh(); ?></a></li>
                </ul>
            </div>
        </div>
    </div>
    <?php
        $this->renderPartial('_search_atividades', array(
            'model' => $model,
            'modelAtendimento' => $modelAtendimento,
        ));

        $this->widget('zii.widgets.CListView', array(
            'dataProvider' => $dataProvider,
            'itemView' => "../atendimentos/_interessados_view",
            'template'=>"{summary}{pager}{items}\n{summary}{pager}",
            'id'=>'subscriptionDiv',
        ));
    ?>
</div>
<!-- <div class="clearfix"></div> -->
<?php
$this->renderPartial('_view', array('model' => $model));

$cs = Yii::app()->clientScript;
$css = <<<CSS
    .empty {
        float: left;
    }
CSS;

$cs->registerCss('interessados_atividades', $css);
?>

