<?php
$this->PageTitle = false;

$this->renderPartial('/solicitacoes/_cabecalho', array('model' => $model));

$this->widget('zii.widgets.CListView', array(
    'dataProvider' => $commits->search(),
    'itemView' => '../commits/_view'
    )
);

$cs = Yii::app()->getClientScript();

$css = <<<CSS
    #yw0 {
        margin-top: 0!important;
        width: 99%!important;
    }
    h1.titulos-pendencias {
        margin: 40px 0 0px 0;
        display: block;
    }
    .print  {
        display: none;
    }
    .commit-title {
        padding-right: 10px;
    }
    .list-inline {
        position: absolute;
        right: 50px;
        margin-top: -25px;
    }
    .list-inline li {
        display: inline;
        margin-left: 10px;
    }
    .info-cliente.atendimentos legend {
        font-size: 12px;
        line-height: 16px;
        margin-bottom: 0px;
        color: #333;
        padding: 10px 0;
        text-indent: 5px;
        display: block;
        position: absolute;
        margin-top: -35px;
    }
    .info-cliente {
        margin-bottom: 15px;
        background: rgba(167, 203, 220, 0.32);
        -webkit-border-radius: 3px;
        -moz-border-radius: 3px;
        border-radius: 3px;
        border: 1px solid #DCEDF1;
        padding-top: 35px;
    }
    .list-view {
        margin-top:  0;
    }
CSS;
$cs->registerCss('commits_solicitacoes_css', $css);

$cssPrint = <<<CSS
    #ajuda, img, #divLeftFrameSwitcher, .portlet, h1{
        display:none;
    }
    .print {
        display: block;
    }
    h1 {
        padding-top: 10px;
        width: 100%;
    }
    table {
        page-break-before: auto;
        page-break-after: auto;
        page-break-inside: avoid;
    }
    td {
        border-collapse: 0;
        border-bottom: 1px solid gray!important;
    }
    .solicitacoes-view {
        border-top: 2px solid black;
    }
CSS;
$cs->registerCss('commits_solicitacoes_css_print', $cssPrint, 'print');
