<h3 style="text-align: center">Aprobar orden de pago</h3>
<hr>
<div class="form">
    <table class="table table-bordered table-striped table-hover items table table-striped table-bordered table-condensed" >
        <tr class="info" >
            <td style="text-align: center"><b><?= $model->getAttributeLabel('id_tipo_orden')?></b></td>
            <td style="text-align: center"><b><?= $model->getAttributeLabel('rif')?></b></td>
            <td style="text-align: center"><b><?= $model->getAttributeLabel('razon_social')?></b></td>
            <td style="text-align: center"><b><?= $model->getAttributeLabel('monto_pago')?></b></td>
        </tr>
        <tr>
            <td style="text-align: center"><?= $model->idTipoOrden->descripcion?></td>
            <td style="text-align: center"><?= $model->rif?></td>
            <td style="text-align: center"><?= $model->razon_social?></td>
            <td style="text-align: center"><?= number_format($model->monto_pago,2,',','.')?></td>
        </tr>
        <tr class="info" >
            <td style="text-align: center" colspan="4"><b><?= $model->getAttributeLabel('descripcion')?></b></td>
        </tr>
        <tr>
            <td style="text-align: justify" colspan="4"><?= $model->descripcion?></td>
        </tr>
    </table>
    <hr>
    <?php foreach(Yii::app()->user->getFlashes() as $key => $message) {
        echo '<div class="alert alert-' . $key . '">' . $message . "</div>\n";
    } ?>
    <?php $form=$this->beginWidget('bootstrap.widgets.TbActiveForm', array(
    	'id'=>'orden-pago-aprobar-form',
    	'enableAjaxValidation'=>false,
    )); ?>
	<p class="help-block text-center">Campos con <span class="required">*</span> son requerido.</p>
    <div class="alert alert-info">
       	<div class="row">
       		<div class="span3"><h3>Informaci&oacute;n </h3></div>
       		<div class="span6">
           		<div class="row">
           		</div>
                <div class="row">
                    <?php echo CHtml::label('<strong>Fecha del pagado:</strong>',''); ?>
                    <?php $this->widget('zii.widgets.jui.CJuiDatePicker', array(
                        'model' => $modelSeguimiento,
                        'attribute' => 'fecha_registro',
                        'value' => $modelSeguimiento->fecha_registro,
                        'language' => 'es',
                        'htmlOptions' => array('readonly' => "readonly", 'class' => 'input-xlarge'),
                        'options' => array(
                            'autoSize' => true,
                            'defaultDate'=>'03-03-2011',
                            'dateFormat' => 'dd-mm-yy',
                            'buttonImage' => Yii::app()->baseUrl . '/images/calendar.png',
                            'buttonImageOnly' => true,
                            'buttonText' => 'Fecha',
                            'selectOtherMonths' => true,
                            'showAnim' => 'slide',
                            'showButtonPanel' => true,
                            'showOn' => 'button',
                            'changeMonth' => 'true',
                            'changeYear' => 'true',
                            'maxDate'=> "+0D",
                        ),
                        'htmlOptions'=>array('value'=>date('d-m-Y'))
                    )) ?>
                    <?php echo $form->error($modelSeguimiento,'fecha_registro') ;?>

                    <?php Yii::import('application.modules.contable.models.*', true); ?>
                    <?php if (ParamEscenarios::fechaComprobante(['aprobar_orden_pago' => 7])): ?>
                        <?php echo CHtml::label('<strong>Fecha del comprobante:</strong>',''); ?>
                        <?php $this->widget('zii.widgets.jui.CJuiDatePicker', array(
                            'model' => $model,
                            'attribute' => 'fecha_comprobante',
                            'value' => $model->fecha_comprobante,
                            'language' => 'es',
                            'htmlOptions' => array('readonly' => "readonly", 'class' => 'input-xlarge'),
                            'options' => array(
                                'autoSize' => true,
                                'defaultDate'=>'03-03-2011',
                                'dateFormat' => 'dd-mm-yy',
                                'buttonImage' => Yii::app()->baseUrl . '/images/calendar.png',
                                'buttonImageOnly' => true,
                                'buttonText' => 'Fecha',
                                'selectOtherMonths' => true,
                                'showAnim' => 'slide',
                                'showButtonPanel' => true,
                                'showOn' => 'button',
                                'changeMonth' => 'true',
                                'changeYear' => 'true',
                                'maxDate'=> "+0D",
                            ),
                            'htmlOptions'=>array('value'=>date('d-m-Y'))
                        )) ?>
                    <?php endif ?>
                </div>
               <div class="row">
                   <?php echo $form->textareaRow($modelSeguimiento,'observacion', array('style'=>'width: 100%;')); ?>
               </div>
       		</div>
       </div>
    </div>
    <hr>
	<div class="row buttons text-right">
		<?php
        $this->widget('bootstrap.widgets.TbButton', array(
            'type' => 'success',
            'buttonType' => 'submit',
            'id' => 'btn_registrar',
            'icon' => 'icon-ok',
            'label' => 'Aprobar solicitud',
        ));?>&nbsp;
        <?php $this->widget('bootstrap.widgets.TbButton', array(
            'type' => 'danger',
            'buttonType' => 'submit',
            'id' => 'btn_registrar',
            'label' => 'Denegar solicitud',
            'icon' => 'icon-remove',
        ));?>
        &nbsp;
        <?php $this->widget('bootstrap.widgets.TbButton', array(
            'type' => 'info',
            'id' => 'btn_registrar',
            'label' => 'Regresar',
            'icon' => 'icon-circle-arrow-left',
            'url' => Yii::app()->createUrl('pagos/ordenPago/admin'),
        ));?>
	</div>
<?php $this->endWidget(); ?>
