Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- use yii\helpers\Html;
- use yii\bootstrap\ActiveForm;
- use yii\web\JsExpression;
- use kartik\widgets\TimePicker;
- use yii\bootstrap4\Modal;
- use kartik\date\DatePicker;
- use trntv\filekit\widget\Upload;
- use kartik\widget\FileInput;
- /* @var $this yii\web\View */
- /* @var $model backend\models\Event */
- /* @var $form yii\bootstrap\ActiveForm */
- ?>
- <div class="event-form">
- <?php $form = ActiveForm::begin(['id' => 'event-form', 'options' => ['enctype' => 'multipart/form-data']]); ?>
- <?php echo $form->errorSummary($model); ?>
- <?php echo $form->field($model, 'nama')->textInput(['maxlength' => true]) ?>
- <?php echo $form->field($model, 'harga')->textInput() ?>
- <?= $form->field($model, 'url_gambar')->widget(
- Upload::class,
- [
- 'id' => 'inputgambar',
- 'url' => ['/file/storage/upload'],
- 'maxFileSize' => 5000000, // 5 MiB
- ]);?>
- <?php echo $form->field($model, 'waktu')->widget(TimePicker::classname(), []); ?>
- <?php echo $form->field($model, 'tgl_mulai')->widget(DatePicker::classname(), [
- 'options' => ['placeholder' => 'Input tanggal mulai ...'],
- 'pluginOptions' => [
- 'autoclose'=>true
- ]
- ]); ?>
- <?php echo $form->field($model, 'tgl_akhir')->widget(DatePicker::classname(), [
- 'options' => ['placeholder' => 'Input tanggal berakhir ...'],
- 'pluginOptions' => [
- 'autoclose'=>true
- ]
- ]); ?>
- <?php echo $form->field($model, 'lokasi')->textInput(['maxlength' => true]) ?>
- <?php echo $form->field($model, 'get_point')->textInput() ?>
- <?php echo $form->field($model, 'artikel')->textInput() ?>
- <?php echo $form->field($model, 'jenis')->textInput(['maxlength' => true]) ?>
- <div class="form-group">
- <?php echo Html::submitButton('<i class="fa fa-save"></i> ' . translateText('Save'), ['class' => 'btn btn-success']) ?>
- </div>
- <?php ActiveForm::end(); ?>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement