Your IP : 216.73.216.79


Current Path : /var/www/html/hr/views/schedule/
Upload File :
Current File : /var/www/html/hr/views/schedule/_search.php

<?php

use yii\helpers\Html;
use yii\widgets\ActiveForm;
use yii\helpers\ArrayHelper;
use app\models\PublicHolidays;

$this->registerCss(".form-search .form-control{margin:0;}
    .topsection-search label{margin-right:1em;}
    #schedulesearch-name{width:400px;}");

$this->registerJs("$('.datepicker').datepicker({
    rtl: KTUtil.isRTL(),
    todayHighlight: true,
    orientation: 'bottom left',
    format: 'yyyy-mm-dd',
    clearBtn: true,
    todayHighlight: true,
});");
?>
<div class="topsection-search mt-4 mb-4">
    <?php $form = ActiveForm::begin(['action' => ['index'], 'method' => 'get', 'options' => ['class' => 'form-inline form-search']]); ?>
    <?= $form->field($model, 'name')->textInput(['class' => 'form-control mr-3', 'placeholder' => 'Search by name'])->label(false); ?>
    <div class="input-daterange input-group mr-3" id="kt_datepicker_4_4">
        <?= Html::activeTextInput($model, 'start_dt', ['placeholder' => 'Start date', 'class' => 'form-control', 'readonly' => true]); ?>
        <div class="input-group-append"><span class="input-group-text"><i class="la la-ellipsis-h"></i></span></div>
        <?= Html::activeTextInput($model, 'end_dt', ['placeholder' => 'End date', 'class' => 'form-control', 'readonly' => true]); ?>
    </div>
    <div class="form-group">
        &nbsp;&nbsp;<?= Html::submitButton('Search', ['class' => 'btn btn-brand']) ?>
        &nbsp;&nbsp;<?= Html::a('Reset', ['index'], ['class' => 'btn btn-outline-brand']) ?>
        &nbsp;&nbsp;<?= Html::a('Add ' . $this->title, ['create'], ['class' => 'btn btn-brand']) ?>
    </div>
    <?php ActiveForm::end(); ?>
</div>