Beispiel #1
0
<?php

/** @var DireccionController $this */
/** @var Direccion $model */
$this->breadcrumbs = array('Direccions');
$this->menu = array(array('label' => Yii::t('AweCrud.app', 'Create') . ' ' . Direccion::label(), 'icon' => 'plus', 'url' => array('create')), array('label' => Yii::t('AweCrud.app', 'Manage'), 'icon' => 'list-alt', 'url' => array('admin')));
?>

<fieldset>
    <legend>
        <?php 
echo Yii::t('AweCrud.app', 'List');
?>
 <?php 
echo Direccion::label(2);
?>
    </legend>

<?php 
$this->widget('bootstrap.widgets.TbListView', array('dataProvider' => $dataProvider, 'itemView' => '_view'));
?>
</fieldset>
Beispiel #2
0
<?php

/** @var DireccionController $this */
/** @var Direccion $model */
$this->breadcrumbs = array('Direccions' => array('index'), $model->id);
$this->header = '<i class="aweso-info-sign aweso-2x"></i> ' . Yii::t('AweCrud.app', 'View') . ' ' . Direccion::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', 'codigo_postal', 'calle_1', 'calle_2', 'referencia', array('name' => 'sector_id', 'value' => $model->sector !== null ? CHtml::link($model->sector, array('/sector/view', 'id' => $model->sector->id)) . ' ' : null, 'type' => 'html'), array('name' => 'ciudad_id', 'value' => $model->ciudad !== null ? CHtml::link($model->ciudad, array('/ciudad/view', 'id' => $model->ciudad->id)) . ' ' : null, 'type' => 'html'))));
Beispiel #3
0
<?php

/** @var DireccionController $this */
/** @var Direccion $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') . ' ' . Direccion::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>
Beispiel #4
0
<?php

/** @var DireccionController $this */
/** @var Direccion $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') . ' ' . Direccion::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>
Beispiel #5
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') . ' ' . Direccion::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 DireccionController $this */
/** @var Direccion $model */
/** @var AweActiveForm $form */
$form = $this->beginWidget('ext.AweCrud.components.AweActiveForm', array('id' => 'direccion-form', 'type' => 'horizontal', 'enableAjaxValidation' => true, 'clientOptions' => array('validateOnSubmit' => false, 'validateOnChange' => true), 'enableClientValidation' => false));
?>

                <p class="note">
                    <?php 
echo Yii::t('AweCrud.app', 'Fields with');