$this->params['breadcrumbs'][] = $this->title; ?> <style> #tabular-input input{ text-align: right; } </style> <div class="col-lg-12 price-create"> <?php echo Html::beginForm('', '', ['id' => 'price-form']); ?> <?php echo Html::errorSummary($products); ?> <?php echo Toolbar::widget(['items' => [['label' => 'Save', 'icon' => 'fa fa-save', 'linkOptions' => ['class' => 'btn btn-warning btn-sm', 'id' => 'save']]]]); ?> <?php echo ActionToolbar::widget(['items' => [['label' => 'Create', 'url' => ['create'], 'icon' => 'fa fa-plus-square'], ['label' => 'Purchase List', 'url' => ['index'], 'icon' => 'fa fa-list'], ['linkOptions' => ['class' => 'divider']], ['label' => 'Others', 'icon' => 'fa fa-check']]]); ?> <div class="box box-info"> <div class="box-body"> <?php echo Html::textInput('number', $purchase->number); ?> <?php echo Html::textInput('nmSupplier', $purchase->nmSupplier); ?> </div> </div>
use yii\helpers\Html; use yii\grid\GridView; use yii\widgets\Pjax; use app\components\Toolbar; /* @var $this yii\web\View */ /* @var $dataProvider yii\data\ActiveDataProvider */ /* @var $searchModel mdm\admin\models\searchs\Menu */ $this->title = 'Menus'; $this->params['breadcrumbs'][] = $this->title; ?> <div class="col-lg-12 menu-index"> <?php // echo $this->render('_search', ['model' => $searchModel]); ?> <?php echo Toolbar::widget(['items' => [['label' => 'Create', 'url' => ['create'], 'icon' => 'fa fa-plus-square', 'linkOptions' => ['class' => 'btn btn-success btn-sm']]]]); ?> <div class="box box-info"> <div class="box-body no-padding"> <?php Pjax::begin(['formSelector' => 'form', 'enablePushState' => false]); echo GridView::widget(['dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'layout' => "{items}\n{pager}", 'tableOptions' => ['class' => 'table table-striped'], 'columns' => [['class' => 'yii\\grid\\SerialColumn'], ['attribute' => 'menuParent.name', 'filter' => Html::activeTextInput($searchModel, 'parent_name', ['class' => 'form-control', 'id' => null]), 'label' => 'Parent'], 'name', 'route', 'order', ['class' => 'yii\\grid\\ActionColumn']]]); Pjax::end(); ?> </div> </div> </div>
use yii\grid\GridView; use app\components\Toolbar; use app\models\purchase\Purchase; use app\models\master\Branch; use app\models\master\Supplier; use app\components\ActionToolbar; /* @var $this yii\web\View */ /* @var $searchModel app\models\purchase\searchs\Purchase */ /* @var $dataProvider yii\data\ActiveDataProvider */ $this->title = 'Purchases'; $this->params['breadcrumbs'][] = $this->title; ?> <div class="row purchase-index"> <section class="col-lg-12"> <?php echo Toolbar::widget(['items' => [['label' => '', 'url' => ['print-html'], 'icon' => 'fa fa-print', 'linkOptions' => ['class' => 'btn btn-default btn-sm disabled', 'target' => '_blank', 'title' => 'Html Print']], ['label' => '', 'url' => ['print-pdf'], 'icon' => 'fa fa-file', 'linkOptions' => ['class' => 'btn btn-default btn-sm disabled', 'target' => '_blank', 'title' => 'Export to Pdf']], ['label' => '', 'url' => ['print-xsl'], 'icon' => 'fa fa-table', 'linkOptions' => ['class' => 'btn btn-default btn-sm disabled', 'target' => '_blank', 'title' => 'Export to Excel']]]]) . ' '; echo ActionToolbar::widget(['items' => [['label' => 'Create New', 'url' => ['create', 'type' => 100], 'icon' => 'fa fa-plus-square'], ['label' => 'Update', 'url' => ['update'], 'icon' => 'fa fa-pencil', 'linkOptions' => ['class' => 'disabled']], ['label' => 'Delete', 'url' => ['delete'], 'icon' => 'fa fa-trash-o', 'linkOptions' => ['class' => 'disabled', 'data' => ['confirm' => 'Are you sure you want to delete this item?', 'method' => 'post']]], ['label' => 'PO List', 'url' => ['index'], 'icon' => 'fa fa-list', 'linkOptions' => ['class' => 'disabled']]]]); ?> <div class="box box-info"> <div class="box-body no-padding"> <?php \yii\widgets\Pjax::begin(['enablePushState' => false]); ?> <?php echo GridView::widget(['dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'layout' => "{items}\n{pager}", 'tableOptions' => ['class' => 'table table-striped'], 'columns' => [['class' => 'yii\\grid\\SerialColumn'], 'number', ['attribute' => 'supplier_id', 'value' => 'supplier.name', 'filter' => Supplier::selectOptions()], ['attribute' => 'branch_id', 'value' => 'branch.name', 'filter' => Branch::selectOptions()], 'date:date', 'value:currency', ['attribute' => 'status', 'format' => 'raw', 'value' => function ($data) { $color = $data->status == Purchase::STATUS_DRAFT ? 'danger' : 'success'; $color = $data->status == Purchase::STATUS_CONFIRMED ? 'warning' : $color; $color = $data->status == Purchase::STATUS_PROCESS ? 'info' : $color; $color = $data->status == Purchase::STATUS_CLOSE ? 'success' : $color; return Html::tag('small', $data->nmStatus, ['class' => 'label label-' . $color]); }], ['class' => 'yii\\grid\\ActionColumn']]]);
<?php use yii\helpers\Html; use app\components\Toolbar; /* @var $this yii\web\View */ /* @var $model app\models\master\Customer */ $this->title = 'Create Customer'; $this->params['breadcrumbs'][] = ['label' => 'Customers', 'url' => ['index']]; $this->params['breadcrumbs'][] = $this->title; ?> <div class="customer-create col-lg-6"> <?php echo Toolbar::widget(['items' => [['label' => 'List', 'url' => ['index'], 'icon' => 'fa fa-list', 'linkOptions' => ['class' => 'btn btn-info btn-sm']]]]); ?> <?php echo $this->render('_form', ['model' => $model]); ?> </div>
<?php use yii\helpers\Html; use yii\widgets\DetailView; use app\components\Toolbar; /* @var $this yii\web\View */ /* @var $model app\models\accounting\AccPeriode */ $this->title = $model->name; $this->params['breadcrumbs'][] = ['label' => 'Acc Periodes', 'url' => ['index']]; $this->params['breadcrumbs'][] = $this->title; ?> <div class="acc-periode-view col-lg-6"> <?php echo Toolbar::widget(['items' => [['label' => 'Create', 'url' => ['create'], 'icon' => 'fa fa-plus-square', 'linkOptions' => ['class' => 'btn btn-success btn-sm']], ['label' => 'Update', 'url' => ['update', 'id' => $model->id], 'icon' => 'fa fa-pencil', 'linkOptions' => ['class' => 'btn btn-warning btn-sm']], ['label' => 'Delete', 'url' => ['delete', 'id' => $model->id], 'icon' => 'fa fa-trash-o', 'linkOptions' => ['class' => 'btn btn-danger btn-sm', 'data' => ['confirm' => 'Are you sure you want to delete this item?', 'method' => 'post']]], ['label' => 'List', 'url' => ['index'], 'icon' => 'fa fa-list', 'linkOptions' => ['class' => 'btn btn-info btn-sm']]]]); ?> <div class="box box-info orgn-view"> <div class="box-body no-padding"> <?php echo DetailView::widget(['model' => $model, 'attributes' => ['id', 'name', 'date_from', 'date_to', 'status', 'created_at', 'created_by', 'updated_at', 'updated_by']]); ?> </div> </div> </div>
* * For the full copyright and license information, please view the LICENSE.md * file that was distributed with this source code. */ use yii\helpers\Html; use yii\grid\GridView; use app\components\Toolbar; /** * @var yii\web\View $this * @var yii\data\ActiveDataProvider $dataProvider * @var dektrium\user\models\UserSearch $searchModel */ $this->title = Yii::t('user', 'Manage users'); $this->params['breadcrumbs'][] = $this->title; echo $this->render('flash'); echo Toolbar::widget(['items' => [['label' => Yii::t('user', 'Create a user account'), 'url' => ['create'], 'icon' => 'fa fa-user', 'linkOptions' => ['class' => 'btn btn-success']]]]); ?> <div class="box box-info"> <div class="box-body no-padding"> <?php echo GridView::widget(['dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'layout' => "{items}\n{pager}", 'columns' => ['username', 'email:email', ['attribute' => 'registration_ip', 'value' => function ($model, $key, $index, $widget) { return $model->registration_ip == null ? '<span class="not-set">' . Yii::t('user', '(not set)') . '</span>' : long2ip($model->registration_ip); }, 'format' => 'html'], ['attribute' => 'created_at', 'value' => function ($model, $key, $index, $widget) { return Yii::t('user', '{0, date, MMMM dd, YYYY HH:mm}', [$model->created_at]); }], ['header' => Yii::t('user', 'Confirmation'), 'value' => function ($model, $key, $index, $widget) { if ($model->isConfirmed) { return '<div class="text-center"><span class="text-success">' . Yii::t('user', 'Confirmed') . '</span></div>'; } else { return Html::a(Yii::t('user', 'Confirm'), ['confirm', 'id' => $model->id], ['class' => 'btn btn-xs btn-success btn-block', 'data-method' => 'post', 'data-confirm' => Yii::t('user', 'Are you sure to confirm this user?')]); }
<?php use yii\helpers\Html; use yii\grid\GridView; use app\components\Toolbar; /* @var $this yii\web\View */ /* @var $searchModel app\models\master\searchs\Price */ /* @var $dataProvider yii\data\ActiveDataProvider */ $this->title = 'Prices'; $this->params['breadcrumbs'][] = $this->title; ?> <div class="price-index"> <?php echo Toolbar::widget(['items' => [['label' => 'Create', 'url' => ['create'], 'icon' => 'fa fa-plus-square', 'linkOptions' => ['class' => 'btn btn-success btn-sm']], ['label' => 'Create By PO', 'url' => ['list-po'], 'icon' => 'fa fa-shopping-cart', 'linkOptions' => ['class' => 'btn btn-primary btn-sm']]]]); ?> <div class="box box-info"> <div class="box-body no-padding"> <?php echo GridView::widget(['dataProvider' => $dataProvider, 'layout' => "{items}\n{pager}", 'tableOptions' => ['class' => 'table table-striped'], 'columns' => [['class' => 'yii\\grid\\SerialColumn'], ['label' => 'Product Code', 'value' => 'product.code'], ['label' => 'Product Name', 'value' => 'product.name'], ['label' => 'Price category', 'value' => 'priceCategory.name'], 'price', 'created_at', 'created_by', ['class' => 'yii\\grid\\ActionColumn']]]); ?> </div> </div> </div>
<?php use yii\helpers\Html; use app\components\Toolbar; /* @var $this yii\web\View */ /* @var $model app\models\master\Price */ $this->title = 'Update Price: ' . ' ' . $model->product->name; $this->params['breadcrumbs'][] = ['label' => 'Prices', 'url' => ['index']]; $this->params['breadcrumbs'][] = ['label' => $model->product_id, 'url' => ['view', 'product_id' => $model->product_id, 'price_category_id' => $model->price_category_id]]; $this->params['breadcrumbs'][] = 'Update'; ?> <div class="col-lg-8 price-update"> <?php echo Toolbar::widget(['items' => [['label' => 'Create', 'url' => ['create'], 'icon' => 'fa fa-plus-square', 'linkOptions' => ['class' => 'btn btn-success btn-sm']], ['label' => 'Detail', 'url' => ['view', 'product_id' => $model->product_id, 'price_category_id' => $model->price_category_id], 'icon' => 'fa fa-search', 'linkOptions' => ['class' => 'btn bg-navy btn-sm']], ['label' => 'Delete', 'url' => ['delete', 'product_id' => $model->product_id, 'price_category_id' => $model->price_category_id], 'icon' => 'fa fa-trash-o', 'linkOptions' => ['class' => 'btn btn-danger btn-sm', 'data' => ['confirm' => 'Are you sure you want to delete this item?', 'method' => 'post']]], ['label' => 'List', 'url' => ['index'], 'icon' => 'fa fa-list', 'linkOptions' => ['class' => 'btn btn-info btn-sm']]]]); ?> <?php echo $this->render('_form', ['model' => $model]); ?> </div>
?> </div> <?php echo $this->render('flash'); ?> <?php $dItem = []; if (!$model->getIsConfirmed()) { $dItem[] = ['label' => Yii::t('user', 'Confirm'), 'url' => ['confirm', 'id' => $model->id], 'icon' => 'fa fa-question-circle', 'linkOptions' => ['class' => 'btn btn-success btn-xs', 'data-method' => 'post']]; } if ($model->getIsBlocked()) { $dItem[] = ['label' => Yii::t('user', 'Unblock'), 'url' => ['block', 'id' => $model->id], 'icon' => 'fa fa-check-square-o', 'linkOptions' => ['class' => 'btn btn-success btn-xs', 'data-method' => 'post', 'data-confirm' => Yii::t('user', 'Are you sure to block this user?')]]; } else { $dItem[] = ['label' => Yii::t('user', 'Block'), 'url' => ['block', 'id' => $model->id], 'icon' => 'fa fa-ban', 'linkOptions' => ['class' => 'btn btn-danger btn-xs', 'data-method' => 'post', 'data-confirm' => Yii::t('user', 'Are you sure to block this user?')]]; } echo Toolbar::widget(['items' => $dItem]); ?> <div class="box box-primary"> <?php $form = ActiveForm::begin(); ?> <div class="box-header"> <i class="fa fa-user"></i> <?php echo Html::encode($model->username); ?> </div> <div class="box-body"> <?php echo $form->field($model, 'username')->textInput(['maxlength' => 25]);