Пример #1
0
<!--<fieldset>-->    

<div class="row-fluid">
    <div class="span12">
        <!-- widget button -->
        <div class="widget border-cyan" id="widget-button">

            <!-- widget header -->
            <div class="widget-header bg-cyan">
                <!-- widget title -->
                <h4 class="widget-title"><i class="aweso-user"></i> <?php 
echo Yii::t('AweCrud.app', 'Manage');
?>
 <?php 
echo ContactoElectronico::label(2);
?>
</h4>
                <!-- widget action, you can also use btn, btn-group, nav-tabs or nav-pills (also support dropdown). enjoy! -->
                <div class="widget-action">
                    <button data-toggle="collapse" data-collapse="#widget-button" class="btn">
                        <i class="aweso-chevron-up color-cyan" data-toggle-icon="aweso-chevron-down  aweso-chevron-up"></i>
                    </button>
                </div>
            </div><!-- /widget header -->
            <!-- widget content -->
            <div class="widget-content bg-white">
                <div style='overflow:auto'> 
<?php 
//$this->widget('bootstrap.widgets.TbGridView',array(
$this->widget('ext.selgridview.BootSelGridView', array('id' => 'contacto-electronico-grid', 'type' => 'striped bordered hover advance ', 'template' => '{summary}{items}{pager}', 'dataProvider' => $model->search(), 'pagerCssClass' => 'pagination text-center', 'selectableRows' => 2, 'columns' => array('id', 'email', array('name' => 'principal', 'filter' => array('SI' => 'SI', 'NO' => 'NO')), array('name' => 'estado', 'filter' => array('ACTIVO' => 'ACTIVO', 'INACTIVO' => 'INACTIVO')), array('class' => 'CButtonColumn', 'template' => '{view} {update} {delete}', 'deleteConfirmation' => CrugeTranslator::t('admin', 'Are you sure you want to delete this user'), 'buttons' => array('view' => array('label' => '<button class="btn btn-success"><i class="aweso-eye-open"></i></button>', 'options' => array('title' => Yii::t('AweCrud.app', 'View')), 'imageUrl' => false), 'update' => array('label' => '<button class="btn btn-info"><i class="aweso-pencil"></i></button>', 'options' => array('title' => Yii::t('AweCrud.app', 'Update')), 'imageUrl' => false), 'delete' => array('label' => '<button class="btn btn-danger"><i class="aweso-trash"></i></button>', 'options' => array('title' => Yii::t('AweCrud.app', 'Delete')), 'imageUrl' => false)), 'htmlOptions' => array('width' => '206px')))));
Пример #2
0
/** @var ContactoElectronicoController $this */
/** @var ContactoElectronico $model */
/** @var AweActiveForm $form */
$form = $this->beginWidget('ext.AweCrud.components.AweActiveForm', array('id' => 'contacto-electronico-form', 'type' => 'horizontal', 'enableAjaxValidation' => true, 'clientOptions' => array('validateOnSubmit' => true, 'validateOnChange' => true), 'enableClientValidation' => false));
?>
<div class = "modal-header">
    <button type = "button" class = "close" data-dismiss = "modal" aria-hidden = "true">&times;
    </button>
    <h3 id = "sampleModal1" >
        <i class="aweso-envelope "> 
            <?php 
echo $model->isNewRecord ? Yii::t('AweCrud.app', 'Create') : Yii::t('AweCrud.app', 'Update');
?>
 
            <?php 
echo ' ' . ContactoElectronico::label();
?>
            <?php 
// echo ' - Deuda Total $' . number_format($model->cltDeuda->monto, 2, '.', '')
?>
        </i>
    </h3>
</div>
<div class = "modal-body">
    <p class="note">
        <?php 
echo Yii::t('AweCrud.app', 'Fields with');
?>
 <span class="required">*</span>
        <?php 
echo Yii::t('AweCrud.app', 'are required');
Пример #3
0
<?php

/** @var ContactoElectronicoController $this */
/** @var ContactoElectronico $model */
$this->breadcrumbs = array('Contacto Electronicos' => array('index'), $model->id);
$this->header = '<i class="aweso-info-sign aweso-2x"></i> ' . Yii::t('AweCrud.app', 'View') . ' ' . ContactoElectronico::label() . ' ' . CHtml::encode($model);
$this->menu = array(array('label' => Yii::t('AweCrud.app', 'Manage'), 'icon' => 'list-alt', 'url' => array('admin')));
?>

<fieldset>
    <div class="row-fluid">
        <div class="span5">
            <!-- widget button -->
            <div class="widget border-cyan" id="widget-button">

                <!-- widget header -->
                <div class="widget-header bg-cyan">
                    <!-- widget title -->
                    <h4 class="widget-title"><i class="aweso-info"></i> Informacion General</h4>
                    <!-- widget action, you can also use btn, btn-group, nav-tabs or nav-pills (also support dropdown). enjoy! -->
                    <div class="widget-action">
                        <button data-toggle="collapse" data-collapse="#widget-button" class="btn">
                            <i class="aweso-chevron-up color-cyan" data-toggle-icon="aweso-chevron-down  aweso-chevron-up"></i>
                        </button>
                    </div>
                </div><!-- /widget header -->
                <!-- widget content -->
                <div class="widget-content bg-white">

                    <?php 
$this->widget('bootstrap.widgets.TbDetailView', array('data' => $model, 'attributes' => array('id', array('name' => 'email', 'type' => 'email'), 'principal', 'estado', array('name' => 'empleado_id', 'value' => $model->empleado !== null ? CHtml::link($model->empleado, array('/empleado/view', 'id' => $model->empleado->id)) . ' ' : null, 'type' => 'html'))));
Пример #4
0
<div class="row-fluid">
    <div class="span12">
        <!-- widget button -->
        <div class="widget border-cyan" id="widget-button">

            <!-- widget header -->
            <div class="widget-header bg-cyan">
                <!-- widget title -->
                <h4 class="widget-title"><i class="aweso-user"></i> <?php 
echo Yii::t('AweCrud.app', $model->isNewRecord ? 'Create' : 'Update') . ' ' . ContactoElectronico::label();
?>
</h4>
                <!-- widget action, you can also use btn, btn-group, nav-tabs or nav-pills (also support dropdown). enjoy! -->
                <div class="widget-action">
                    <button data-toggle="collapse" data-collapse="#widget-button" class="btn">
                        <i class="aweso-chevron-up color-cyan" data-toggle-icon="aweso-chevron-down  aweso-chevron-up"></i>
                    </button>
                </div>
            </div><!-- /widget header -->
            <div class="widget-content form bg-white">
                <?php 
/** @var ContactoElectronicoController $this */
/** @var ContactoElectronico $model */
/** @var AweActiveForm $form */
$form = $this->beginWidget('ext.AweCrud.components.AweActiveForm', array('id' => 'contacto-electronico-form', 'type' => 'horizontal', 'enableAjaxValidation' => true, 'clientOptions' => array('validateOnSubmit' => false, 'validateOnChange' => true), 'enableClientValidation' => false));
?>

                <p class="note">
                    <?php 
echo Yii::t('AweCrud.app', 'Fields with');
?>
Пример #5
0
<?php

/** @var ContactoElectronicoController $this */
/** @var ContactoElectronico $model */
$this->breadcrumbs = array($model->label(2) => array('index'), Yii::t('app', $model->id) => array('view', 'id' => $model->id), Yii::t('AweCrud.app', 'Update'));
$this->header = '<i class="aweso-pencil aweso-2x"></i> ' . Yii::t('AweCrud.app', 'Update') . ' ' . ContactoElectronico::label();
$this->menu = array(array('label' => Yii::t('AweCrud.app', 'Delete'), 'icon' => 'trash', 'url' => '#', 'linkOptions' => array('submit' => array('delete', 'id' => $model->id), 'confirm' => Yii::t('AweCrud.app', 'Are you sure you want to delete this item?'))), array('label' => Yii::t('AweCrud.app', 'Manage'), 'icon' => 'list-alt', 'url' => array('admin')));
?>

<fieldset>    
    <?php 
echo $this->renderPartial('_form', array('model' => $model));
?>
</fieldset>
Пример #6
0
<?php

/** @var ContactoElectronicoController $this */
/** @var ContactoElectronico $model */
$this->breadcrumbs = array($model->label(2) => array('index'), Yii::t('AweCrud.app', 'Create'));
$this->header = '<i class="aweso-paper-clip aweso-2x"></i> ' . Yii::t('AweCrud.app', 'Create') . ' ' . ContactoElectronico::label();
$this->menu = array(array('label' => Yii::t('AweCrud.app', 'Manage'), 'icon' => 'list-alt', 'url' => array('admin')));
?>

<fieldset>
    
    <?php 
echo $this->renderPartial('_form', array('model' => $model));
?>
</fieldset>