Commit 7e184f73 by Hendro Prabowo

Tambahan fungsi request mahasiswa

parent 1b6f25c8
......@@ -21,5 +21,6 @@ class AppAsset extends AssetBundle
public $js = [];
public $depends = [
'common\assets\MainAsset',
'yii\bootstrap\BootstrapAsset',
];
}
/*!
* Bootstrap Reboot v4.0.0 (https://getbootstrap.com)
* Copyright 2011-2018 The Bootstrap Authors
* Copyright 2011-2018 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
* Forked from Normalize.css, licensed MIT (https://github.com/necolas/normalize.css/blob/master/LICENSE.md)
*/
*,
*::before,
*::after {
box-sizing: border-box;
}
html {
font-family: sans-serif;
line-height: 1.15;
-webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
-ms-overflow-style: scrollbar;
-webkit-tap-highlight-color: transparent;
}
@-ms-viewport {
width: device-width;
}
article, aside, dialog, figcaption, figure, footer, header, hgroup, main, nav, section {
display: block;
}
body {
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
font-size: 1rem;
font-weight: 400;
line-height: 1.5;
color: #212529;
text-align: left;
background-color: #fff;
}
[tabindex="-1"]:focus {
outline: 0 !important;
}
hr {
box-sizing: content-box;
height: 0;
overflow: visible;
}
h1, h2, h3, h4, h5, h6 {
margin-top: 0;
margin-bottom: 0.5rem;
}
p {
margin-top: 0;
margin-bottom: 1rem;
}
abbr[title],
abbr[data-original-title] {
text-decoration: underline;
-webkit-text-decoration: underline dotted;
text-decoration: underline dotted;
cursor: help;
border-bottom: 0;
}
address {
margin-bottom: 1rem;
font-style: normal;
line-height: inherit;
}
ol,
ul,
dl {
margin-top: 0;
margin-bottom: 1rem;
}
ol ol,
ul ul,
ol ul,
ul ol {
margin-bottom: 0;
}
dt {
font-weight: 700;
}
dd {
margin-bottom: .5rem;
margin-left: 0;
}
blockquote {
margin: 0 0 1rem;
}
dfn {
font-style: italic;
}
b,
strong {
font-weight: bolder;
}
small {
font-size: 80%;
}
sub,
sup {
position: relative;
font-size: 75%;
line-height: 0;
vertical-align: baseline;
}
sub {
bottom: -.25em;
}
sup {
top: -.5em;
}
a {
color: #007bff;
text-decoration: none;
background-color: transparent;
-webkit-text-decoration-skip: objects;
}
a:hover {
color: #0056b3;
text-decoration: underline;
}
a:not([href]):not([tabindex]) {
color: inherit;
text-decoration: none;
}
a:not([href]):not([tabindex]):hover, a:not([href]):not([tabindex]):focus {
color: inherit;
text-decoration: none;
}
a:not([href]):not([tabindex]):focus {
outline: 0;
}
pre,
code,
kbd,
samp {
font-family: monospace, monospace;
font-size: 1em;
}
pre {
margin-top: 0;
margin-bottom: 1rem;
overflow: auto;
-ms-overflow-style: scrollbar;
}
figure {
margin: 0 0 1rem;
}
img {
vertical-align: middle;
border-style: none;
}
svg:not(:root) {
overflow: hidden;
}
table {
border-collapse: collapse;
}
caption {
padding-top: 0.75rem;
padding-bottom: 0.75rem;
color: #6c757d;
text-align: left;
caption-side: bottom;
}
th {
text-align: inherit;
}
label {
display: inline-block;
margin-bottom: .5rem;
}
button {
border-radius: 0;
}
button:focus {
outline: 1px dotted;
outline: 5px auto -webkit-focus-ring-color;
}
input,
button,
select,
optgroup,
textarea {
margin: 0;
font-family: inherit;
font-size: inherit;
line-height: inherit;
}
button,
input {
overflow: visible;
}
button,
select {
text-transform: none;
}
button,
html [type="button"],
[type="reset"],
[type="submit"] {
-webkit-appearance: button;
}
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
padding: 0;
border-style: none;
}
input[type="radio"],
input[type="checkbox"] {
box-sizing: border-box;
padding: 0;
}
input[type="date"],
input[type="time"],
input[type="datetime-local"],
input[type="month"] {
-webkit-appearance: listbox;
}
textarea {
overflow: auto;
resize: vertical;
}
fieldset {
min-width: 0;
padding: 0;
margin: 0;
border: 0;
}
legend {
display: block;
width: 100%;
max-width: 100%;
padding: 0;
margin-bottom: .5rem;
font-size: 1.5rem;
line-height: inherit;
color: inherit;
white-space: normal;
}
progress {
vertical-align: baseline;
}
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
height: auto;
}
[type="search"] {
outline-offset: -2px;
-webkit-appearance: none;
}
[type="search"]::-webkit-search-cancel-button,
[type="search"]::-webkit-search-decoration {
-webkit-appearance: none;
}
::-webkit-file-upload-button {
font: inherit;
-webkit-appearance: button;
}
output {
display: inline-block;
}
summary {
display: list-item;
cursor: pointer;
}
template {
display: none;
}
[hidden] {
display: none !important;
}
/*# sourceMappingURL=bootstrap-reboot.css.map */
\ No newline at end of file
/*!
* Bootstrap Reboot v4.0.0 (https://getbootstrap.com)
* Copyright 2011-2018 The Bootstrap Authors
* Copyright 2011-2018 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
* Forked from Normalize.css, licensed MIT (https://github.com/necolas/normalize.css/blob/master/LICENSE.md)
*/*,::after,::before{box-sizing:border-box}html{font-family:sans-serif;line-height:1.15;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;-ms-overflow-style:scrollbar;-webkit-tap-highlight-color:transparent}@-ms-viewport{width:device-width}article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";font-size:1rem;font-weight:400;line-height:1.5;color:#212529;text-align:left;background-color:#fff}[tabindex="-1"]:focus{outline:0!important}hr{box-sizing:content-box;height:0;overflow:visible}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:.5rem}p{margin-top:0;margin-bottom:1rem}abbr[data-original-title],abbr[title]{text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;cursor:help;border-bottom:0}address{margin-bottom:1rem;font-style:normal;line-height:inherit}dl,ol,ul{margin-top:0;margin-bottom:1rem}ol ol,ol ul,ul ol,ul ul{margin-bottom:0}dt{font-weight:700}dd{margin-bottom:.5rem;margin-left:0}blockquote{margin:0 0 1rem}dfn{font-style:italic}b,strong{font-weight:bolder}small{font-size:80%}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}a{color:#007bff;text-decoration:none;background-color:transparent;-webkit-text-decoration-skip:objects}a:hover{color:#0056b3;text-decoration:underline}a:not([href]):not([tabindex]){color:inherit;text-decoration:none}a:not([href]):not([tabindex]):focus,a:not([href]):not([tabindex]):hover{color:inherit;text-decoration:none}a:not([href]):not([tabindex]):focus{outline:0}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}pre{margin-top:0;margin-bottom:1rem;overflow:auto;-ms-overflow-style:scrollbar}figure{margin:0 0 1rem}img{vertical-align:middle;border-style:none}svg:not(:root){overflow:hidden}table{border-collapse:collapse}caption{padding-top:.75rem;padding-bottom:.75rem;color:#6c757d;text-align:left;caption-side:bottom}th{text-align:inherit}label{display:inline-block;margin-bottom:.5rem}button{border-radius:0}button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}button,input,optgroup,select,textarea{margin:0;font-family:inherit;font-size:inherit;line-height:inherit}button,input{overflow:visible}button,select{text-transform:none}[type=reset],[type=submit],button,html [type=button]{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{padding:0;border-style:none}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0}input[type=date],input[type=datetime-local],input[type=month],input[type=time]{-webkit-appearance:listbox}textarea{overflow:auto;resize:vertical}fieldset{min-width:0;padding:0;margin:0;border:0}legend{display:block;width:100%;max-width:100%;padding:0;margin-bottom:.5rem;font-size:1.5rem;line-height:inherit;color:inherit;white-space:normal}progress{vertical-align:baseline}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{outline-offset:-2px;-webkit-appearance:none}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}output{display:inline-block}summary{display:list-item;cursor:pointer}template{display:none}[hidden]{display:none!important}
/*# sourceMappingURL=bootstrap-reboot.min.css.map */
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -20,10 +20,11 @@ return [
],
]
],
[
'label' => 'Contoh Menu',
'icon' => 'fa fa-dashboard',
'url' => '/test'
],
// [
// 'label' => 'Contoh Menu',
// 'icon' => 'fa fa-dashboard',
// 'url' => '/test'
// ],
],
];
......@@ -3,42 +3,44 @@
namespace backend\modules\ubux\controllers;
use Yii;
use backend\modules\ubux\models\UbuxTransaksiKendaraan;
use backend\modules\ubux\models\UbuxTransaksiKendaraanSearch;
use backend\modules\ubux\models\UbuxKendaraan;
use backend\modules\ubux\models\UbuxKendaraanSearch;
use yii\web\Controller;
use yii\web\NotFoundHttpException;
use yii\filters\VerbFilter;
/**
* UbuxTransaksiKendaraanController implements the CRUD actions for UbuxTransaksiKendaraan model.
* UbuxKendaraanController implements the CRUD actions for UbuxKendaraan model.
*/
class UbuxTransaksiKendaraanController extends Controller
class UbuxKendaraanController extends Controller
{
// public function behaviors()
// {
// return [
// //TODO: crud controller actions are bypassed by default, set the appropriate privilege
// 'privilege' => [
// 'class' => \Yii::$app->privilegeControl->getAppPrivilegeControlClass(),
// 'skipActions' => ['*'],
// ],
// 'verbs' => [
// 'class' => VerbFilter::className(),
// 'actions' => [
// 'delete' => ['post'],
// ],
// ],
// ];
// }
public function behaviors()
{
return [
// //TODO: crud controller actions are bypassed by default, set the appropriate privilege
// 'privilege' => [
// 'class' => \Yii::$app->privilegeControl->getAppPrivilegeControlClass(),
// 'skipActions' => ['*'],
// ],
'verbs' => [
'class' => VerbFilter::className(),
'actions' => [
'delete' => ['post'],
],
],
];
}
/**
* Lists all UbuxTransaksiKendaraan models.
* Lists all UbuxKendaraan models.
* @return mixed
*/
public function actionIndex()
{
$searchModel = new UbuxTransaksiKendaraanSearch();
$searchModel = new UbuxKendaraanSearch();
$dataProvider = $searchModel->search(Yii::$app->request->queryParams);
return $this->render('index', [
......@@ -48,7 +50,7 @@ class UbuxTransaksiKendaraanController extends Controller
}
/**
* Displays a single UbuxTransaksiKendaraan model.
* Displays a single UbuxKendaraan model.
* @param integer $id
* @return mixed
*/
......@@ -60,16 +62,16 @@ class UbuxTransaksiKendaraanController extends Controller
}
/**
* Creates a new UbuxTransaksiKendaraan model.
* Creates a new UbuxKendaraan model.
* If creation is successful, the browser will be redirected to the 'view' page.
* @return mixed
*/
public function actionCreate()
{
$model = new UbuxTransaksiKendaraan();
$model = new UbuxKendaraan();
if ($model->load(Yii::$app->request->post()) && $model->save()) {
return $this->redirect(['view', 'id' => $model->transaksi_kendaraan_id]);
return $this->redirect(['view', 'id' => $model->kendaraan_id]);
} else {
return $this->render('create', [
'model' => $model,
......@@ -78,7 +80,7 @@ class UbuxTransaksiKendaraanController extends Controller
}
/**
* Updates an existing UbuxTransaksiKendaraan model.
* Updates an existing UbuxKendaraan model.
* If update is successful, the browser will be redirected to the 'view' page.
* @param integer $id
* @return mixed
......@@ -88,7 +90,7 @@ class UbuxTransaksiKendaraanController extends Controller
$model = $this->findModel($id);
if ($model->load(Yii::$app->request->post()) && $model->save()) {
return $this->redirect(['view', 'id' => $model->transaksi_kendaraan_id]);
return $this->redirect(['view', 'id' => $model->kendaraan_id]);
} else {
return $this->render('update', [
'model' => $model,
......@@ -97,28 +99,28 @@ class UbuxTransaksiKendaraanController extends Controller
}
/**
* Deletes an existing UbuxTransaksiKendaraan model.
* Deletes an existing UbuxKendaraan model.
* If deletion is successful, the browser will be redirected to the 'index' page.
* @param integer $id
* @return mixed
*/
public function actionDelete($id)
{
$this->findModel($id)->delete();
$this->findModel($id)->softDelete();
return $this->redirect(['index']);
}
/**
* Finds the UbuxTransaksiKendaraan model based on its primary key value.
* Finds the UbuxKendaraan model based on its primary key value.
* If the model is not found, a 404 HTTP exception will be thrown.
* @param integer $id
* @return UbuxTransaksiKendaraan the loaded model
* @return UbuxKendaraan the loaded model
* @throws NotFoundHttpException if the model cannot be found
*/
protected function findModel($id)
{
if (($model = UbuxTransaksiKendaraan::findOne($id)) !== null) {
if (($model = UbuxKendaraan::findOne($id)) !== null) {
return $model;
} else {
throw new NotFoundHttpException('The requested page does not exist.');
......
<?php
namespace backend\modules\ubux\controllers;
use Yii;
use backend\modules\ubux\models\UbuxLaporanPemakaianKendaraan;
use backend\modules\ubux\models\UbuxLaporanPemakaianKendaraanSearch;
use yii\web\Controller;
use yii\web\NotFoundHttpException;
use yii\filters\VerbFilter;
use mPDF;
/**
* UbuxLaporanPemakaianKendaraanController implements the CRUD actions for UbuxLaporanPemakaianKendaraan model.
*/
class UbuxLaporanPemakaianKendaraanController extends Controller
{
public function behaviors()
{
return [
//TODO: crud controller actions are bypassed by default, set the appropriate privilege
// 'privilege' => [
// 'class' => \Yii::$app->privilegeControl->getAppPrivilegeControlClass(),
// 'skipActions' => ['*'],
// ],
'verbs' => [
'class' => VerbFilter::className(),
'actions' => [
'delete' => ['post'],
],
],
];
}
/**
* Lists all UbuxLaporanPemakaianKendaraan models.
* @return mixed
*/
public function actionIndex()
{
$searchModel = new UbuxLaporanPemakaianKendaraanSearch();
$dataProvider = $searchModel->search(Yii::$app->request->queryParams);
return $this->render('index', [
'searchModel' => $searchModel,
'dataProvider' => $dataProvider,
]);
}
/**
* Displays a single UbuxLaporanPemakaianKendaraan model.
* @param integer $id
* @return mixed
*/
public function actionView($id)
{
return $this->render('view', [
'model' => $this->findModel($id),
]);
}
/**
* Creates a new UbuxLaporanPemakaianKendaraan model.
* If creation is successful, the browser will be redirected to the 'view' page.
* @return mixed
*/
public function actionCreate()
{
$model = new UbuxLaporanPemakaianKendaraan();
if ($model->load(Yii::$app->request->post()) && $model->save()) {
return $this->redirect(['view', 'id' => $model->laporan_pemakaian_kendaraan_id]);
} else {
return $this->render('create', [
'model' => $model,
]);
}
}
/**
* Updates an existing UbuxLaporanPemakaianKendaraan model.
* If update is successful, the browser will be redirected to the 'view' page.
* @param integer $id
* @return mixed
*/
public function actionUpdate($id)
{
$model = $this->findModel($id);
if ($model->load(Yii::$app->request->post()) && $model->save()) {
return $this->redirect(['view', 'id' => $model->laporan_pemakaian_kendaraan_id]);
} else {
return $this->render('update', [
'model' => $model,
]);
}
}
/**
* Deletes an existing UbuxLaporanPemakaianKendaraan model.
* If deletion is successful, the browser will be redirected to the 'index' page.
* @param integer $id
* @return mixed
*/
public function actionDelete($id)
{
$this->findModel($id)->softDelete();
return $this->redirect(['index']);
}
/**
* Finds the UbuxLaporanPemakaianKendaraan model based on its primary key value.
* If the model is not found, a 404 HTTP exception will be thrown.
* @param integer $id
* @return UbuxLaporanPemakaianKendaraan the loaded model
* @throws NotFoundHttpException if the model cannot be found
*/
protected function findModel($id)
{
if (($model = UbuxLaporanPemakaianKendaraan::findOne($id)) !== null) {
return $model;
} else {
throw new NotFoundHttpException('The requested page does not exist.');
}
}
public function actionSamplePdf($id)
{
$pdf = $this->renderPartial('viewPdf', [
'model' => $this->findModel($id),
]);
$mpdf = new mPDF;
$mpdf->WriteHTML($pdf);
$mpdf->Output();
exit;
}
public function actionLihatPdf($id){
return $this->renderPartial('viewPdf', [
'model' => $this->findModel($id),
]);
}
}
<?php
namespace backend\modules\ubux\controllers;
use Yii;
use backend\modules\ubux\models\UbuxPegawai;
use backend\modules\ubux\models\UbuxPegawaiSearch;
use yii\web\Controller;
use yii\web\NotFoundHttpException;
use yii\filters\VerbFilter;
/**
* UbuxPegawaiController implements the CRUD actions for UbuxPegawai model.
*/
class UbuxPegawaiController extends Controller
{
// public function behaviors()
// {
// return [
// //TODO: crud controller actions are bypassed by default, set the appropriate privilege
// 'privilege' => [
// 'class' => \Yii::$app->privilegeControl->getAppPrivilegeControlClass(),
// 'skipActions' => ['*'],
// ],
//
// 'verbs' => [
// 'class' => VerbFilter::className(),
// 'actions' => [
// 'delete' => ['post'],
// ],
// ],
// ];
// }
/**
* Lists all UbuxPegawai models.
* @return mixed
*/
public function actionIndex()
{
$searchModel = new UbuxPegawaiSearch();
$dataProvider = $searchModel->search(Yii::$app->request->queryParams);
return $this->render('index', [
'searchModel' => $searchModel,
'dataProvider' => $dataProvider,
]);
}
/**
* Displays a single UbuxPegawai model.
* @param integer $id
* @return mixed
*/
public function actionView($id)
{
return $this->render('view', [
'model' => $this->findModel($id),
]);
}
/**
* Creates a new UbuxPegawai model.
* If creation is successful, the browser will be redirected to the 'view' page.
* @return mixed
*/
public function actionCreate()
{
$model = new UbuxPegawai();
if ($model->load(Yii::$app->request->post()) && $model->save()) {
return $this->redirect(['view', 'id' => $model->pegawai_id]);
} else {
return $this->render('create', [
'model' => $model,
]);
}
}
/**
* Updates an existing UbuxPegawai model.
* If update is successful, the browser will be redirected to the 'view' page.
* @param integer $id
* @return mixed
*/
public function actionUpdate($id)
{
$model = $this->findModel($id);
if ($model->load(Yii::$app->request->post()) && $model->save()) {
return $this->redirect(['view', 'id' => $model->pegawai_id]);
} else {
return $this->render('update', [
'model' => $model,
]);
}
}
/**
* Deletes an existing UbuxPegawai model.
* If deletion is successful, the browser will be redirected to the 'index' page.
* @param integer $id
* @return mixed
*/
public function actionDelete($id)
{
$this->findModel($id)->delete();
return $this->redirect(['index']);
}
/**
* Finds the UbuxPegawai model based on its primary key value.
* If the model is not found, a 404 HTTP exception will be thrown.
* @param integer $id
* @return UbuxPegawai the loaded model
* @throws NotFoundHttpException if the model cannot be found
*/
protected function findModel($id)
{
if (($model = UbuxPegawai::findOne($id)) !== null) {
return $model;
} else {
throw new NotFoundHttpException('The requested page does not exist.');
}
}
}
<?php
namespace backend\modules\ubux\controllers;
use Yii;
use backend\modules\ubux\models\UbuxSupir;
use backend\modules\ubux\models\UbuxSupirSearch;
use yii\web\Controller;
use yii\web\NotFoundHttpException;
use yii\filters\VerbFilter;
/**
* UbuxSupirController implements the CRUD actions for UbuxSupir model.
*/
class UbuxSupirController extends Controller
{
public function behaviors()
{
return [
//TODO: crud controller actions are bypassed by default, set the appropriate privilege
// 'privilege' => [
// 'class' => \Yii::$app->privilegeControl->getAppPrivilegeControlClass(),
// 'skipActions' => ['*'],
// ],
'verbs' => [
'class' => VerbFilter::className(),
'actions' => [
'delete' => ['post'],
],
],
];
}
/**
* Lists all UbuxSupir models.
* @return mixed
*/
public function actionIndex()
{
$searchModel = new UbuxSupirSearch();
$dataProvider = $searchModel->search(Yii::$app->request->queryParams);
return $this->render('index', [
'searchModel' => $searchModel,
'dataProvider' => $dataProvider,
]);
}
/**
* Displays a single UbuxSupir model.
* @param integer $id
* @return mixed
*/
public function actionView($id)
{
return $this->render('view', [
'model' => $this->findModel($id),
]);
}
/**
* Creates a new UbuxSupir model.
* If creation is successful, the browser will be redirected to the 'view' page.
* @return mixed
*/
public function actionCreate()
{
$model = new UbuxSupir();
if ($model->load(Yii::$app->request->post()) && $model->save()) {
return $this->redirect(['view', 'id' => $model->supir_id]);
} else {
return $this->render('create', [
'model' => $model,
]);
}
}
/**
* Updates an existing UbuxSupir model.
* If update is successful, the browser will be redirected to the 'view' page.
* @param integer $id
* @return mixed
*/
public function actionUpdate($id)
{
$model = $this->findModel($id);
if ($model->load(Yii::$app->request->post()) && $model->save()) {
return $this->redirect(['view', 'id' => $model->supir_id]);
} else {
return $this->render('update', [
'model' => $model,
]);
}
}
/**
* Deletes an existing UbuxSupir model.
* If deletion is successful, the browser will be redirected to the 'index' page.
* @param integer $id
* @return mixed
*/
public function actionDelete($id)
{
$this->findModel($id)->softDelete();
return $this->redirect(['index']);
}
/**
* Finds the UbuxSupir model based on its primary key value.
* If the model is not found, a 404 HTTP exception will be thrown.
* @param integer $id
* @return UbuxSupir the loaded model
* @throws NotFoundHttpException if the model cannot be found
*/
protected function findModel($id)
{
if (($model = UbuxSupir::findOne($id)) !== null) {
return $model;
} else {
throw new NotFoundHttpException('The requested page does not exist.');
}
}
}
<?php
namespace backend\modules\ubux\models;
use Yii;
use common\behaviors\TimestampBehavior;
use common\behaviors\BlameableBehavior;
use common\behaviors\DeleteBehavior;
/**
* This is the model class for table "ubux_kendaraan".
*
* @property integer $kendaraan_id
* @property string $kendaraan
* @property integer $daya_tampung_kendaraan
* @property integer $jumlah_kilometer_pemakaian
* @property integer $deleted
* @property string $deleted_at
* @property string $deleted_by
* @property string $created_at
* @property string $created_by
* @property string $updated_at
* @property string $updated_by
*
* @property UbuxLaporanPemakaianKendaraan[] $ubuxLaporanPemakaianKendaraans
* @property UbuxLogService[] $ubuxLogServices
* @property UbuxTransaksiKendaraanMahasiswa[] $ubuxTransaksiKendaraanMahasiswas
* @property UbuxTransaksiKendaraanPegawai[] $ubuxTransaksiKendaraanPegawais
*/
class UbuxKendaraan extends \yii\db\ActiveRecord
{
/**
* behaviour to add created_at and updatet_at field with current datetime (timestamp)
* and created_by and updated_by field with current user id (blameable)
*/
public function behaviors(){
return [
'timestamp' => [
'class' => TimestampBehavior::className(),
],
'blameable' => [
'class' => BlameableBehavior::className(),
],
'delete' => [
'class' => DeleteBehavior::className(),
]
];
}
/**
* @inheritdoc
*/
public static function tableName()
{
return 'ubux_kendaraan';
}
/**
* @inheritdoc
*/
public function rules()
{
return [
[['kendaraan', 'daya_tampung_kendaraan', 'jumlah_kilometer_pemakaian'], 'required'],
[['daya_tampung_kendaraan', 'jumlah_kilometer_pemakaian', 'deleted'], 'integer'],
[['deleted_at', 'created_at', 'updated_at'], 'safe'],
[['kendaraan'], 'string', 'max' => 100],
[['deleted_by', 'created_by', 'updated_by'], 'string', 'max' => 32]
];
}
/**
* @inheritdoc
*/
public function attributeLabels()
{
return [
'kendaraan_id' => 'Kendaraan ID',
'kendaraan' => 'Kendaraan',
'daya_tampung_kendaraan' => 'Daya Tampung Kendaraan',
'jumlah_kilometer_pemakaian' => 'Jumlah Kilometer Pemakaian',
'deleted' => 'Deleted',
'deleted_at' => 'Deleted At',
'deleted_by' => 'Deleted By',
'created_at' => 'Created At',
'created_by' => 'Created By',
'updated_at' => 'Updated At',
'updated_by' => 'Updated By',
];
}
/**
* @return \yii\db\ActiveQuery
*/
public function getUbuxLaporanPemakaianKendaraans()
{
return $this->hasMany(UbuxLaporanPemakaianKendaraan::className(), ['kendaraan_id' => 'kendaraan_id']);
}
/**
* @return \yii\db\ActiveQuery
*/
public function getUbuxLogServices()
{
return $this->hasMany(UbuxLogService::className(), ['kendaraan_id' => 'kendaraan_id']);
}
/**
* @return \yii\db\ActiveQuery
*/
public function getUbuxTransaksiKendaraanMahasiswas()
{
return $this->hasMany(UbuxTransaksiKendaraanMahasiswa::className(), ['kendaraan_id' => 'kendaraan_id']);
}
/**
* @return \yii\db\ActiveQuery
*/
public function getUbuxTransaksiKendaraanPegawais()
{
return $this->hasMany(UbuxTransaksiKendaraanPegawai::className(), ['kendaraan_id' => 'kendaraan_id']);
}
public function getUbuxTransaksiKendaraanMahasiswaBarus()
{
return $this->hasMany(UbuxTransaksiKendaraanMahasiswaBaru::className(), ['kendaraan_id' => 'kendaraan_id']);
}
}
<?php
namespace backend\modules\ubux\models;
use Yii;
use yii\base\Model;
use yii\data\ActiveDataProvider;
use backend\modules\ubux\models\UbuxKendaraan;
/**
* UbuxKendaraanSearch represents the model behind the search form about `backend\modules\ubux\models\UbuxKendaraan`.
*/
class UbuxKendaraanSearch extends UbuxKendaraan
{
/**
* @inheritdoc
*/
public function rules()
{
return [
[['kendaraan_id', 'daya_tampung_kendaraan', 'deleted'], 'integer'],
[['kendaraan', 'jumlah_kilometer_pemakaian', 'deleted_at', 'deleted_by', 'created_at', 'created_by', 'updated_at', 'updated_by'], 'safe'],
];
}
/**
* @inheritdoc
*/
public function scenarios()
{
// bypass scenarios() implementation in the parent class
return Model::scenarios();
}
/**
* Creates data provider instance with search query applied
*
* @param array $params
*
* @return ActiveDataProvider
*/
public function search($params)
{
$query = UbuxKendaraan::find()->where(['deleted' => 0]);
$dataProvider = new ActiveDataProvider([
'query' => $query,
]);
$this->load($params);
if (!$this->validate()) {
// uncomment the following line if you do not want to any records when validation fails
// $query->where('0=1');
return $dataProvider;
}
$query->andFilterWhere([
'kendaraan_id' => $this->kendaraan_id,
'daya_tampung_kendaraan' => $this->daya_tampung_kendaraan,
'deleted' => $this->deleted,
'deleted_at' => $this->deleted_at,
'created_at' => $this->created_at,
'updated_at' => $this->updated_at,
]);
$query->andFilterWhere(['like', 'kendaraan', $this->kendaraan])
->andFilterWhere(['like', 'jumlah_kilometer_pemakaian', $this->jumlah_kilometer_pemakaian])
->andFilterWhere(['like', 'deleted_by', $this->deleted_by])
->andFilterWhere(['like', 'created_by', $this->created_by])
->andFilterWhere(['like', 'updated_by', $this->updated_by]);
return $dataProvider;
}
}
......@@ -11,19 +11,13 @@ use common\behaviors\DeleteBehavior;
/**
* This is the model class for table "ubux_laporan_pemakaian_kendaraan".
*
* @property integer $laporan_pemakaian_id
* @property string $tujuan_kendaraan
* @property string $nama_supir
* @property string $penumpang_kendaraan
* @property integer $laporan_pemakaian_kendaraan_id
* @property string $tujuan
* @property string $deskripsi_penumpang
* @property integer $jumlah_penumpang
* @property string $deskripsi_kebutuhan_kendaraan
* @property string $plat_kendaraan
* @property string $tgl_keberangkatan
* @property string $jam_keberangkatan
* @property string $tgl_kedatangan_kendaraan
* @property string $jam_kedatangan_kendaraan
* @property integer $km_keluar_kendaraan
* @property integer $km_masuk_kendaraan
* @property string $keperluan
* @property string $waktu_keberangkatan
* @property string $waktu_tiba
* @property integer $deleted
* @property string $deleted_at
* @property string $deleted_by
......@@ -31,6 +25,11 @@ use common\behaviors\DeleteBehavior;
* @property string $created_by
* @property string $updated_at
* @property string $updated_by
* @property integer $kendaraan_id
* @property integer $supir_id
*
* @property UbuxKendaraan $kendaraan
* @property UbuxSupir $supir
*/
class UbuxLaporanPemakaianKendaraan extends \yii\db\ActiveRecord
{
......@@ -67,10 +66,13 @@ class UbuxLaporanPemakaianKendaraan extends \yii\db\ActiveRecord
public function rules()
{
return [
[['jumlah_penumpang', 'km_keluar_kendaraan', 'km_masuk_kendaraan', 'deleted'], 'integer'],
[['tgl_keberangkatan', 'jam_keberangkatan', 'tgl_kedatangan_kendaraan', 'jam_kedatangan_kendaraan', 'deleted_at', 'created_at', 'updated_at'], 'safe'],
[['tujuan_kendaraan', 'nama_supir', 'penumpang_kendaraan', 'deskripsi_kebutuhan_kendaraan', 'plat_kendaraan'], 'string', 'max' => 45],
[['deleted_by', 'created_by', 'updated_by'], 'string', 'max' => 32]
[['tujuan', 'deskripsi_penumpang', 'jumlah_penumpang', 'keperluan', 'waktu_keberangkatan', 'waktu_tiba'], 'required'],
[['jumlah_penumpang', 'deleted', 'kendaraan_id', 'supir_id'], 'integer'],
[['waktu_keberangkatan', 'waktu_tiba', 'deleted_at', 'created_at', 'updated_at'], 'safe'],
[['tujuan', 'deskripsi_penumpang', 'keperluan'], 'string', 'max' => 45],
[['deleted_by', 'created_by', 'updated_by'], 'string', 'max' => 32],
[['kendaraan_id'], 'exist', 'skipOnError' => true, 'targetClass' => UbuxKendaraan::className(), 'targetAttribute' => ['kendaraan_id' => 'kendaraan_id']],
[['supir_id'], 'exist', 'skipOnError' => true, 'targetClass' => UbuxSupir::className(), 'targetAttribute' => ['supir_id' => 'supir_id']]
];
}
......@@ -80,19 +82,13 @@ class UbuxLaporanPemakaianKendaraan extends \yii\db\ActiveRecord
public function attributeLabels()
{
return [
'laporan_pemakaian_id' => 'Laporan Pemakaian ID',
'tujuan_kendaraan' => 'Tujuan Kendaraan',
'nama_supir' => 'Nama Supir',
'penumpang_kendaraan' => 'Penumpang Kendaraan',
'laporan_pemakaian_kendaraan_id' => 'Laporan Pemakaian Kendaraan ID',
'tujuan' => 'Tujuan',
'deskripsi_penumpang' => 'Deskripsi Penumpang',
'jumlah_penumpang' => 'Jumlah Penumpang',
'deskripsi_kebutuhan_kendaraan' => 'Deskripsi Kebutuhan Kendaraan',
'plat_kendaraan' => 'Plat Kendaraan',
'tgl_keberangkatan' => 'Tgl Keberangkatan',
'jam_keberangkatan' => 'Jam Keberangkatan',
'tgl_kedatangan_kendaraan' => 'Tgl Kedatangan Kendaraan',
'jam_kedatangan_kendaraan' => 'Jam Kedatangan Kendaraan',
'km_keluar_kendaraan' => 'Km Keluar Kendaraan',
'km_masuk_kendaraan' => 'Km Masuk Kendaraan',
'keperluan' => 'Keperluan',
'waktu_keberangkatan' => 'Waktu Keberangkatan',
'waktu_tiba' => 'Waktu Tiba',
'deleted' => 'Deleted',
'deleted_at' => 'Deleted At',
'deleted_by' => 'Deleted By',
......@@ -100,6 +96,24 @@ class UbuxLaporanPemakaianKendaraan extends \yii\db\ActiveRecord
'created_by' => 'Created By',
'updated_at' => 'Updated At',
'updated_by' => 'Updated By',
'kendaraan_id' => 'Kendaraan',
'supir_id' => 'Supir',
];
}
/**
* @return \yii\db\ActiveQuery
*/
public function getKendaraan()
{
return $this->hasOne(UbuxKendaraan::className(), ['kendaraan_id' => 'kendaraan_id']);
}
/**
* @return \yii\db\ActiveQuery
*/
public function getSupir()
{
return $this->hasOne(UbuxSupir::className(), ['supir_id' => 'supir_id']);
}
}
<?php
namespace backend\modules\ubux\models;
use Yii;
use yii\base\Model;
use yii\data\ActiveDataProvider;
use backend\modules\ubux\models\UbuxLaporanPemakaianKendaraan;
/**
* UbuxLaporanPemakaianKendaraanSearch represents the model behind the search form about `backend\modules\ubux\models\UbuxLaporanPemakaianKendaraan`.
*/
class UbuxLaporanPemakaianKendaraanSearch extends UbuxLaporanPemakaianKendaraan
{
/**
* @inheritdoc
*/
public function rules()
{
return [
[['laporan_pemakaian_kendaraan_id', 'jumlah_penumpang', 'deleted', 'kendaraan_id', 'supir_id'], 'integer'],
[['tujuan', 'deskripsi_penumpang', 'keperluan', 'waktu_keberangkatan', 'waktu_tiba', 'deleted_at', 'deleted_by', 'created_at', 'created_by', 'updated_at', 'updated_by'], 'safe'],
];
}
/**
* @inheritdoc
*/
public function scenarios()
{
// bypass scenarios() implementation in the parent class
return Model::scenarios();
}
/**
* Creates data provider instance with search query applied
*
* @param array $params
*
* @return ActiveDataProvider
*/
public function search($params)
{
$query = UbuxLaporanPemakaianKendaraan::find()->where(['deleted' => 0]);
$dataProvider = new ActiveDataProvider([
'query' => $query,
]);
$this->load($params);
if (!$this->validate()) {
// uncomment the following line if you do not want to any records when validation fails
// $query->where('0=1');
return $dataProvider;
}
$query->andFilterWhere([
'laporan_pemakaian_kendaraan_id' => $this->laporan_pemakaian_kendaraan_id,
'jumlah_penumpang' => $this->jumlah_penumpang,
'waktu_keberangkatan' => $this->waktu_keberangkatan,
'waktu_tiba' => $this->waktu_tiba,
'deleted' => $this->deleted,
'deleted_at' => $this->deleted_at,
'created_at' => $this->created_at,
'updated_at' => $this->updated_at,
'kendaraan_id' => $this->kendaraan_id,
'supir_id' => $this->supir_id,
]);
$query->andFilterWhere(['like', 'tujuan', $this->tujuan])
->andFilterWhere(['like', 'deskripsi_penumpang', $this->deskripsi_penumpang])
->andFilterWhere(['like', 'keperluan', $this->keperluan])
->andFilterWhere(['like', 'deleted_by', $this->deleted_by])
->andFilterWhere(['like', 'created_by', $this->created_by])
->andFilterWhere(['like', 'updated_by', $this->updated_by]);
return $dataProvider;
}
}
......@@ -9,19 +9,10 @@ use common\behaviors\BlameableBehavior;
use common\behaviors\DeleteBehavior;
/**
* This is the model class for table "ubux_transaksi_kendaraan".
* This is the model class for table "ubux_pegawai".
*
* @property integer $transaksi_kendaraan_id
* @property string $nama_perequest_kendaraan
* @property string $deskripsi_penggunaan_kendaraan
* @property string $plat_kendaraan
* @property integer $jumlah_penumpang_kendaraan
* @property string $tgl_keberangkatan
* @property string $jam_keberangkatan_kendaraan
* @property string $tgl_kembali_kendaraan
* @property string $jam_kembali_kendaraan
* @property string $status_request
* @property integer $ubux_laporan_pemakaian_kendaraan_id_laporan
* @property integer $pegawai_id
* @property string $jabatan
* @property integer $deleted
* @property string $deleted_at
* @property string $deleted_by
......@@ -29,8 +20,11 @@ use common\behaviors\DeleteBehavior;
* @property string $created_by
* @property string $updated_at
* @property string $updated_by
*
* @property UbuxHrd[] $ubuxHrds
* @property UbuxSupir[] $ubuxSupirs
*/
class UbuxTransaksiKendaraan extends \yii\db\ActiveRecord
class UbuxPegawai extends \yii\db\ActiveRecord
{
/**
......@@ -56,7 +50,7 @@ class UbuxTransaksiKendaraan extends \yii\db\ActiveRecord
*/
public static function tableName()
{
return 'ubux_transaksi_kendaraan';
return 'ubux_pegawai';
}
/**
......@@ -65,11 +59,10 @@ class UbuxTransaksiKendaraan extends \yii\db\ActiveRecord
public function rules()
{
return [
[['jumlah_penumpang_kendaraan', 'ubux_laporan_pemakaian_kendaraan_id_laporan', 'deleted'], 'integer'],
[['tgl_keberangkatan', 'jam_keberangkatan_kendaraan', 'tgl_kembali_kendaraan', 'jam_kembali_kendaraan', 'deleted_at', 'created_at', 'updated_at'], 'safe'],
[['status_request'], 'string'],
[['ubux_laporan_pemakaian_kendaraan_id_laporan'], 'required'],
[['nama_perequest_kendaraan', 'deskripsi_penggunaan_kendaraan', 'plat_kendaraan'], 'string', 'max' => 45],
[['jabatan'], 'required'],
[['deleted'], 'integer'],
[['deleted_at', 'created_at', 'updated_at'], 'safe'],
[['jabatan'], 'string', 'max' => 45],
[['deleted_by', 'created_by', 'updated_by'], 'string', 'max' => 32]
];
}
......@@ -80,17 +73,8 @@ class UbuxTransaksiKendaraan extends \yii\db\ActiveRecord
public function attributeLabels()
{
return [
'transaksi_kendaraan_id' => 'ID Request',
'nama_perequest_kendaraan' => 'Nama Pengguna',
'deskripsi_penggunaan_kendaraan' => 'Deskripsi',
'plat_kendaraan' => 'Plat Kendaraan',
'jumlah_penumpang_kendaraan' => 'Jumlah Penumpang',
'tgl_keberangkatan' => 'Tanggal Keberangkatan',
'jam_keberangkatan_kendaraan' => 'Jam Keberangkatan',
'tgl_kembali_kendaraan' => 'Tanggal Kembali',
'jam_kembali_kendaraan' => 'Jam Kembali',
'status_request' => 'Status Request',
'ubux_laporan_pemakaian_kendaraan_id_laporan' => 'Ubux Laporan Pemakaian Kendaraan Id Laporan',
'pegawai_id' => 'Pegawai ID',
'jabatan' => 'Jabatan',
'deleted' => 'Deleted',
'deleted_at' => 'Deleted At',
'deleted_by' => 'Deleted By',
......@@ -100,4 +84,20 @@ class UbuxTransaksiKendaraan extends \yii\db\ActiveRecord
'updated_by' => 'Updated By',
];
}
/**
* @return \yii\db\ActiveQuery
*/
public function getUbuxHrds()
{
return $this->hasMany(UbuxHrd::className(), ['pegawai_id' => 'pegawai_id']);
}
/**
* @return \yii\db\ActiveQuery
*/
public function getUbuxSupirs()
{
return $this->hasMany(UbuxSupir::className(), ['pegawai_id' => 'pegawai_id']);
}
}
......@@ -5,12 +5,12 @@ namespace backend\modules\ubux\models;
use Yii;
use yii\base\Model;
use yii\data\ActiveDataProvider;
use backend\modules\ubux\models\UbuxTransaksiKendaraan;
use backend\modules\ubux\models\UbuxPegawai;
/**
* UbuxTransaksiKendaraanSearch represents the model behind the search form about `backend\modules\ubux\models\UbuxTransaksiKendaraan`.
* UbuxPegawaiSearch represents the model behind the search form about `backend\modules\ubux\models\UbuxPegawai`.
*/
class UbuxTransaksiKendaraanSearch extends UbuxTransaksiKendaraan
class UbuxPegawaiSearch extends UbuxPegawai
{
/**
* @inheritdoc
......@@ -18,8 +18,8 @@ class UbuxTransaksiKendaraanSearch extends UbuxTransaksiKendaraan
public function rules()
{
return [
[['transaksi_kendaraan_id', 'jumlah_penumpang_kendaraan', 'ubux_laporan_pemakaian_kendaraan_id_laporan', 'deleted'], 'integer'],
[['nama_perequest_kendaraan', 'deskripsi_penggunaan_kendaraan', 'plat_kendaraan', 'tgl_keberangkatan', 'jam_keberangkatan_kendaraan', 'tgl_kembali_kendaraan', 'jam_kembali_kendaraan', 'status_request', 'deleted_at', 'deleted_by', 'created_at', 'created_by', 'updated_at', 'updated_by'], 'safe'],
[['pegawai_id', 'deleted'], 'integer'],
[['jabatan', 'deleted_at', 'deleted_by', 'created_at', 'created_by', 'updated_at', 'updated_by'], 'safe'],
];
}
......@@ -41,7 +41,7 @@ class UbuxTransaksiKendaraanSearch extends UbuxTransaksiKendaraan
*/
public function search($params)
{
$query = UbuxTransaksiKendaraan::find();
$query = UbuxPegawai::find();
$dataProvider = new ActiveDataProvider([
'query' => $query,
......@@ -56,23 +56,14 @@ class UbuxTransaksiKendaraanSearch extends UbuxTransaksiKendaraan
}
$query->andFilterWhere([
'transaksi_kendaraan_id' => $this->transaksi_kendaraan_id,
'jumlah_penumpang_kendaraan' => $this->jumlah_penumpang_kendaraan,
'tgl_keberangkatan' => $this->tgl_keberangkatan,
'jam_keberangkatan_kendaraan' => $this->jam_keberangkatan_kendaraan,
'tgl_kembali_kendaraan' => $this->tgl_kembali_kendaraan,
'jam_kembali_kendaraan' => $this->jam_kembali_kendaraan,
'ubux_laporan_pemakaian_kendaraan_id_laporan' => $this->ubux_laporan_pemakaian_kendaraan_id_laporan,
'pegawai_id' => $this->pegawai_id,
'deleted' => $this->deleted,
'deleted_at' => $this->deleted_at,
'created_at' => $this->created_at,
'updated_at' => $this->updated_at,
]);
$query->andFilterWhere(['like', 'nama_perequest_kendaraan', $this->nama_perequest_kendaraan])
->andFilterWhere(['like', 'deskripsi_penggunaan_kendaraan', $this->deskripsi_penggunaan_kendaraan])
->andFilterWhere(['like', 'plat_kendaraan', $this->plat_kendaraan])
->andFilterWhere(['like', 'status_request', $this->status_request])
$query->andFilterWhere(['like', 'jabatan', $this->jabatan])
->andFilterWhere(['like', 'deleted_by', $this->deleted_by])
->andFilterWhere(['like', 'created_by', $this->created_by])
->andFilterWhere(['like', 'updated_by', $this->updated_by]);
......
<?php
namespace backend\modules\ubux\models;
use Yii;
use common\behaviors\TimestampBehavior;
use common\behaviors\BlameableBehavior;
use common\behaviors\DeleteBehavior;
/**
* This is the model class for table "ubux_supir".
*
* @property integer $supir_id
* @property string $name_supir
* @property string $no_telepon_supir
* @property integer $deleted
* @property string $deleted_at
* @property string $deleted_by
* @property string $created_at
* @property string $created_by
* @property string $updated_at
* @property string $updated_by
*
* @property UbuxLaporanPemakaianKendaraan[] $ubuxLaporanPemakaianKendaraans
* @property UbuxTransaksiKendaraan[] $ubuxTransaksiKendaraans
*/
class UbuxSupir extends \yii\db\ActiveRecord
{
/**
* behaviour to add created_at and updatet_at field with current datetime (timestamp)
* and created_by and updated_by field with current user id (blameable)
*/
public function behaviors(){
return [
'timestamp' => [
'class' => TimestampBehavior::className(),
],
'blameable' => [
'class' => BlameableBehavior::className(),
],
'delete' => [
'class' => DeleteBehavior::className(),
]
];
}
/**
* @inheritdoc
*/
public static function tableName()
{
return 'ubux_supir';
}
/**
* @inheritdoc
*/
public function rules()
{
return [
[['name_supir', 'no_telepon_supir'], 'required'],
[['hrdx_pegawai_id', 'deleted'], 'integer'],
[['deleted_at', 'created_at', 'updated_at'], 'safe'],
[['name_supir'], 'string', 'max' => 45],
[['no_telepon_supir', 'deleted_by', 'created_by', 'updated_by'], 'string', 'max' => 32]
];
}
/**
* @inheritdoc
*/
public function attributeLabels()
{
return [
'supir_id' => 'Supir ID',
'hrdx_pegawai_id' => 'Hrdx Pegawai ID',
'name_supir' => 'Nama Supir',
'no_telepon_supir' => 'No Telepon Supir',
'deleted' => 'Deleted',
'deleted_at' => 'Deleted At',
'deleted_by' => 'Deleted By',
'created_at' => 'Created At',
'created_by' => 'Created By',
'updated_at' => 'Updated At',
'updated_by' => 'Updated By',
];
}
/**
* @return \yii\db\ActiveQuery
*/
public function getUbuxLaporanPemakaianKendaraans()
{
return $this->hasMany(UbuxLaporanPemakaianKendaraan::className(), ['supir_id' => 'supir_id']);
}
/**
* @return \yii\db\ActiveQuery
*/
public function getUbuxTransaksiKendaraans()
{
return $this->hasMany(UbuxTransaksiKendaraan::className(), ['supir_id' => 'supir_id']);
}
public function getUbuxTransaksiKendaraanBarus()
{
return $this->hasMany(UbuxTransaksiKendaraanMahasiswaBaru::className(), ['supir_id' => 'supir_id']);
}
}
<?php
namespace backend\modules\ubux\models;
use Yii;
use yii\base\Model;
use yii\data\ActiveDataProvider;
use backend\modules\ubux\models\UbuxSupir;
/**
* UbuxSupirSearch represents the model behind the search form about `backend\modules\ubux\models\UbuxSupir`.
*/
class UbuxSupirSearch extends UbuxSupir
{
/**
* @inheritdoc
*/
public function rules()
{
return [
[['supir_id', 'deleted'], 'integer'],
[['name_supir', 'no_telepon_supir', 'deleted_at', 'deleted_by', 'created_at', 'created_by', 'updated_at', 'updated_by'], 'safe'],
];
}
/**
* @inheritdoc
*/
public function scenarios()
{
// bypass scenarios() implementation in the parent class
return Model::scenarios();
}
/**
* Creates data provider instance with search query applied
*
* @param array $params
*
* @return ActiveDataProvider
*/
public function search($params)
{
$query = UbuxSupir::find()->where(['deleted' => 0]);
$dataProvider = new ActiveDataProvider([
'query' => $query,
]);
$this->load($params);
if (!$this->validate()) {
// uncomment the following line if you do not want to any records when validation fails
// $query->where('0=1');
return $dataProvider;
}
$query->andFilterWhere([
'supir_id' => $this->supir_id,
'deleted' => $this->deleted,
'deleted_at' => $this->deleted_at,
'created_at' => $this->created_at,
'updated_at' => $this->updated_at,
]);
$query->andFilterWhere(['like', 'name_supir', $this->name_supir])
->andFilterWhere(['like', 'no_telepon_supir', $this->no_telepon_supir])
->andFilterWhere(['like', 'deleted_by', $this->deleted_by])
->andFilterWhere(['like', 'created_by', $this->created_by])
->andFilterWhere(['like', 'updated_by', $this->updated_by]);
return $dataProvider;
}
}
<?php
namespace backend\modules\ubux\models;
use Yii;
use common\behaviors\TimestampBehavior;
use common\behaviors\BlameableBehavior;
use common\behaviors\DeleteBehavior;
/**
* This is the model class for table "ubux_transaksi_kendaraan".
*
* @property integer $transaksi_kendaraan_id
* @property integer $transaksi_kendaraan_mahasiswa_id
* @property string $nama_perequest_kendaraan
* @property string $deskripsi_penggunaan_kendaraan
* @property string $tujuan
* @property integer $jumlah_penumpang_kendaraan
* @property string $rencana_waktu_keberangkatan
* @property string $rencana_waktu_kembali
* @property string $status_request_sekertaris_rektorat
* @property string $status_request_kemahasiswaan
* @property string $role
* @property string $no_telepon
* @property string $proposal
* @property integer $deleted
* @property string $deleted_at
* @property string $deleted_by
* @property string $created_at
* @property string $created_by
* @property string $updated_at
* @property string $updated_by
* @property integer $kendaraan_id
* @property integer $supir_id
* @property string $No_Hp_Supir
* @property string $status_request_kabiro_KSD
* @property string $status_request_hrd
* @property string $status_request_keuangan
* @property string $status_request_wr2
*
* @property UbuxSupir $supir
* @property UbuxKendaraan $kendaraan
*/
class UbuxTransaksiKendaraanMahasiswa extends \yii\db\ActiveRecord
{
public $file;
/**
* behaviour to add created_at and updatet_at field with current datetime (timestamp)
* and created_by and updated_by field with current user id (blameable)
*/
public function behaviors(){
return [
'timestamp' => [
'class' => TimestampBehavior::className(),
],
'blameable' => [
'class' => BlameableBehavior::className(),
],
'delete' => [
'class' => DeleteBehavior::className(),
]
];
}
/**
* @inheritdoc
*/
public static function tableName()
{
return 'ubux_transaksi_kendaraan';
}
/**
* @inheritdoc
*/
public function rules()
{
return [
[['nama_perequest_kendaraan', 'deskripsi_penggunaan_kendaraan', 'tujuan', 'rencana_waktu_keberangkatan', 'rencana_waktu_kembali', 'no_telepon'], 'required'],
[['jumlah_penumpang_kendaraan', 'deleted', 'kendaraan_id', 'supir_id', 'transaksi_kendaraan_mahasiswa_id'], 'integer'],
[['rencana_waktu_keberangkatan', 'rencana_waktu_kembali', 'deleted_at', 'created_at', 'updated_at'], 'safe'],
[['status_request_sekertaris_rektorat', 'status_request_kemahasiswaan', 'role', 'status_request_kabiro_KSD', 'status_request_hrd', 'status_request_keuangan', 'status_request_wr2'], 'string'],
[['file'], 'file'],
[['nama_perequest_kendaraan', 'deskripsi_penggunaan_kendaraan'], 'string', 'max' => 45],
[['tujuan', 'No_Hp_Supir'], 'string', 'max' => 300],
[['proposal'], 'string', 'max' => 100],
[['no_telepon', 'deleted_by', 'created_by', 'updated_by'], 'string', 'max' => 32],
[['No_Hp_Supir'], 'string', 'max' => 300],
[['supir_id'], 'exist', 'skipOnError' => true, 'targetClass' => UbuxSupir::className(), 'targetAttribute' => ['supir_id' => 'supir_id']],
[['kendaraan_id'], 'exist', 'skipOnError' => true, 'targetClass' => UbuxKendaraan::className(), 'targetAttribute' => ['kendaraan_id' => 'kendaraan_id']]
];
}
/**
* @inheritdoc
*/
public function attributeLabels()
{
return [
'transaksi_kendaraan_id' => 'Transaksi Kendaraan ID',
'nama_perequest_kendaraan' => 'Nama',
'deskripsi_penggunaan_kendaraan' => 'Keperluan',
'tujuan' => 'Tujuan',
'jumlah_penumpang_kendaraan' => 'Jumlah Penumpang',
'rencana_waktu_keberangkatan' => 'Waktu Keberangkatan',
'rencana_waktu_kembali' => 'Waktu Tiba',
'status_request_sekertaris_rektorat' => 'Status',
'status_request_kemahasiswaan' => 'Status Pemintaan Kemahasiswaan',
'no_telepon' => 'No Telepon',
'role' => 'Jenis Permintaan',
'proposal' => 'Proposal',
'deleted' => 'Deleted',
'deleted_at' => 'Deleted At',
'deleted_by' => 'Deleted By',
'created_at' => 'Created At',
'created_by' => 'Created By',
'updated_at' => 'Updated At',
'updated_by' => 'Updated By',
'kendaraan_id' => 'Jenis Mobil',
'supir_id' => 'Supir',
'No_Hp_Supir' => 'No Hp Supir',
'file' => 'Proposal',
'status_request_kabiro_KSD' => 'Status Permintaan Kabiro Ksd',
'status_request_hrd' => 'Status Permintaan Hrd',
'status_request_keuangan' => 'Status Permintaan Keuangan',
'status_request_wr2' => 'Status Permintaan Wr2',
'transaksi_kendaraan_mahasiswa_id' => 'Transaksi Kendaraan Mahasiswa ID'
];
}
/**
* @return \yii\db\ActiveQuery
*/
public function getSupir()
{
return $this->hasOne(UbuxSupir::className(), ['supir_id' => 'supir_id']);
}
/**
* @return \yii\db\ActiveQuery
*/
public function getKendaraan()
{
return $this->hasOne(UbuxKendaraan::className(), ['kendaraan_id' => 'kendaraan_id']);
}
}
<?php
namespace backend\modules\ubux\models;
use Yii;
use common\behaviors\TimestampBehavior;
use common\behaviors\BlameableBehavior;
use common\behaviors\DeleteBehavior;
/**
* This is the model class for table "ubux_transaksi_kendaraan_mahasiswa".
*
* @property integer $transaksi_kendaraan_id
* @property integer $dim_id
* @property string $nama_perequest_kendaraan
* @property string $deskripsi_penggunaan_kendaraan
* @property string $tujuan
* @property integer $jumlah_penumpang_kendaraan
* @property string $rencana_waktu_keberangkatan
* @property string $rencana_waktu_kembali
* @property string $status_request_sekertaris_rektorat
* @property string $status_request_kemahasiswaan
* @property string $proposal
* @property string $no_telepon
* @property integer $deleted
* @property string $deleted_at
* @property string $deleted_by
* @property string $created_at
* @property string $created_by
* @property string $updated_at
* @property string $updated_by
* @property integer $kendaraan_id
* @property integer $supir_id
* @property string $No_Hp_Supir
*
*
* @property UbuxSupir $supir
* @property UbuxKendaraan $kendaraan
* @property DimxDim $mahasiswa
*/
class UbuxTransaksiKendaraanMahasiswaBaru extends \yii\db\ActiveRecord
{
public $file;
/**
* behaviour to add created_at and updatet_at field with current datetime (timestamp)
* and created_by and updated_by field with current user id (blameable)
*/
public function behaviors(){
return [
'timestamp' => [
'class' => TimestampBehavior::className(),
],
'blameable' => [
'class' => BlameableBehavior::className(),
],
'delete' => [
'class' => DeleteBehavior::className(),
]
];
}
/**
* @inheritdoc
*/
public static function tableName()
{
return 'ubux_transaksi_kendaraan_mahasiswa';
}
/**
* @inheritdoc
*/
public function rules()
{
return [
[['deskripsi_penggunaan_kendaraan', 'tujuan', 'rencana_waktu_keberangkatan', 'rencana_waktu_kembali', 'no_telepon'], 'required'],
[['dim_id', 'jumlah_penumpang_kendaraan', 'deleted', 'kendaraan_id', 'supir_id'], 'integer'],
[['rencana_waktu_keberangkatan', 'rencana_waktu_kembali', 'deleted_at', 'created_at', 'updated_at'], 'safe'],
[['status_request_sekertaris_rektorat', 'status_request_kemahasiswaan'], 'string'],
[['file'],'file'],
[['nama_perequest_kendaraan', 'deskripsi_penggunaan_kendaraan'], 'string', 'max' => 45],
[['tujuan', 'No_Hp_Supir'], 'string', 'max' => 300],
[['proposal'], 'string', 'max' => 100],
[['no_telepon', 'deleted_by', 'created_by', 'updated_by'], 'string', 'max' => 32],
['rencana_waktu_kembali', 'compare', 'compareAttribute' => 'rencana_waktu_keberangkatan', 'operator' => '>', 'message' => 'Salah Tdak bis'],
];
}
/**
* @inheritdoc
*/
public function attributeLabels()
{
return [
'transaksi_kendaraan_id' => 'Transaksi Kendaraan ID',
'dim_id' => 'Dim ID',
'nama_perequest_kendaraan' => 'Nama',
'deskripsi_penggunaan_kendaraan' => 'Keperluan',
'tujuan' => 'Tujuan',
'jumlah_penumpang_kendaraan' => 'Jumlah Penumpang',
'rencana_waktu_keberangkatan' => 'Waktu Keberangkatan',
'rencana_waktu_kembali' => 'Waktu Tiba',
'status_request_sekertaris_rektorat' => 'Status Permintaan',
'status_request_kemahasiswaan' => 'Status Permintaan Kemahasiswaan',
'proposal' => 'Proposal',
'no_telepon' => 'No Telepon',
'deleted' => 'Deleted',
'deleted_at' => 'Deleted At',
'deleted_by' => 'Deleted By',
'created_at' => 'Created At',
'created_by' => 'Created By',
'updated_at' => 'Updated At',
'updated_by' => 'Updated By',
'kendaraan_id' => 'Kendaraan',
'supir_id' => 'Supir',
'No_Hp_Supir' => 'No Hp Supir',
'file' => 'Proposal',
];
}
// Untuk table kendaraan
public function getKendaraan()
{
return $this->hasOne(UbuxKendaraan::className(), ['kendaraan_id' => 'kendaraan_id']);
}
public function getSupir(){
return $this->hasOne(UbuxSupir::className(), ['supir_id' => 'supir_id']);
}
public function getMahasiswa(){
return $this->hasOne(DimxDim::className(), ['dim_id' => 'dim_id']);
}
}
<?php
namespace backend\modules\ubux\models;
use Yii;
use yii\base\Model;
use yii\data\ActiveDataProvider;
use backend\modules\ubux\models\UbuxTransaksiKendaraanMahasiswaBaru;
/**
* UbuxTransaksiKendaraanMahasiswaBaruSearch represents the model behind the search form about `backend\modules\ubux\models\UbuxTransaksiKendaraanMahasiswaBaru`.
*/
class UbuxTransaksiKendaraanMahasiswaBaruSearch extends UbuxTransaksiKendaraanMahasiswaBaru
{
/**
* @inheritdoc
*/
public function rules()
{
return [
[['transaksi_kendaraan_id', 'dim_id', 'jumlah_penumpang_kendaraan', 'deleted', 'kendaraan_id', 'supir_id'], 'integer'],
[['nama_perequest_kendaraan', 'deskripsi_penggunaan_kendaraan', 'tujuan', 'rencana_waktu_keberangkatan', 'rencana_waktu_kembali', 'status_request_sekertaris_rektorat', 'status_request_kemahasiswaan', 'proposal', 'no_telepon', 'deleted_at', 'deleted_by', 'created_at', 'created_by', 'updated_at', 'updated_by', 'No_Hp_Supir'], 'safe'],
];
}
/**
* @inheritdoc
*/
public function scenarios()
{
// bypass scenarios() implementation in the parent class
return Model::scenarios();
}
/**
* Creates data provider instance with search query applied
*
* @param array $params
*
* @return ActiveDataProvider
*/
public function search($params)
{
$query = UbuxTransaksiKendaraanMahasiswaBaru::find();
$dataProvider = new ActiveDataProvider([
'query' => $query,
]);
$this->load($params);
if (!$this->validate()) {
// uncomment the following line if you do not want to any records when validation fails
// $query->where('0=1');
return $dataProvider;
}
$query->andFilterWhere([
'transaksi_kendaraan_id' => $this->transaksi_kendaraan_id,
'dim_id' => $this->dim_id,
'jumlah_penumpang_kendaraan' => $this->jumlah_penumpang_kendaraan,
'rencana_waktu_keberangkatan' => $this->rencana_waktu_keberangkatan,
'rencana_waktu_kembali' => $this->rencana_waktu_kembali,
'deleted' => $this->deleted,
'deleted_at' => $this->deleted_at,
'created_at' => $this->created_at,
'updated_at' => $this->updated_at,
'kendaraan_id' => $this->kendaraan_id,
'supir_id' => $this->supir_id,
]);
$query->andFilterWhere(['like', 'nama_perequest_kendaraan', $this->nama_perequest_kendaraan])
->andFilterWhere(['like', 'deskripsi_penggunaan_kendaraan', $this->deskripsi_penggunaan_kendaraan])
->andFilterWhere(['like', 'tujuan', $this->tujuan])
->andFilterWhere(['like', 'status_request_sekertaris_rektorat', $this->status_request_sekertaris_rektorat])
->andFilterWhere(['like', 'status_request_kemahasiswaan', $this->status_request_kemahasiswaan])
->andFilterWhere(['like', 'proposal', $this->proposal])
->andFilterWhere(['like', 'no_telepon', $this->no_telepon])
->andFilterWhere(['like', 'deleted_by', $this->deleted_by])
->andFilterWhere(['like', 'created_by', $this->created_by])
->andFilterWhere(['like', 'updated_by', $this->updated_by])
->andFilterWhere(['like', 'No_Hp_Supir', $this->No_Hp_Supir]);
return $dataProvider;
}
}
<?php
namespace backend\modules\ubux\models;
use Yii;
use yii\base\Model;
use yii\data\ActiveDataProvider;
use backend\modules\ubux\models\UbuxTransaksiKendaraanMahasiswa;
/**
* UbuxTransaksiKendaraanMahasiswaSearch represents the model behind the search form about `backend\modules\ubux\models\UbuxTransaksiKendaraanMahasiswa`.
*/
class UbuxTransaksiKendaraanMahasiswaSearch extends UbuxTransaksiKendaraanMahasiswa
{
/**
* @inheritdoc
*/
public function rules()
{
return [
[['transaksi_kendaraan_id', 'jumlah_penumpang_kendaraan', 'deleted', 'kendaraan_id', 'supir_id'], 'integer'],
[['nama_perequest_kendaraan', 'deskripsi_penggunaan_kendaraan', 'rencana_waktu_keberangkatan', 'rencana_waktu_kembali', 'status_request_sekertaris_rektorat', 'status_request_kemahasiswaan', 'role', 'proposal', 'no_telepon', 'deleted_at', 'deleted_by', 'created_at', 'created_by', 'updated_at', 'updated_by', 'No_Hp_Supir', 'status_request_kabiro_KSD', 'status_request_hrd', 'status_request_keuangan', 'status_request_wr2'], 'safe'],
];
}
/**
* @inheritdoc
*/
public function scenarios()
{
// bypass scenarios() implementation in the parent class
return Model::scenarios();
}
/**
* Creates data provider instance with search query applied
*
* @param array $params
*
* @return ActiveDataProvider
*/
public function search($params)
{
$query = UbuxTransaksiKendaraanMahasiswa::find();
$dataProvider = new ActiveDataProvider([
'query' => $query,
]);
$this->load($params);
if (!$this->validate()) {
// uncomment the following line if you do not want to any records when validation fails
// $query->where('0=1');
return $dataProvider;
}
$query->andFilterWhere([
'transaksi_kendaraan_id' => $this->transaksi_kendaraan_id,
'jumlah_penumpang_kendaraan' => $this->jumlah_penumpang_kendaraan,
'rencana_waktu_keberangkatan' => $this->rencana_waktu_keberangkatan,
'rencana_waktu_kembali' => $this->rencana_waktu_kembali,
'deleted' => $this->deleted,
'deleted_at' => $this->deleted_at,
'created_at' => $this->created_at,
'updated_at' => $this->updated_at,
'kendaraan_id' => $this->kendaraan_id,
'supir_id' => $this->supir_id,
]);
$query->andFilterWhere(['like', 'nama_perequest_kendaraan', $this->nama_perequest_kendaraan])
->andFilterWhere(['like', 'deskripsi_penggunaan_kendaraan', $this->deskripsi_penggunaan_kendaraan])
->andFilterWhere(['like', 'status_request_sekertaris_rektorat', $this->status_request_sekertaris_rektorat])
->andFilterWhere(['like', 'status_request_kemahasiswaan', $this->status_request_kemahasiswaan])
->andFilterWhere(['like', 'role', $this->role])
->andFilterWhere(['like', 'proposal', $this->proposal])
->andFilterWhere(['like', 'no_telepon', $this->no_telepon])
->andFilterWhere(['like', 'deleted_by', $this->deleted_by])
->andFilterWhere(['like', 'created_by', $this->created_by])
->andFilterWhere(['like', 'updated_by', $this->updated_by])
->andFilterWhere(['like', 'No_Hp_Supir', $this->No_Hp_Supir])
->andFilterWhere(['like', 'status_request_kabiro_KSD', $this->status_request_kabiro_KSD])
->andFilterWhere(['like', 'status_request_hrd', $this->status_request_hrd])
->andFilterWhere(['like', 'status_request_keuangan', $this->status_request_keuangan])
->andFilterWhere(['like', 'status_request_wr2', $this->status_request_wr2]);
return $dataProvider;
}
}
<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
/* @var $this yii\web\View */
/* @var $model backend\modules\ubux\models\UbuxKendaraan */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="ubux-kendaraan-form">
<?php $form = ActiveForm::begin(); ?>
<?= $form->field($model, 'kendaraan')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'daya_tampung_kendaraan')->textInput() ?>
<?= $form->field($model, 'jumlah_kilometer_pemakaian')->textInput(['maxlength' => true]) ?>
<!--
<?= $form->field($model, 'deleted')->textInput() ?>
<?= $form->field($model, 'deleted_at')->textInput() ?>
<?= $form->field($model, 'deleted_by')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'created_at')->textInput() ?>
<?= $form->field($model, 'created_by')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'updated_at')->textInput() ?>
<?= $form->field($model, 'updated_by')->textInput(['maxlength' => true]) ?>
-->
<div class="form-group">
<?= Html::submitButton($model->isNewRecord ? 'Buat' : 'Ubah', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>
</div>
<?php ActiveForm::end(); ?>
</div>
<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
/* @var $this yii\web\View */
/* @var $model backend\modules\ubux\models\UbuxKendaraanSearch */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="ubux-kendaraan-search">
<?php $form = ActiveForm::begin([
'action' => ['index'],
'method' => 'get',
]); ?>
<?= $form->field($model, 'kendaraan_id') ?>
<?= $form->field($model, 'kendaraan') ?>
<?= $form->field($model, 'daya_tampung_kendaraan') ?>
<?= $form->field($model, 'jumlah_kilometer_pemakaian') ?>
<?= $form->field($model, 'deleted') ?>
<?php // echo $form->field($model, 'deleted_at') ?>
<?php // echo $form->field($model, 'deleted_by') ?>
<?php // echo $form->field($model, 'created_at') ?>
<?php // echo $form->field($model, 'created_by') ?>
<?php // echo $form->field($model, 'updated_at') ?>
<?php // echo $form->field($model, 'updated_by') ?>
<div class="form-group">
<?= Html::submitButton('Search', ['class' => 'btn btn-primary']) ?>
<?= Html::resetButton('Reset', ['class' => 'btn btn-default']) ?>
</div>
<?php ActiveForm::end(); ?>
</div>
......@@ -4,13 +4,13 @@ use yii\helpers\Html;
/* @var $this yii\web\View */
/* @var $model backend\modules\ubux\models\UbuxTransaksiKendaraan */
/* @var $model backend\modules\ubux\models\UbuxKendaraan */
$this->title = 'Create Ubux Transaksi Kendaraan';
$this->params['breadcrumbs'][] = ['label' => 'Ubux Transaksi Kendaraans', 'url' => ['index']];
$this->title = 'Tambah Kendaraan';
$this->params['breadcrumbs'][] = ['label' => 'Tambah Kendaraan', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="ubux-transaksi-kendaraan-create">
<div class="ubux-kendaraan-create">
<h1><?= Html::encode($this->title) ?></h1>
......
<?php
use yii\helpers\Html;
use yii\grid\GridView;
use yii\helpers\Url;
use common\components\ToolsColumn;
/* @var $this yii\web\View */
/* @var $searchModel backend\modules\ubux\models\UbuxKendaraanSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */
$this->title = 'Kendaraan';
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="ubux-kendaraan-index">
<h1><?= Html::encode($this->title) ?></h1>
<?php // echo $this->render('_search', ['model' => $searchModel]); ?>
<p>
<?= Html::a('Tambah Kendaraan', ['create'], ['class' => 'btn btn-success']) ?>
</p>
<?= GridView::widget([
'dataProvider' => $dataProvider,
'filterModel' => $searchModel,
'columns' => [
['class' => 'yii\grid\SerialColumn'],
// 'kendaraan_id',
'kendaraan',
'daya_tampung_kendaraan',
// 'jumlah_kilometer_pemakaian',
// 'deleted',
// 'deleted_at',
// 'deleted_by',
// 'created_at',
// 'created_by',
// 'updated_at',
// 'updated_by',
['class' => 'common\components\ToolsColumn',
'template' => '{view} {update} {delete}',// {edit} {cancel}',
'header' => 'Aksi',
'buttons' => [
'view' => function ($url, $model){
return ToolsColumn::renderCustomButton($url, $model, 'Lihat Rincian', 'fa fa-eye');
},
'update' => function ($url, $model){
return ToolsColumn::renderCustomButton($url, $model, 'Ubah', 'fa fa-pencil');
},
'delete' => function ($url, $model){
return "<li>".Html::a('<span class="fa fa-trash"></span> Hapus', $url, [
'title' => Yii::t('yii', 'Legitimate'),
'data-confirm' => Yii::t('yii', 'Apakah anda yakin ingin menghapus ?'),
'data-method' => 'post',
'data-pjax' => '0',
])."</li>";
},
],
'urlCreator' => function ($action, $model, $key, $index){
if ($action === 'view') {
return Url::toRoute(['view', 'id' => $key]);
}else if ($action === 'update') {
return Url::toRoute(['update', 'id' => $key]);
}else if ($action === 'delete') {
return Url::toRoute(['delete', 'id' => $key]);
}
}
],
],
]); ?>
</div>
<?php
use yii\helpers\Html;
/* @var $this yii\web\View */
/* @var $model backend\modules\ubux\models\UbuxKendaraan */
$this->title = 'Ubah Kendaraan : ' . ' ' . $model->kendaraan;
$this->params['breadcrumbs'][] = ['label' => 'Ubah Kendaraan', 'url' => ['index']];
$this->params['breadcrumbs'][] = ['label' => $model->kendaraan_id, 'url' => ['view', 'id' => $model->kendaraan_id]];
$this->params['breadcrumbs'][] = 'Ubah';
?>
<div class="ubux-kendaraan-update">
<h1><?= Html::encode($this->title) ?></h1>
<?= $this->render('_form', [
'model' => $model,
]) ?>
</div>
<?php
use yii\helpers\Html;
use yii\widgets\DetailView;
/* @var $this yii\web\View */
/* @var $model backend\modules\ubux\models\UbuxKendaraan */
$this->title = $model->kendaraan;
$this->params['breadcrumbs'][] = ['label' => 'Ubux Kendaraan', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="ubux-kendaraan-view">
<h1><?= Html::encode($this->title) ?></h1>
<p>
<?= Html::a('Ubah', ['update', 'id' => $model->kendaraan_id], ['class' => 'btn btn-primary']) ?>
<?= Html::a('Hapus', ['delete', 'id' => $model->kendaraan_id], [
'class' => 'btn btn-danger',
'data' => [
'confirm' => 'Apakah anda yakin ?',
'method' => 'post',
],
]) ?>
</p>
<?= DetailView::widget([
'model' => $model,
'attributes' => [
// 'kendaraan_id',
'kendaraan',
'daya_tampung_kendaraan',
'jumlah_kilometer_pemakaian',
// 'deleted',
// 'deleted_at',
// 'deleted_by',
// 'created_at',
// 'created_by',
// 'updated_at',
// 'updated_by',
],
]) ?>
</div>
<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
use dosamigos\datetimepicker\DateTimePicker;
use yii\helpers\ArrayHelper;
use backend\modules\ubux\models\UbuxKendaraan;
use backend\modules\ubux\models\UbuxSupir;
/* @var $this yii\web\View */
/* @var $model backend\modules\ubux\models\UbuxLaporanPemakaianKendaraan */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="ubux-laporan-pemakaian-kendaraan-form">
<?php $form = ActiveForm::begin(); ?>
<?= $form->field($model, 'tujuan')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'deskripsi_penumpang')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'jumlah_penumpang')->textInput() ?>
<?= $form->field($model, 'keperluan')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'waktu_keberangkatan')->widget(DateTimePicker::className(),[
'inline' => false,
'pickButtonIcon' => 'glyphicon glyphicon-time',
'size' => 'ms',
'clientOptions' => [
'autoClose' => true,
'format' => 'yyyy-mm-dd HH:ii:ss',
'todayBtn' => true,
]
]); ?>
<?= $form->field($model, 'waktu_tiba')->widget(DateTimePicker::className(),[
'inline' => false,
'pickButtonIcon' => 'glyphicon glyphicon-time',
'size' => 'ms',
'clientOptions' => [
'autoClose' => true,
'format' => 'yyyy-mm-dd HH:ii:ss',
'todayBtn' => true,
]
]); ?>
<!--
<?= $form->field($model, 'deleted')->textInput() ?>
<?= $form->field($model, 'deleted_at')->textInput() ?>
<?= $form->field($model, 'deleted_by')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'created_at')->textInput() ?>
<?= $form->field($model, 'created_by')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'updated_at')->textInput() ?>
<?= $form->field($model, 'updated_by')->textInput(['maxlength' => true]) ?>
-->
<?= $form->field($model, 'kendaraan_id')->dropDownList(
ArrayHelper::map(UbuxKendaraan::find()->select([
'kendaraan_id', 'kendaraan'
])->all(), 'kendaraan_id', 'kendaraan'),
['prompt' => 'Pilih Kendaraan']
) ?>
<?= $form->field($model, 'supir_id')->dropDownList(
ArrayHelper::map(UbuxSupir::find()->select([
'supir_id', 'name_supir'
])->all(), 'supir_id', 'name_supir'),
['prompt' => 'Pilih Supir']
) ?>
<div class="form-group">
<?= Html::submitButton($model->isNewRecord ? 'Buat' : 'Ubah', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>
</div>
<?php ActiveForm::end(); ?>
</div>
<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
/* @var $this yii\web\View */
/* @var $model backend\modules\ubux\models\UbuxLaporanPemakaianKendaraanSearch */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="ubux-laporan-pemakaian-kendaraan-search">
<?php $form = ActiveForm::begin([
'action' => ['index'],
'method' => 'get',
]); ?>
<?= $form->field($model, 'laporan_pemakaian_kendaraan_id') ?>
<?= $form->field($model, 'tujuan') ?>
<?= $form->field($model, 'deskripsi_penumpang') ?>
<?= $form->field($model, 'jumlah_penumpang') ?>
<?= $form->field($model, 'keperluan') ?>
<?php // echo $form->field($model, 'waktu_keberangkatan') ?>
<?php // echo $form->field($model, 'waktu_tiba') ?>
<?php // echo $form->field($model, 'deleted') ?>
<?php // echo $form->field($model, 'deleted_at') ?>
<?php // echo $form->field($model, 'deleted_by') ?>
<?php // echo $form->field($model, 'created_at') ?>
<?php // echo $form->field($model, 'created_by') ?>
<?php // echo $form->field($model, 'updated_at') ?>
<?php // echo $form->field($model, 'updated_by') ?>
<?php // echo $form->field($model, 'kendaraan_id') ?>
<?php // echo $form->field($model, 'supir_id') ?>
<div class="form-group">
<?= Html::submitButton('Search', ['class' => 'btn btn-primary']) ?>
<?= Html::resetButton('Reset', ['class' => 'btn btn-default']) ?>
</div>
<?php ActiveForm::end(); ?>
</div>
<?php
use yii\helpers\Html;
/* @var $this yii\web\View */
/* @var $model backend\modules\ubux\models\UbuxLaporanPemakaianKendaraan */
$this->title = 'Tambah Laporan Pemakaian Kendaraan';
$this->params['breadcrumbs'][] = ['label' => 'Laporan Pemakaian Kendaraan', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="ubux-laporan-pemakaian-kendaraan-create">
<h1><?= Html::encode($this->title) ?></h1>
<?= $this->render('_form', [
'model' => $model,
]) ?>
</div>
<?php
use yii\helpers\Html;
use yii\grid\GridView;
use yii\helpers\Url;
use common\components\ToolsColumn;
/* @var $this yii\web\View */
/* @var $searchModel backend\modules\ubux\models\UbuxLaporanPemakaianKendaraanSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */
$this->title = 'Laporan Pemakaian Kendaraan';
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="ubux-laporan-pemakaian-kendaraan-index">
<h1><?= Html::encode($this->title) ?></h1>
<p>
<?= Html::a('Tambah Laporan Pemakaian Kendaraan', ['create'], ['class' => 'btn btn-success']) ?>
</p>
<?= GridView::widget([
'dataProvider' => $dataProvider,
'filterModel' => $searchModel,
'columns' => [
['class' => 'yii\grid\SerialColumn'],
// 'laporan_pemakaian_kendaraan_id',
'tujuan',
'deskripsi_penumpang',
'jumlah_penumpang',
'keperluan',
'waktu_keberangkatan',
'waktu_tiba',
// 'deleted',
// 'deleted_at',
// 'deleted_by',
// 'created_at',
// 'created_by',
// 'updated_at',
// 'updated_by',
// 'kendaraan_id',
[
'attribute' => 'Kendaraan',
'value' => 'kendaraan.kendaraan',
],
// 'supir_id',
[
'attribute' => 'Supir',
'value' => 'supir.name_supir'
],
['class' => 'common\components\ToolsColumn',
'template' => '{view} {update} {delete}',// {edit} {cancel}',
'header' => 'Aksi',
'buttons' => [
'view' => function ($url, $model){
return ToolsColumn::renderCustomButton($url, $model, 'Lihat Rincian', 'fa fa-eye');
},
'update' => function ($url, $model){
return ToolsColumn::renderCustomButton($url, $model, 'Ubah', 'fa fa-pencil');
},
'delete' => function ($url, $model){
return "<li>".Html::a('<span class="fa fa-trash"></span> Hapus', $url, [
'title' => Yii::t('yii', 'Legitimate'),
'data-confirm' => Yii::t('yii', 'Apakah anda yakin ingin menghapus ?'),
'data-method' => 'post',
'data-pjax' => '0',
])."</li>";
},
],
'urlCreator' => function ($action, $model, $key, $index){
if ($action === 'view') {
return Url::toRoute(['view', 'id' => $key]);
}else if ($action === 'update') {
return Url::toRoute(['update', 'id' => $key]);
}else if ($action === 'delete') {
return Url::toRoute(['delete', 'id' => $key]);
}
}
],
],
]); ?>
</div>
<?php
use yii\helpers\Html;
/* @var $this yii\web\View */
/* @var $model backend\modules\ubux\models\UbuxLaporanPemakaianKendaraan */
$this->title = 'Ubah Laporan Pemakaian Kendaraan: ' . ' ' . $model->laporan_pemakaian_kendaraan_id;
$this->params['breadcrumbs'][] = ['label' => 'Laporan Pemakaian Kendaraans', 'url' => ['index']];
$this->params['breadcrumbs'][] = ['label' => $model->laporan_pemakaian_kendaraan_id, 'url' => ['view', 'id' => $model->laporan_pemakaian_kendaraan_id]];
$this->params['breadcrumbs'][] = 'Ubah';
?>
<div class="ubux-laporan-pemakaian-kendaraan-update">
<h1><?= Html::encode($this->title) ?></h1>
<?= $this->render('_form', [
'model' => $model,
]) ?>
</div>
<?php
use yii\helpers\Html;
use yii\widgets\DetailView;
/* @var $this yii\web\View */
/* @var $model backend\modules\ubux\models\UbuxLaporanPemakaianKendaraan */
$this->title = 'Laporan Pemakaian Kendaraan';
$this->params['breadcrumbs'][] = ['label' => 'Ubux Laporan Pemakaian Kendaraan', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="ubux-laporan-pemakaian-kendaraan-view">
<h1><?= Html::encode($this->title) ?></h1>
<p>
<?= Html::a('Ubah', ['update', 'id' => $model->laporan_pemakaian_kendaraan_id], ['class' => 'btn btn-primary']) ?>
<?= Html::a('Hapus', ['delete', 'id' => $model->laporan_pemakaian_kendaraan_id], [
'class' => 'btn btn-danger',
'data' => [
'confirm' => 'Apakah anda yakin ?',
'method' => 'post',
],
]) ?>
<?= Html::a('Cetak', ['sample-pdf', 'id' => $model->laporan_pemakaian_kendaraan_id], ['class' => 'btn btn-warning']) ?>
</p>
<?= DetailView::widget([
'model' => $model,
'attributes' => [
// 'laporan_pemakaian_kendaraan_id',
'tujuan',
'deskripsi_penumpang',
'jumlah_penumpang',
'keperluan',
'waktu_keberangkatan',
'waktu_tiba',
// 'deleted',
// 'deleted_at',
// 'deleted_by',
// 'created_at',
// 'created_by',
// 'updated_at',
// 'updated_by',
// 'kendaraan_id',
[
'attribute' => 'Kendaraan',
'value' => $model->kendaraan->kendaraan
],
// 'supir_id',
[
'attribute' => 'Supir',
'value' => $model->supir->name_supir,
],
],
]) ?>
</div>
<?php
use yii\helpers\Html;
use yii\widgets\DetailView;
/* @var $this yii\web\View */
/* @var $model backend\modules\ubux\models\UbuxLaporanPemakaianKendaraan */
$this->title = 'Laporan Pemakaian Kendaraan';
$this->params['breadcrumbs'][] = ['label' => 'Laporan Pemakaian Kendaraans', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<style>
.garis{
border: 1px solid black;
}
.tengah{
text-align: center;
}
table, th, td{
border-collapse: collapse;
}
.kolom{
height: 1cm;
}
</style>
<div class="ubux-laporan-pemakaian-kendaraan-view">
<table>
<tr>
<td rowspan="2"><img src="gambar/itdel.jpg" style="width: 100px; width: 100px;"></td>
<td style="width: 600px;" class="tengah"><h1><?= Html::encode($this->title) ?></h1></td>
</tr>
<tr>
<td class="tengah"><h2>Institut Teknologi Del</h2></td>
</tr>
</table>
<hr>
<table style="margin-left: 100px; margin-top: 25px;">
<tr>
<td class="kolom">Tujuan</td>
<td class="kolom">:</td>
<td class="kolom"><?= $model->tujuan ?></td>
</tr>
<tr>
<td class="kolom">Deskripsi Penumpang</td>
<td class="kolom">:</td>
<td class="kolom"><?= $model->deskripsi_penumpang ?></td>
</tr>
<tr>
<td class="kolom">Jumlah Penumpang</td>
<td class="kolom">:</td>
<td class="kolom"><?= $model->jumlah_penumpang ?></td>
</tr>
<tr>
<td class="kolom">Keperluan</td>
<td class="kolom">:</td>
<td class="kolom"><?= $model->keperluan ?></td>
</tr>
<tr>
<td class="kolom">Waktu Keberangkatan</td>
<td>:</td>
<td><?= $model->waktu_keberangkatan ?></td>
</tr>
<tr>
<td class="kolom">Waktu Tiba</td>
<td>:</td>
<td><?= $model->waktu_tiba ?></td>
</tr>
<tr>
<td class="kolom">Kendaraan</td>
<td>:</td>
<td><?= $model->kendaraan->kendaraan ?></td>
</tr>
<tr>
<td class="kolom">Supir</td>
<td>:</td>
<td><?= $model->supir->name_supir ?></td>
</tr>
</table>
<!-- <?//= DetailView::widget([
// 'model' => $model,
// 'attributes' => [
// 'laporan_pemakaian_kendaraan_id',
// 'tujuan',
// 'deskripsi_penumpang',
// 'jumlah_penumpang',
// 'keperluan',
// 'waktu_keberangkatan',
// 'waktu_tiba',
// 'deleted',
// 'deleted_at',
// 'deleted_by',
// 'created_at',
// 'created_by',
// 'updated_at',
// 'updated_by',
// 'kendaraan_id',
// [
// 'attribute' => 'Kendaraan',
// 'value' => $model->kendaraan->kendaraan
// ],
// 'supir_id',
// [
// 'attribute' => 'Supir',
// 'value' => $model->supir->name_supir,
// ],
// ],
// ]) ?>
-->
<br><br><br><br><br><br><br>
<table style="margin-left: 13cm; width: 7cm">
<tr class="kolom">
<td class="tengah">Dibuat Oleh,</td>
</tr>
<tr class="kolom">
<td style="height: 3cm" class="tengah"></td>
</tr>
<tr class="kolom">
<td class="tengah">Cori Lumban Gaol</td>
</tr>
<tr class="kolom">
<td class="tengah">Staf Sekretariat</td>
</tr>
</table>
<br><br><br><br><br>
<hr>
<table>
<tr>
<td>Institut Teknologi Del</td>
</tr>
<tr>
<td>Jl. Sisingamangaraja, Sitoluama</td>
</tr>
<tr>
<td>Laguboti 22381, Toba Samosir</td>
</tr>
<tr>
<td>Sumatera Utara</td>
</tr>
<tr>
<td>Telp : +62 632 - 331234, Fax : +62 632 - 331116</td>
</tr>
<tr>
<td>www.del.ac.id</td>
</tr>
</table>
</div>
......@@ -4,35 +4,17 @@ use yii\helpers\Html;
use yii\widgets\ActiveForm;
/* @var $this yii\web\View */
/* @var $model backend\modules\ubux\models\UbuxTransaksiKendaraan */
/* @var $model backend\modules\ubux\models\UbuxPegawai */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="ubux-transaksi-kendaraan-form">
<div class="ubux-pegawai-form">
<?php $form = ActiveForm::begin(); ?>
<?= $form->field($model, 'nama_perequest_kendaraan')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'deskripsi_penggunaan_kendaraan')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'plat_kendaraan')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'jumlah_penumpang_kendaraan')->textInput() ?>
<?= $form->field($model, 'tgl_keberangkatan')->textInput() ?>
<?= $form->field($model, 'jam_keberangkatan_kendaraan')->textInput() ?>
<?= $form->field($model, 'tgl_kembali_kendaraan')->textInput() ?>
<?= $form->field($model, 'jam_kembali_kendaraan')->textInput() ?>
<?= $form->field($model, 'status_request')->dropDownList([ 'Pending' => 'Pending', 'Accepted' => 'Accepted', 'Rejected' => 'Rejected', ], ['prompt' => '']) ?>
<?= $form->field($model, 'ubux_laporan_pemakaian_kendaraan_id_laporan')->textInput() ?>
<!-- <?= $form->field($model, 'deleted')->textInput() ?>
<?= $form->field($model, 'jabatan')->textInput(['maxlength' => true]) ?>
<!--
<?= $form->field($model, 'deleted')->textInput() ?>
<?= $form->field($model, 'deleted_at')->textInput() ?>
......@@ -44,8 +26,8 @@ use yii\widgets\ActiveForm;
<?= $form->field($model, 'updated_at')->textInput() ?>
<?= $form->field($model, 'updated_by')->textInput(['maxlength' => true]) ?> -->
<?= $form->field($model, 'updated_by')->textInput(['maxlength' => true]) ?>
-->
<div class="form-group">
<?= Html::submitButton($model->isNewRecord ? 'Create' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>
</div>
......
<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
/* @var $this yii\web\View */
/* @var $model backend\modules\ubux\models\UbuxPegawaiSearch */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="ubux-pegawai-search">
<?php $form = ActiveForm::begin([
'action' => ['index'],
'method' => 'get',
]); ?>
<?= $form->field($model, 'pegawai_id') ?>
<?= $form->field($model, 'jabatan') ?>
<?= $form->field($model, 'deleted') ?>
<?= $form->field($model, 'deleted_at') ?>
<?= $form->field($model, 'deleted_by') ?>
<?php // echo $form->field($model, 'created_at') ?>
<?php // echo $form->field($model, 'created_by') ?>
<?php // echo $form->field($model, 'updated_at') ?>
<?php // echo $form->field($model, 'updated_by') ?>
<div class="form-group">
<?= Html::submitButton('Search', ['class' => 'btn btn-primary']) ?>
<?= Html::resetButton('Reset', ['class' => 'btn btn-default']) ?>
</div>
<?php ActiveForm::end(); ?>
</div>
<?php
use yii\helpers\Html;
/* @var $this yii\web\View */
/* @var $model backend\modules\ubux\models\UbuxPegawai */
$this->title = 'Tambah Pegawai';
$this->params['breadcrumbs'][] = ['label' => 'Ubux Pegawai', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="ubux-pegawai-create">
<h1><?= Html::encode($this->title) ?></h1>
<?= $this->render('_form', [
'model' => $model,
]) ?>
</div>
......@@ -4,19 +4,19 @@ use yii\helpers\Html;
use yii\grid\GridView;
/* @var $this yii\web\View */
/* @var $searchModel backend\modules\ubux\models\UbuxTransaksiKendaraanSearch */
/* @var $searchModel backend\modules\ubux\models\UbuxPegawaiSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */
$this->title = 'Ubux Transaksi Kendaraans';
$this->title = 'Ubux Pegawai';
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="ubux-transaksi-kendaraan-index">
<div class="ubux-pegawai-index">
<h1><?= Html::encode($this->title) ?></h1>
<?php // echo $this->render('_search', ['model' => $searchModel]); ?>
<p>
<?= Html::a('Create Ubux Transaksi Kendaraan', ['create'], ['class' => 'btn btn-success']) ?>
<?= Html::a('Tambah Pegawai', ['create'], ['class' => 'btn btn-success']) ?>
</p>
<?= GridView::widget([
......@@ -25,26 +25,19 @@ $this->params['breadcrumbs'][] = $this->title;
'columns' => [
['class' => 'yii\grid\SerialColumn'],
'transaksi_kendaraan_id',
'nama_perequest_kendaraan',
'deskripsi_penggunaan_kendaraan',
'plat_kendaraan',
'jumlah_penumpang_kendaraan',
// 'tgl_keberangkatan',
// 'jam_keberangkatan_kendaraan',
// 'tgl_kembali_kendaraan',
// 'jam_kembali_kendaraan',
'status_request',
// 'ubux_laporan_pemakaian_kendaraan_id_laporan',
// 'deleted',
// 'deleted_at',
// 'deleted_by',
// 'pegawai_id',
'jabatan',
// 'deleted',
// 'deleted_at',
// 'deleted_by',
// 'created_at',
// 'created_by',
// 'updated_at',
// 'updated_by',
['class' => 'yii\grid\ActionColumn'],
['class' => 'yii\grid\ViewColumn'],
['class' => 'yii\grid\DeleteColumn'],
['class' => 'yii\grid\UpdateColumn'],
],
]); ?>
......
<?php
use yii\helpers\Html;
/* @var $this yii\web\View */
/* @var $model backend\modules\ubux\models\UbuxPegawai */
$this->title = 'Update Ubux Pegawai: ' . ' ' . $model->pegawai_id;
$this->params['breadcrumbs'][] = ['label' => 'Ubux Pegawai', 'url' => ['index']];
$this->params['breadcrumbs'][] = ['label' => $model->pegawai_id, 'url' => ['view', 'id' => $model->pegawai_id]];
$this->params['breadcrumbs'][] = 'Update';
?>
<div class="ubux-pegawai-update">
<h1><?= Html::encode($this->title) ?></h1>
<?= $this->render('_form', [
'model' => $model,
]) ?>
</div>
<?php
use yii\helpers\Html;
use yii\widgets\DetailView;
/* @var $this yii\web\View */
/* @var $model backend\modules\ubux\models\UbuxPegawai */
$this->title = $model->jabatan;
$this->params['breadcrumbs'][] = ['label' => 'Ubux Pegawai', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="ubux-pegawai-view">
<h1><?= Html::encode($this->title) ?></h1>
<p>
<?= Html::a('Update', ['update', 'id' => $model->pegawai_id], ['class' => 'btn btn-primary']) ?>
<?= Html::a('Delete', ['delete', 'id' => $model->pegawai_id], [
'class' => 'btn btn-danger',
'data' => [
'confirm' => 'Are you sure you want to delete this item?',
'method' => 'post',
],
]) ?>
</p>
<?= DetailView::widget([
'model' => $model,
'attributes' => [
// 'pegawai_id',
'jabatan',
// 'deleted',
// 'deleted_at',
// 'deleted_by',
// 'created_at',
// 'created_by',
// 'updated_at',
// 'updated_by',
],
]) ?>
</div>
<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
/* @var $this yii\web\View */
/* @var $model backend\modules\ubux\models\UbuxSupir */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="ubux-supir-form">
<?php $form = ActiveForm::begin(); ?>
<?= $form->field($model, 'name_supir')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'no_telepon_supir')->textInput() ?>
<!--
<?= $form->field($model, 'deleted')->textInput() ?>
<?= $form->field($model, 'deleted_at')->textInput() ?>
<?= $form->field($model, 'deleted_by')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'created_at')->textInput() ?>
<?= $form->field($model, 'created_by')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'updated_at')->textInput() ?>
<?= $form->field($model, 'updated_by')->textInput(['maxlength' => true]) ?>
-->
<div class="form-group">
<?= Html::submitButton($model->isNewRecord ? 'Create' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>
</div>
<?php ActiveForm::end(); ?>
</div>
<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
/* @var $this yii\web\View */
/* @var $model backend\modules\ubux\models\UbuxSupirSearch */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="ubux-supir-search">
<?php $form = ActiveForm::begin([
'action' => ['index'],
'method' => 'get',
]); ?>
<?= $form->field($model, 'supir_id') ?>
<?= $form->field($model, 'name_supir') ?>
<?= $form->field($model, 'no_telepon_supir') ?>
<?= $form->field($model, 'deleted') ?>
<?= $form->field($model, 'deleted_at') ?>
<?php // echo $form->field($model, 'deleted_by') ?>
<?php // echo $form->field($model, 'created_at') ?>
<?php // echo $form->field($model, 'created_by') ?>
<?php // echo $form->field($model, 'updated_at') ?>
<?php // echo $form->field($model, 'updated_by') ?>
<?php // echo $form->field($model, 'pegawai_id') ?>
<div class="form-group">
<?= Html::submitButton('Search', ['class' => 'btn btn-primary']) ?>
<?= Html::resetButton('Reset', ['class' => 'btn btn-default']) ?>
</div>
<?php ActiveForm::end(); ?>
</div>
<?php
use yii\helpers\Html;
/* @var $this yii\web\View */
/* @var $model backend\modules\ubux\models\UbuxSupir */
$this->title = 'Tambah Supir';
$this->params['breadcrumbs'][] = ['label' => 'Tambah Supir', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="ubux-supir-create">
<h1><?= Html::encode($this->title) ?></h1>
<?= $this->render('_form', [
'model' => $model,
]) ?>
</div>
<?php
use yii\helpers\Html;
use yii\grid\GridView;
use yii\helpers\Url;
use common\components\ToolsColumn;
/* @var $this yii\web\View */
/* @var $searchModel backend\modules\ubux\models\UbuxSupirSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */
$this->title = 'Data Semua Supir';
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="ubux-supir-index">
<h1><?= Html::encode($this->title) ?></h1>
<?php // echo $this->render('_search', ['model' => $searchModel]); ?>
<p>
<?= Html::a('Tambah Supir', ['create'], ['class' => 'btn btn-success']) ?>
</p>
<?= GridView::widget([
'dataProvider' => $dataProvider,
'filterModel' => $searchModel,
'columns' => [
['class' => 'yii\grid\SerialColumn'],
// 'supir_id',
'name_supir',
'no_telepon_supir',
// 'deleted',
// 'deleted_at',
// 'deleted_by',
// 'created_at',
// 'created_by',
// 'updated_at',
// 'updated_by',
['class' => 'common\components\ToolsColumn',
'template' => '{view} {update} {delete}',// {edit} {cancel}',
'header' => 'Aksi',
'buttons' => [
'view' => function ($url, $model){
return ToolsColumn::renderCustomButton($url, $model, 'Lihat Rincian', 'fa fa-eye');
},
'update' => function ($url, $model){
return ToolsColumn::renderCustomButton($url, $model, 'Ubah', 'fa fa-pencil');
},
'delete' => function ($url, $model){
return "<li>".Html::a('<span class="fa fa-trash"></span> Hapus', $url, [
'title' => Yii::t('yii', 'Legitimate'),
'data-confirm' => Yii::t('yii', 'Apakah anda yakin ingin menghapus ?'),
'data-method' => 'post',
'data-pjax' => '0',
])."</li>";
},
],
'urlCreator' => function ($action, $model, $key, $index){
if ($action === 'view') {
return Url::toRoute(['view', 'id' => $key]);
}else if ($action === 'update') {
return Url::toRoute(['update', 'id' => $key]);
}else if ($action === 'delete') {
return Url::toRoute(['delete', 'id' => $key]);
}
}
],
],
]); ?>
</div>
<?php
use yii\helpers\Html;
/* @var $this yii\web\View */
/* @var $model backend\modules\ubux\models\UbuxSupir */
$this->title = 'Ubah Supir : ' . ' ' . $model->name_supir;
$this->params['breadcrumbs'][] = ['label' => 'Ubah Supir', 'url' => ['index']];
$this->params['breadcrumbs'][] = ['label' => $model->supir_id, 'url' => ['view', 'id' => $model->supir_id]];
$this->params['breadcrumbs'][] = 'Ubah';
?>
<div class="ubux-supir-update">
<h1><?= Html::encode($this->title) ?></h1>
<?= $this->render('_form', [
'model' => $model,
]) ?>
</div>
<?php
use yii\helpers\Html;
use yii\widgets\DetailView;
/* @var $this yii\web\View */
/* @var $model backend\modules\ubux\models\UbuxSupir */
$this->title = 'Data Supir';
$this->params['breadcrumbs'][] = ['label' => 'Data Supir', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="ubux-supir-view">
<h1><?= Html::encode($this->title) ?></h1>
<p>
<?= Html::a('Ubah', ['update', 'id' => $model->supir_id], ['class' => 'btn btn-primary']) ?>
<?= Html::a('Hapus', ['delete', 'id' => $model->supir_id], [
'class' => 'btn btn-danger',
'data' => [
'confirm' => 'Apakah anda yakin ?',
'method' => 'post',
],
]) ?>
</p>
<?= DetailView::widget([
'model' => $model,
'attributes' => [
// 'supir_id',
'name_supir',
'no_telepon_supir',
// 'deleted',
// 'deleted_at',
// 'deleted_by',
// 'created_at',
// 'created_by',
// 'updated_at',
// 'updated_by',
],
]) ?>
</div>
<?php
/* @var $this yii\web\View */
use yii\helpers\Html;
use yii\bootstrap\Alert;
$this->title = 'Kesalahan';
?>
<div>
<h1><?= Html::encode($this->title) ?></h1>
<?= Alert::widget([
'options' => [
'class' => 'alert-danger',
],
'body' => 'Tidak Bisa Mengubah atau Menghapus karena Sudah Disetujui atau Ditolak',
]);
?>
<?= Html::a('Kembali', ['index'], ['class' => 'btn btn-success']) ?>
</div>
<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
use dosamigos\datetimepicker\DateTimePicker;
/* @var $this yii\web\View */
/* @var $model backend\modules\ubux\models\UbuxTransaksiKendaraanMahasiswaBaru */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="ubux-transaksi-kendaraan-mahasiswa-baru-form">
<?php $form = ActiveForm::begin(); ?>
<!--
<?= $form->field($model, 'dim_id')->textInput() ?>
<?= $form->field($model, 'nama_perequest_kendaraan')->textInput(['maxlength' => true]) ?>
-->
<?= $form->field($model, 'deskripsi_penggunaan_kendaraan')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'tujuan')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'jumlah_penumpang_kendaraan')->textInput() ?>
<?= $form->field($model, 'rencana_waktu_keberangkatan')->widget(DateTimePicker::className(),[
'inline' => false,
'pickButtonIcon' => 'glyphicon glyphicon-time',
'size' => 'ms',
'clientOptions' => [
'autoClose' => true,
'format' => 'yyyy-mm-dd HH:ii:ss',
'todayBtn' => true,
]
]); ?>
<?= $form->field($model, 'rencana_waktu_kembali')->widget(DateTimePicker::className(),[
'inline' => false,
'pickButtonIcon' => 'glyphicon glyphicon-time',
'size' => 'ms',
'clientOptions' => [
'autoClose' => true,
'format' => 'yyyy-mm-dd HH:ii:ss',
'todayBtn' => true,
]
]); ?>
<?= $form->field($model, 'file')->fileInput() ?>
<?= $form->field($model, 'no_telepon')->textInput(['maxlength' => true]) ?>
<!--
<?= $form->field($model, 'deleted')->textInput() ?>
<?= $form->field($model, 'deleted_at')->textInput() ?>
<?= $form->field($model, 'deleted_by')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'created_at')->textInput() ?>
<?= $form->field($model, 'created_by')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'updated_at')->textInput() ?>
<?= $form->field($model, 'updated_by')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'kendaraan_id')->textInput() ?>
<?= $form->field($model, 'supir_id')->textInput() ?>
<?= $form->field($model, 'No_Hp_Supir')->textInput(['maxlength' => true]) ?>
-->
<div class="form-group">
<?= Html::submitButton($model->isNewRecord ? 'Buat' : 'Ubah', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>
</div>
<?php ActiveForm::end(); ?>
</div>
<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
/* @var $this yii\web\View */
/* @var $model backend\modules\ubux\models\UbuxTransaksiKendaraanMahasiswaBaruSearch */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="ubux-transaksi-kendaraan-mahasiswa-baru-search">
<?php $form = ActiveForm::begin([
'action' => ['index'],
'method' => 'get',
]); ?>
<?= $form->field($model, 'transaksi_kendaraan_id') ?>
<?= $form->field($model, 'dim_id') ?>
<?= $form->field($model, 'nama_perequest_kendaraan') ?>
<?= $form->field($model, 'deskripsi_penggunaan_kendaraan') ?>
<?= $form->field($model, 'tujuan') ?>
<?php // echo $form->field($model, 'jumlah_penumpang_kendaraan') ?>
<?php // echo $form->field($model, 'rencana_waktu_keberangkatan') ?>
<?php // echo $form->field($model, 'rencana_waktu_kembali') ?>
<?php // echo $form->field($model, 'status_request_sekertaris_rektorat') ?>
<?php // echo $form->field($model, 'status_request_kemahasiswaan') ?>
<?php // echo $form->field($model, 'proposal') ?>
<?php // echo $form->field($model, 'no_telepon') ?>
<?php // echo $form->field($model, 'deleted') ?>
<?php // echo $form->field($model, 'deleted_at') ?>
<?php // echo $form->field($model, 'deleted_by') ?>
<?php // echo $form->field($model, 'created_at') ?>
<?php // echo $form->field($model, 'created_by') ?>
<?php // echo $form->field($model, 'updated_at') ?>
<?php // echo $form->field($model, 'updated_by') ?>
<?php // echo $form->field($model, 'kendaraan_id') ?>
<?php // echo $form->field($model, 'supir_id') ?>
<?php // echo $form->field($model, 'No_Hp_Supir') ?>
<div class="form-group">
<?= Html::submitButton('Search', ['class' => 'btn btn-primary']) ?>
<?= Html::resetButton('Reset', ['class' => 'btn btn-default']) ?>
</div>
<?php ActiveForm::end(); ?>
</div>
<?php
use yii\helpers\Html;
/* @var $this yii\web\View */
/* @var $model backend\modules\ubux\models\UbuxTransaksiKendaraanMahasiswaBaru */
$this->title = 'Buat Permintaan Kendaraan Mahasiswa';
$this->params['breadcrumbs'][] = ['label' => 'Buat Permintaan Kendaraan Mahasiswa', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="ubux-transaksi-kendaraan-mahasiswa-baru-create">
<h1><?= Html::encode($this->title) ?></h1>
<?= $this->render('_form', [
'model' => $model,
]) ?>
</div>
<?php
use yii\helpers\Html;
use yii\grid\GridView;
use yii\helpers\Url;
/* @var $this yii\web\View */
/* @var $searchModel backend\modules\ubux\models\UbuxTransaksiKendaraanMahasiswaBaruSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */
$this->title = 'Permintaan Kendaraan Mahasiswa';
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="ubux-transaksi-kendaraan-mahasiswa-baru-index">
<h1><?= Html::encode($this->title) ?></h1>
<?php // echo $this->render('_search', ['model' => $searchModel]); ?>
<p>
<?= Html::a('Permintaan Kendaraan Mahasiswa', ['create'], ['class' => 'btn btn-success']) ?>
</p>
<?= GridView::widget([
'dataProvider' => $dataProvider,
'filterModel' => $searchModel,
'columns' => [
['class' => 'yii\grid\SerialColumn'],
// 'transaksi_kendaraan_id',
// 'dim_id',
// 'nama_perequest_kendaraan',
'deskripsi_penggunaan_kendaraan',
'tujuan',
'jumlah_penumpang_kendaraan',
'rencana_waktu_keberangkatan',
'rencana_waktu_kembali',
'status_request_sekertaris_rektorat',
'status_request_kemahasiswaan',
// 'proposal',
// 'no_telepon',
// 'deleted',
// 'deleted_at',
// 'deleted_by',
// 'created_at',
// 'created_by',
// 'updated_at',
// 'updated_by',
// 'kendaraan_id',
// [
// 'attribute' => 'Kendaraan',
// 'value' => 'kendaraan.kendaraan',
// ],
// 'supir_id',
// [
// 'attribute' => 'Supir',
// 'value' => 'supir.name_supir',
// ],
// 'No_Hp_Supir',
[
'class' => 'common\components\ToolsColumn',
'template' => '{view}{edit}{del}',
'urlCreator' => function($action, $model, $key, $index){
if($action === 'view'){
return Url::toRoute(['view', 'id' => $key]);
}
if($action == 'edit'){
return Url::toRoute(['update', 'id' => $key]);
}
if($action == 'del'){
return Url::toRoute(['delete', 'id' => $key]);
}
else{
return Url::toRoute(['pop-up', 'id' => $key]);
}
}
],
],
]); ?>
</div>
<?php
use yii\helpers\Html;
use yii\grid\GridView;
use yii\helpers\Url;
/* @var $this yii\web\View */
/* @var $searchModel backend\modules\ubux\models\UbuxTransaksiKendaraanMahasiswaBaruSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */
$this->title = 'Permintaan Kendaraan Mahasiswa';
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="ubux-transaksi-kendaraan-mahasiswa-baru-index">
<h1><?= Html::encode($this->title) ?></h1>
<?= GridView::widget([
'dataProvider' => $dataProvider,
'filterModel' => $searchModel,
'columns' => [
['class' => 'yii\grid\SerialColumn'],
// 'transaksi_kendaraan_id',
'dim_id',
[
'attribute' => 'NIM',
'value' => 'mahasiswa.nim',
],
'nama_perequest_kendaraan',
'deskripsi_penggunaan_kendaraan',
'tujuan',
'jumlah_penumpang_kendaraan',
// 'rencana_waktu_keberangkatan',
// 'rencana_waktu_kembali',
'status_request_kemahasiswaan',
'status_request_sekertaris_rektorat',
// 'proposal',
// 'no_telepon',
// 'deleted',
// 'deleted_at',
// 'deleted_by',
// 'created_at',
// 'created_by',
// 'updated_at',
// 'updated_by',
// 'kendaraan_id',
// [
// 'attribute' => 'Kendaraan',
// 'value' => 'kendaraan.kendaraan',
// ],
// 'supir_id',
// [
// 'attribute' => 'Supir',
// 'value' => 'supir.name_supir',
// ],
// 'No_Hp_Supir',
[
'class' => 'common\components\ToolsColumn',
'template' => '{view}{acc}{rej}',
'urlCreator' => function($action, $model, $key, $index){
if($action === 'view'){
return Url::toRoute(['view-by-kemahasiswaan', 'id' => $key]);
}
if($action === 'acc'){
return Url::toRoute(['accept', 'id' => $key]);
}
if($action === 'rej'){
return Url::toRoute(['reject', 'id' => $key]);
}
}
],
],
]); ?>
</div>
<?php
use yii\helpers\Html;
/* @var $this yii\web\View */
/* @var $model backend\modules\ubux\models\UbuxTransaksiKendaraanMahasiswaBaru */
$this->title = 'Ubah Permintaan Kendaraan Mahasiswa';
$this->params['breadcrumbs'][] = ['label' => 'Ubah Permitaan Kendaraan Mahasiswa', 'url' => ['index']];
$this->params['breadcrumbs'][] = ['label' => $model->transaksi_kendaraan_id, 'url' => ['view', 'id' => $model->transaksi_kendaraan_id]];
$this->params['breadcrumbs'][] = 'Ubah';
?>
<div class="ubux-transaksi-kendaraan-mahasiswa-baru-update">
<h1><?= Html::encode($this->title) ?></h1>
<?= $this->render('_form', [
'model' => $model,
]) ?>
</div>
<?php
use yii\helpers\Html;
use yii\widgets\DetailView;
/* @var $this yii\web\View */
/* @var $model backend\modules\ubux\models\UbuxTransaksiKendaraanMahasiswaBaru */
$this->title = 'Rincian Permintaan Kendaraan';
$this->params['breadcrumbs'][] = ['label' => 'Permintaan Kendaraan Mahasiswa', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="ubux-transaksi-kendaraan-mahasiswa-baru-view">
<h1><?= Html::encode($this->title) ?></h1>
<p>
<?php
if($model->status_request_kemahasiswaan == 'Menunggu'){
echo Html::a('Ubah', ['update', 'id' => $model->transaksi_kendaraan_id], ['class' => 'btn btn-primary']);
echo Html::a('Hapus', ['delete', 'id' => $model->transaksi_kendaraan_id], [
'class' => 'btn btn-danger',
'data' => [
'confirm' => 'Apakah anda yakin ingin menhapus ?',
'method' => 'post',
],
]);
}else if($model->status_request_sekertaris_rektorat == 'Diterima'){
echo Html::a('Cetak', ['cetak', 'id' => $model->transaksi_kendaraan_id], ['class' => 'btn btn-warning']);
}
?>
</p>
<?= DetailView::widget([
'model' => $model,
'attributes' => [
// 'transaksi_kendaraan_id',
'dim_id',
[
'attribute' => 'NIM',
'value' => $model->mahasiswa->nim,
],
'nama_perequest_kendaraan',
'deskripsi_penggunaan_kendaraan',
'tujuan',
'jumlah_penumpang_kendaraan',
'rencana_waktu_keberangkatan',
'rencana_waktu_kembali',
'status_request_sekertaris_rektorat',
'status_request_kemahasiswaan',
'proposal',
'no_telepon',
// 'deleted',
// 'deleted_at',
// 'deleted_by',
// 'created_at',
// 'created_by',
// 'updated_at',
// 'updated_by',
// 'kendaraan_id',
[
'attribute' => 'Kendaraan',
'value' => $model->kendaraan->kendaraan,
],
// 'supir_id',
[
'attribute' => 'Supir',
'value' => $model->supir->name_supir,
],
'No_Hp_Supir',
],
]) ?>
<?= Html::a('Download Proposal', ['ubux-transaksi-kendaraan-mahasiswa-baru/download', 'id' => $model->transaksi_kendaraan_id], ['class' => 'btn btn-success']) ?>
</div>
<?php
use yii\helpers\Html;
use yii\widgets\DetailView;
/* @var $this yii\web\View */
/* @var $model backend\modules\ubux\models\UbuxTransaksiKendaraanMahasiswaBaru */
$this->title = 'Rincian Permintaan Kendaraan';
$this->params['breadcrumbs'][] = ['label' => 'Permintaan Kendaraan Mahasiswa', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="ubux-transaksi-kendaraan-mahasiswa-baru-view">
<h1><?= Html::encode($this->title) ?></h1>
<p>
<?php
if($model->status_request_sekertaris_rektorat == 'Diterima'){
echo Html::a('Cetak', ['cetak', 'id' => $model->transaksi_kendaraan_id], ['class' => 'btn btn-warning']);
}
?>
</p>
<?= DetailView::widget([
'model' => $model,
'attributes' => [
// 'transaksi_kendaraan_id',
'dim_id',
'nama_perequest_kendaraan',
'deskripsi_penggunaan_kendaraan',
'tujuan',
'jumlah_penumpang_kendaraan',
'rencana_waktu_keberangkatan',
'rencana_waktu_kembali',
'status_request_sekertaris_rektorat',
'status_request_kemahasiswaan',
'proposal',
'no_telepon',
// 'deleted',
// 'deleted_at',
// 'deleted_by',
// 'created_at',
// 'created_by',
// 'updated_at',
// 'updated_by',
// 'kendaraan_id',
[
'attribute' => 'Kendaraan',
'value' => $model->kendaraan->kendaraan,
],
// 'supir_id',
[
'attribute' => 'Supir',
'value' => $model->supir->name_supir,
],
'No_Hp_Supir',
],
]) ?>
<?= Html::a('Download Proposal', ['ubux-transaksi-kendaraan-mahasiswa-baru/download', 'id' => $model->transaksi_kendaraan_id], ['class' => 'btn btn-success']) ?>
</div>
<?php
use yii\helpers\Html;
use yii\widgets\DetailView;
/* @var $this yii\web\View */
/* @var $model backend\modules\ubux\models\UbuxTransaksiKendaraanMahasiswaBaru */
$this->title = 'Request Kendaraan Mahasiswa';
$this->params['breadcrumbs'][] = ['label' => 'Request Kendaraan Mahasiswa', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<style>
.garis{
border: 1px solid black;
}
.tengah{
text-align: center;
}
table, th, td{
border-collapse: collapse;
}
.kolom{
height: 1cm;
}
</style>
<div class="ubux-transaksi-kendaraan-mahasiswa-view">
<table>
<tr>
<td rowspan="2"><img src="gambar/itdel.jpg" style="width: 100px; width: 100px;"></td>
<td style="width: 600px;" class="tengah"><h1><?= Html::encode($this->title) ?></h1></td>
</tr>
<tr>
<td class="tengah"><h2>Institut Teknologi Del</h2></td>
</tr>
</table>
<hr>
<table style="margin-left: 100px; margin-top: 25px;">
<tr>
<td class="kolom">NIM</td>
<td class="kolom">:</td>
<td class="kolom"><?= $model->mahasiswa->nim ?></td>
</tr>
<tr>
<td class="kolom">Nama</td>
<td class="kolom">:</td>
<td class="kolom"><?= $model->nama_perequest_kendaraan ?></td>
</tr>
<tr>
<td class="kolom">Keperluan</td>
<td>:</td>
<td><?= $model->deskripsi_penggunaan_kendaraan ?></td>
</tr>
<tr>
<td class="kolom">Tujuan</td>
<td>:</td>
<td><?= $model->tujuan ?></td>
</tr>
<tr>
<td class="kolom">Jumlah Penumpang</td>
<td>:</td>
<td><?= $model->jumlah_penumpang_kendaraan ?></td>
</tr>
<tr>
<td class="kolom">Waktu Keberangkatan</td>
<td>:</td>
<td><?= $model->rencana_waktu_keberangkatan ?></td>
</tr>
<tr>
<td class="kolom">Waktu Tiba</td>
<td>:</td>
<td><?= $model->rencana_waktu_kembali ?></td>
</tr>
<tr>
<td class="kolom">Status</td>
<td>:</td>
<td><?= $model->status_request_sekertaris_rektorat ?></td>
</tr>
<tr>
<td class="kolom">No Telepon</td>
<td>:</td>
<td><?= $model->no_telepon ?></td>
</tr>
<tr>
<td class="kolom">Kendaraan</td>
<td>:</td>
<td><?= $model->kendaraan->kendaraan ?></td>
</tr>
<tr>
<td class="kolom">Supir</td>
<td>:</td>
<td><?= $model->supir->name_supir ?></td>
</tr>
<tr>
<td class="kolom">No Hp Supir</td>
<td>:</td>
<td><?= $model->No_Hp_Supir ?></td>
</tr>
</table>
<!--
<?//= DetailView::widget([
// 'model' => $model,
// 'attributes' => [
// 'transaksi_kendaraan_id',
// 'nama_perequest_kendaraan',
// 'deskripsi_penggunaan_kendaraan',
// 'tujuan',
// 'jumlah_penumpang_kendaraan',
// 'rencana_waktu_keberangkatan',
// 'rencana_waktu_kembali',
// 'status_request_sekertaris_rektorat',
// 'status_request_kemahasiswaan',
// 'role',
// 'no_telepon',
// 'proposal',
// 'deleted',
// 'deleted_at',
// 'deleted_by',
// 'created_at',
// 'created_by',
// 'updated_at',
// 'updated_by',
// 'kendaraan_id',
// [
// 'attribute' => 'Kendaraan',
// 'value' => $model->kendaraan->kendaraan,
// ],
// [
// 'attribute' => 'Supir',
// 'value' => $model->supir->name_supir,
// ],
// 'No_Hp_Supir',
// ],
// ]) ?>
-->
<br><br><br><br><br><br><br><br><br><br><br><br>
<hr>
<table>
<tr>
<td>Institut Teknologi Del</td>
</tr>
<tr>
<td>Jl. Sisingamangaraja, Sitoluama</td>
</tr>
<tr>
<td>Laguboti 22381, Toba Samosir</td>
</tr>
<tr>
<td>Sumatera Utara</td>
</tr>
<tr>
<td>Telp : +62 632 - 331234, Fax : +62 632 - 331116</td>
</tr>
<tr>
<td>www.del.ac.id</td>
</tr>
</table>
</div>
<?php
/* @var $this yii\web\View */
use yii\helpers\Html;
use yii\bootstrap\Alert;
$this->title = 'Kesalahan';
?>
<div>
<h1><?= Html::encode($this->title) ?></h1>
<?= Alert::widget([
'options' => [
'class' => 'alert-danger',
],
'body' => 'Tidak Bisa Mengubah atau Menghapus karena Sudah Disetujui atau Ditolak',
]);
?>
<?= Html::a('Kembali', ['index'], ['class' => 'btn btn-success']) ?>
</div>
<?php
/* @var $this yii\web\View */
use yii\helpers\Html;
use yii\bootstrap\Alert;
$this->title = 'Kesalahan';
?>
<div>
<h1><?= Html::encode($this->title) ?></h1>
<?= Alert::widget([
'options' => [
'class' => 'alert-danger',
],
'body' => 'Tidak Bisa Mengubah atau Menghapus karena Sudah Disetujui atau Ditolak',
]);
?>
<?= Html::a('Kembali', ['index-by-pegawai'], ['class' => 'btn btn-success']) ?>
</div>
<?php
/* @var $this yii\web\View */
use yii\helpers\Html;
use yii\bootstrap\Alert;
$this->title = 'Kesalahan';
?>
<div>
<h1><?= Html::encode($this->title) ?></h1>
<?= Alert::widget([
'options' => [
'class' => 'alert-danger',
],
'body' => 'Tidak Bisa Mengubah atau Menghapus karena Sudah Disetujui atau Ditolak',
]);
?>
<?= Html::a('Kembali', ['index-by-pribadi'], ['class' => 'btn btn-success']) ?>
</div>
<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
use dosamigos\datetimepicker\DateTimePicker;
use common\helpers\ArrayHelper;
use backend\modules\ubux\models\UbuxKendaraan;
/* @var $this yii\web\View */
/* @var $model backend\modules\ubux\models\UbuxTransaksiKendaraanMahasiswa */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="ubux-transaksi-kendaraan-mahasiswa-form">
<?php $form = ActiveForm::begin(['options' => ['enctype' => 'multipart/form-data']]); ?>
<?= $form->field($model, 'nama_perequest_kendaraan')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'deskripsi_penggunaan_kendaraan')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'tujuan')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'jumlah_penumpang_kendaraan')->textInput() ?>
<?= $form->field($model, 'rencana_waktu_keberangkatan')->widget(DateTimePicker::className(),[
'inline' => false,
'pickButtonIcon' => 'glyphicon glyphicon-time',
'size' => 'ms',
'clientOptions' => [
'autoClose' => true,
'format' => 'yyyy-mm-dd HH:ii:ss',
'todayBtn' => true,
]
]); ?>
<?= $form->field($model, 'rencana_waktu_kembali')->widget(DateTimePicker::className(),[
'inline' => false,
'pickButtonIcon' => 'glyphicon glyphicon-time',
'size' => 'ms',
'clientOptions' => [
'autoClose' => true,
'format' => 'yyyy-mm-dd HH:ii:ss',
'todayBtn' => true,
]
]); ?>
<!--
<?= $form->field($model, 'status_request_sekertaris_rektorat')->dropDownList([ 'Menunggu' => 'Menunggu', 'Diterima' => 'Diterima', 'Ditolak' => 'Ditolak', ], ['prompt' => '']) ?>
<?= $form->field($model, 'status_request_kemahasiswaan')->dropDownList([ 'Menunggu' => 'Menunggu', 'Diterima' => 'Diterima', 'Ditolak' => 'Ditolak', ], ['prompt' => '']) ?>
<?= $form->field($model, 'role')->dropDownList([ 'Mahasiswa' => 'Mahasiswa', 'Pegawai' => 'Pegawai', ], ['prompt' => '']) ?>
<?= $form->field($model, 'proposal')->textInput(['maxlength' => true]) ?>
-->
<?= $form->field($model, 'file')->fileInput(); ?>
<?= $form->field($model, 'no_telepon')->textInput(['maxlength' => true]) ?>
<!--
<?= $form->field($model, 'deleted')->textInput() ?>
<?= $form->field($model, 'deleted_at')->textInput() ?>
<?= $form->field($model, 'deleted_by')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'created_at')->textInput() ?>
<?= $form->field($model, 'created_by')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'updated_at')->textInput() ?>
<?= $form->field($model, 'updated_by')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'kendaraan_id')->dropDownList(
ArrayHelper::map(UbuxKendaraan::find()->select([
'kendaraan_id', 'kendaraan'
])->all(), 'kendaraan_id', 'kendaraan'),
['prompt' => 'Pilih Kendaraan']
) ?>
-->
<div class="form-group">
<?= Html::submitButton($model->isNewRecord ? 'Buat' : 'Ubah', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>
</div>
<?php ActiveForm::end(); ?>
</div>
<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
use dosamigos\datetimepicker\DateTimePicker;
use common\helpers\ArrayHelper;
use backend\modules\ubux\models\UbuxKendaraan;
/* @var $this yii\web\View */
/* @var $model backend\modules\ubux\models\UbuxTransaksiKendaraanMahasiswa */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="ubux-transaksi-kendaraan-mahasiswa-form">
<h1>Request Kendaraan by Pegawai</h1>
<?php $form = ActiveForm::begin(['options' => ['enctype' => 'multipart/form-data']]); ?>
<?= $form->field($model, 'nama_perequest_kendaraan')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'deskripsi_penggunaan_kendaraan')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'tujuan')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'jumlah_penumpang_kendaraan')->textInput() ?>
<?= $form->field($model, 'rencana_waktu_keberangkatan')->widget(DateTimePicker::className(),[
'inline' => false,
'pickButtonIcon' => 'glyphicon glyphicon-time',
'size' => 'ms',
'clientOptions' => [
'autoClose' => true,
'format' => 'yyyy-mm-dd HH:ii:ss',
'todayBtn' => true,
]
]); ?>
<?= $form->field($model, 'rencana_waktu_kembali')->widget(DateTimePicker::className(),[
'inline' => false,
'pickButtonIcon' => 'glyphicon glyphicon-time',
'size' => 'ms',
'clientOptions' => [
'autoClose' => true,
'format' => 'yyyy-mm-dd HH:ii:ss',
'todayBtn' => true,
]
]); ?>
<!--
<?= $form->field($model, 'status_request_sekertaris_rektorat')->dropDownList([ 'Menunggu' => 'Menunggu', 'Diterima' => 'Diterima', 'Ditolak' => 'Ditolak', ], ['prompt' => '']) ?>
<?= $form->field($model, 'status_request_kemahasiswaan')->dropDownList([ 'Menunggu' => 'Menunggu', 'Diterima' => 'Diterima', 'Ditolak' => 'Ditolak', ], ['prompt' => '']) ?>
<?= $form->field($model, 'role')->dropDownList([ 'Mahasiswa' => 'Mahasiswa', 'Pegawai' => 'Pegawai', ], ['prompt' => '']) ?>
<?= $form->field($model, 'proposal')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'file')->fileInput(); ?>
-->
<?= $form->field($model, 'no_telepon')->textInput(['maxlength' => true]) ?>
<!--
<?= $form->field($model, 'deleted')->textInput() ?>
<?= $form->field($model, 'deleted_at')->textInput() ?>
<?= $form->field($model, 'deleted_by')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'created_at')->textInput() ?>
<?= $form->field($model, 'created_by')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'updated_at')->textInput() ?>
<?= $form->field($model, 'updated_by')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'kendaraan_id')->dropDownList(
ArrayHelper::map(UbuxKendaraan::find()->select([
'kendaraan_id', 'kendaraan'
])->all(), 'kendaraan_id', 'kendaraan'),
['prompt' => 'Pilih Kendaraan']
) ?>
-->
<div class="form-group">
<?= Html::submitButton($model->isNewRecord ? 'Buat' : 'Ubah', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>
</div>
<?php ActiveForm::end(); ?>
</div>
<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
use dosamigos\datetimepicker\DateTimePicker;
use common\helpers\ArrayHelper;
use backend\modules\ubux\models\UbuxKendaraan;
/* @var $this yii\web\View */
/* @var $model backend\modules\ubux\models\UbuxTransaksiKendaraanMahasiswa */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="ubux-transaksi-kendaraan-mahasiswa-form">
<h1>Request Kendaraan by Pribadi</h1>
<?php $form = ActiveForm::begin(['options' => ['enctype' => 'multipart/form-data']]); ?>
<?= $form->field($model, 'nama_perequest_kendaraan')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'deskripsi_penggunaan_kendaraan')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'tujuan')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'jumlah_penumpang_kendaraan')->textInput() ?>
<?= $form->field($model, 'rencana_waktu_keberangkatan')->widget(DateTimePicker::className(),[
'inline' => false,
'pickButtonIcon' => 'glyphicon glyphicon-time',
'size' => 'ms',
'clientOptions' => [
'autoClose' => true,
'format' => 'yyyy-mm-dd HH:ii:ss',
'todayBtn' => true,
]
]); ?>
<?= $form->field($model, 'rencana_waktu_kembali')->widget(DateTimePicker::className(),[
'inline' => false,
'pickButtonIcon' => 'glyphicon glyphicon-time',
'size' => 'ms',
'clientOptions' => [
'autoClose' => true,
'format' => 'yyyy-mm-dd HH:ii:ss',
'todayBtn' => true,
]
]); ?>
<!--
<?= $form->field($model, 'status_request_sekertaris_rektorat')->dropDownList([ 'Menunggu' => 'Menunggu', 'Diterima' => 'Diterima', 'Ditolak' => 'Ditolak', ], ['prompt' => '']) ?>
<?= $form->field($model, 'status_request_kemahasiswaan')->dropDownList([ 'Menunggu' => 'Menunggu', 'Diterima' => 'Diterima', 'Ditolak' => 'Ditolak', ], ['prompt' => '']) ?>
<?= $form->field($model, 'role')->dropDownList([ 'Mahasiswa' => 'Mahasiswa', 'Pegawai' => 'Pegawai', ], ['prompt' => '']) ?>
<?= $form->field($model, 'proposal')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'file')->fileInput(); ?>
-->
<?= $form->field($model, 'no_telepon')->textInput(['maxlength' => true]) ?>
<!--
<?= $form->field($model, 'deleted')->textInput() ?>
<?= $form->field($model, 'deleted_at')->textInput() ?>
<?= $form->field($model, 'deleted_by')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'created_at')->textInput() ?>
<?= $form->field($model, 'created_by')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'updated_at')->textInput() ?>
<?= $form->field($model, 'updated_by')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'kendaraan_id')->dropDownList(
ArrayHelper::map(UbuxKendaraan::find()->select([
'kendaraan_id', 'kendaraan'
])->all(), 'kendaraan_id', 'kendaraan'),
['prompt' => 'Pilih Kendaraan']
) ?>
-->
<div class="form-group">
<?= Html::submitButton($model->isNewRecord ? 'Buat' : 'Ubah', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>
</div>
<?php ActiveForm::end(); ?>
</div>
<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
use common\helpers\ArrayHelper;
use backend\modules\ubux\models\UbuxKendaraan;
use backend\modules\ubux\models\UbuxSupir;
/* @var $this yii\web\View */
/* @var $model backend\modules\ubux\models\UbuxTransaksiKendaraanMahasiswa */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="ubux-transaksi-kendaraan-mahasiswa-form">
<h1>Catatan :</h1>
<?php $form = ActiveForm::begin(); ?>
<?= $form->field($model, 'kendaraan_id')->dropDownList(
ArrayHelper::map(UbuxKendaraan::find()->select([
'kendaraan_id', 'kendaraan'
])->all(), 'kendaraan_id', 'kendaraan'),
['prompt' => 'Pilih Kendaraan']
) ?>
<?= $form->field($model, 'supir_id')->dropDownList(
ArrayHelper::map(UbuxSupir::find()->select([
'supir_id', 'name_supir'
])->all(), 'supir_id', 'name_supir'),
['prompt' => 'Pilih Supir']
) ?>
<!--
<?= $form->field($model, 'No_Hp_Supir')->textInput(['maxlength' => true]) ?>
-->
<div class="form-group">
<?= Html::submitButton($model->isNewRecord ? 'Buat' : 'Tambah', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-success']) ?>
</div>
<?php ActiveForm::end(); ?>
</div>
......@@ -4,11 +4,11 @@ use yii\helpers\Html;
use yii\widgets\ActiveForm;
/* @var $this yii\web\View */
/* @var $model backend\modules\ubux\models\UbuxTransaksiKendaraanSearch */
/* @var $model backend\modules\ubux\models\UbuxTransaksiKendaraanMahasiswaSearch */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="ubux-transaksi-kendaraan-search">
<div class="ubux-transaksi-kendaraan-mahasiswa-search">
<?php $form = ActiveForm::begin([
'action' => ['index'],
......@@ -21,21 +21,19 @@ use yii\widgets\ActiveForm;
<?= $form->field($model, 'deskripsi_penggunaan_kendaraan') ?>
<?= $form->field($model, 'plat_kendaraan') ?>
<?= $form->field($model, 'jumlah_penumpang_kendaraan') ?>
<?php // echo $form->field($model, 'tgl_keberangkatan') ?>
<?= $form->field($model, 'rencana_waktu_keberangkatan') ?>
<?php // echo $form->field($model, 'jam_keberangkatan_kendaraan') ?>
<?php // echo $form->field($model, 'rencana_waktu_kembali') ?>
<?php // echo $form->field($model, 'tgl_kembali_kendaraan') ?>
<?php // echo $form->field($model, 'status_request_sekertaris_rektorat') ?>
<?php // echo $form->field($model, 'jam_kembali_kendaraan') ?>
<?php // echo $form->field($model, 'status_request_kemahasiswaan') ?>
<?php // echo $form->field($model, 'status_request') ?>
<?php // echo $form->field($model, 'role') ?>
<?php // echo $form->field($model, 'ubux_laporan_pemakaian_kendaraan_id_laporan') ?>
<?php // echo $form->field($model, 'proposal') ?>
<?php // echo $form->field($model, 'deleted') ?>
......@@ -51,9 +49,11 @@ use yii\widgets\ActiveForm;
<?php // echo $form->field($model, 'updated_by') ?>
<?php // echo $form->field($model, 'kendaraan_id') ?>
<div class="form-group">
<?= Html::submitButton('Search', ['class' => 'btn btn-primary']) ?>
<?= Html::resetButton('Reset', ['class' => 'btn btn-default']) ?>
<?= Html::submitButton('Cari', ['class' => 'btn btn-primary']) ?>
<?= Html::resetButton('Ulang', ['class' => 'btn btn-default']) ?>
</div>
<?php ActiveForm::end(); ?>
......
<?php
use yii\helpers\Html;
/* @var $this yii\web\View */
/* @var $model backend\modules\ubux\models\UbuxTransaksiKendaraanMahasiswa */
$this->title = 'Permintaan Kendaraan oleh Mahasiswa';
$this->params['breadcrumbs'][] = ['label' => 'Permintaan Kendaraan Mahasiswa', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="ubux-transaksi-kendaraan-mahasiswa-create">
<h1><?= Html::encode($this->title) ?></h1>
<?= $this->render('_form', [
'model' => $model,
]) ?>
</div>
<?php
use yii\helpers\Html;
use yii\grid\GridView;
use yii\helpers\Url;
use yii\bootstrap\Alert;
/* @var $this yii\web\View */
/* @var $searchModel backend\modules\ubux\models\UbuxTransaksiKendaraanMahasiswaSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */
$this->title = 'Data Permintaan Kendaraan Mahasiswa';
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="ubux-transaksi-kendaraan-mahasiswa-index">
<h1><?= Html::encode($this->title) ?></h1>
<?php // echo $this->render('_search', ['model' => $searchModel]); ?>
<p>
<?= Html::a('Buat Permintaan Kendaraan', ['create'], ['class' => 'btn btn-success']) ?>
</p>
<?= GridView::widget([
'dataProvider' => $dataProvider,
'filterModel' => $searchModel,
'columns' => [
['class' => 'yii\grid\SerialColumn'],
// 'transaksi_kendaraan_id',
'nama_perequest_kendaraan',
'deskripsi_penggunaan_kendaraan',
'tujuan',
// 'jumlah_penumpang_kendaraan',
'rencana_waktu_keberangkatan',
'rencana_waktu_kembali',
// 'status_request_kemahasiswaan',
'role',
// 'proposal',
// 'deleted',
// 'deleted_at',
// 'deleted_by',
// 'created_at',
// 'created_by',
// 'updated_at',
// 'updated_by',
// 'kendaraan_id',
[
'attribute' => 'Kendaraan',
'value' => 'kendaraan.kendaraan',
],
'status_request_sekertaris_rektorat',
[
'class' => 'common\components\ToolsColumn',
'template' => '{view}{edit}{del}',
'urlCreator' => function($action, $model, $key, $index){
if($action === 'view'){
return Url::toRoute(['view', 'id' => $key]);
}
if($model->status_request_sekertaris_rektorat == 'Menunggu'){
if($action == 'edit'){
return Url::toRoute(['update', 'id' => $key]);
}
if($action == 'del'){
return Url::toRoute(['delete', 'id' => $key]);
}
}else{
return Url::toRoute(['pop-up', 'id' => $key]);
}
}
],
],
]); ?>
</div>
<?php
use yii\helpers\Html;
use yii\grid\GridView;
use yii\helpers\Url;
use yii\bootstrap\Alert;
/* @var $this yii\web\View */
/* @var $searchModel backend\modules\ubux\models\UbuxTransaksiKendaraanMahasiswaSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */
$this->title = 'Data Permintaan Kendaraan Pribadi';
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="ubux-transaksi-kendaraan-mahasiswa-index">
<h1><?= Html::encode($this->title) ?></h1>
<?php // echo $this->render('_search', ['model' => $searchModel]); ?>
<?= GridView::widget([
'dataProvider' => $dataProvider,
'filterModel' => $searchModel,
'columns' => [
['class' => 'yii\grid\SerialColumn'],
// 'transaksi_kendaraan_id',
'nama_perequest_kendaraan',
'deskripsi_penggunaan_kendaraan',
'tujuan',
// 'jumlah_penumpang_kendaraan',
// 'rencana_waktu_keberangkatan',
// 'rencana_waktu_kembali',
// 'status_request_kemahasiswaan',
// 'role',
// 'proposal',
// 'deleted',
// 'deleted_at',
// 'deleted_by',
// 'created_at',
// 'created_by',
// 'updated_at',
// 'updated_by',
// 'kendaraan_id',
// [
// 'attribute' => 'Kendaraan',
// 'value' => 'kendaraan.kendaraan',
// ],
[
'attribute' => 'Status Request Sekertaris Rektorat',
'value' => 'status_request_sekertaris_rektorat',
],
'status_request_kabiro_KSD',
'status_request_hrd',
'status_request_keuangan',
'status_request_wr2',
[
'class' => 'common\components\ToolsColumn',
'template' => '{view}{acc}{rej}',
'urlCreator' => function($action, $model, $key, $index){
if($action === 'view'){
return Url::toRoute(['view-by-hrd', 'id' => $key]);
}
if($action === 'acc'){
return Url::toRoute(['accept-by-hrd', 'id' => $key]);
}
if($action === 'rej'){
return Url::toRoute(['reject-by-hrd', 'id' => $key]);
}
}
],
],
]); ?>
</div>
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment