Exemplo n.º 1
0
<?php

/**
 *  _   __ __ _____ _____ ___  ____  _____
 * | | / // // ___//_  _//   ||  __||_   _|
 * | |/ // /(__  )  / / / /| || |     | |
 * |___//_//____/  /_/ /_/ |_||_|     |_|
 * @link http://vistart.name/
 * @copyright Copyright (c) 2016 vistart
 * @license http://vistart.name/license/
 */
use yii\bootstrap\Button;
use rho_my\modules\v1\controllers\ImController;
?>
<div class="panel-heading">
    <strong><?php 
echo Yii::t('my', 'IM');
?>
</strong>
    <div class="pull-right">
    	<?php 
echo Button::widget(['label' => '<span class="glyphicon glyphicon-plus"></span> ' . 'Add', 'encodeLabel' => false, 'options' => ['class' => 'btn-success', 'data-toggle' => 'modal', 'data-target' => '#modal-new']]);
?>
    </div>
</div>
<?php 
echo \rho_my\widgets\item\FormWidget::widget(['model' => $newModel, 'action' => ImController::getRouteNew()]);
Exemplo n.º 2
0
<?php

/**
 *  _   __ __ _____ _____ ___  ____  _____
 * | | / // // ___//_  _//   ||  __||_   _|
 * | |/ // /(__  )  / / / /| || |     | |
 * |___//_//____/  /_/ /_/ |_||_|     |_|
 * @link http://vistart.name/
 * @copyright Copyright (c) 2016 vistart
 * @license http://vistart.name/license/
 */
use rho_my\modules\v1\controllers\ImController as ic;
use rho_my\widgets\item\ItemListWidget as il;
/* @var $list rho_my\widgets\item\ItemListWidget */
echo il::widget(['getItemUrl' => ic::getRouteList(), 'getCountUrl' => ic::getRoutePageCount()]);