| Current Path : /var/www/html/sprm/backend/views/keratan-akhbar/ |
| Current File : /var/www/html/sprm/backend/views/keratan-akhbar/_search.php |
<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
/* @var $this yii\web\View */
/* @var $model backend\models\KeratanAkhbarSearch */
/* @var $form yii\widgets\ActiveForm */
$r = Yii::$app->request->get('r');
$this->registerJs(
<<<JS
$('#more').click(function(){
$('#mtitle').toggleClass('show');
});
$('.datepicker').datepicker(
{'format':'dd/mm/yyyy'}
);
JS
);
?>
<style>
.show{
max-height:150px !important;
}
#mtitle{
max-height:0;
overflow:hidden;
transition:all 0.5s linear;
-webkit-transition:all 0.5s linear;
-moz-transition:all 0.5s linear 0.5s;
-ms-transition:all 0.5s linear;
-o-transition:all 0.5s linear;
}
.arrow-down {
width: 0;
height: 0;
border-left: 5px solid transparent;
border-right: 5px solid transparent;
border-top: 5px solid #eee;
margin:auto;
}
</style>
<div class="keratan-akhbar-search">
<?php $form = ActiveForm::begin([
'action' => ['index'],
'method' => 'get',
'options' => [
'data-pjax' => 1
],
]); ?>
<?php // $form->field($model, 'keratan_akhbar_id') ?>
<div class="col-md-8" style="border-right: 1px solid #eee;">
<div class="row">
<?= $form->field($model, 'keratan_akhbar_title_my',['options'=>['class' => 'col-md-6']])->textInput(['placeholder' => 'Tajuk My..'])->label(false); ?>
<?= $form->field($model, 'keratan_akhbar_title_en',['options'=>['class' => 'col-md-6']])->textInput(['placeholder' => 'Tajuk En..'])->label(false); ?>
</div>
<div class="row" id="mtitle">
<?= $form->field($model, 'keratan_akhbar_publish_date',['options'=>['class' => 'col-md-6']])->textInput(['class'=>'datepicker form-control','placeholder' => 'Tarikh Penerbitan..'])->label(false); ?>
<?= $form->field($model, 'keratan_akhbar_end_date',['options'=>['class' => 'col-md-6']])->textInput(['class'=>'datepicker form-control','placeholder' => 'Tarikh Tamat..'])->label(false); ?>
</div>
</div>
<?php // $form->field($model, 'keratan_akhbar_content_my') ?>
<?php // $form->field($model, 'keratan_akhbar_content_en') ?>
<?php // echo $form->field($model, 'keratan_akhbar_image') ?>
<?php // echo $form->field($model, 'keratan_akhbar_status') ?>
<?php // echo $form->field($model, 'keratan_akhbar_publish_date') ?>
<?php // echo $form->field($model, 'keratan_akhbar_end_date') ?>
<?php // echo $form->field($model, 'keratan_akhbar_url') ?>
<?php // echo $form->field($model, 'keratan_akhbar_sorting') ?>
<?php // echo $form->field($model, 'keratan_akhbar_hit_counter') ?>
<?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="col-md-4">
<div class="form-group" id="buttonGroup">
<?= Html::a('<i class="fa fa-caret-down"></i>','#', ['class' => 'btn btn-default','id'=>'more']) ?>
<?= Html::submitButton(Yii::t('app', 'Cari'), ['class' => 'btn btn-default']) ?>
<?= Html::resetButton(Yii::t('app', 'Semula'), ['class' => 'btn btn-default']) ?>
<?= Html::a('(+) Keratan Akhbar',['keratan-akhbar/create'], ['class' => 'btn btn-primary']) ?>
</div>
</div>
<?php ActiveForm::end(); ?>
<div class="clearfix"></div>
<div class="arrow-down"></div>
</div>