PHP Classes

File: views/backend/media/_form.php

Recommend this page to a friend!
  Classes of Gabriel Alejandro López López   Yii2 Website Module   views/backend/media/_form.php   Download  
File: views/backend/media/_form.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Yii2 Website Module
Add a content page management system to a site
Author: By
Last change:
Date: 1 month ago
Size: 875 bytes
 

Contents

Class file image Download
<?php

use yii\helpers\Html;
use
yii\widgets\ActiveForm;

/* @var $this yii\web\View */
/* @var $model backend\models\Media */
/* @var $form yii\bootstrap4\ActiveForm */
?>

<div class="media-form">

    <?php $form = ActiveForm::begin(); ?>

    <?= $form->field($model, 'website_id')->textInput() ?>

    <?= $form->field($model, 'mime_type')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'filename')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'created_at')->textInput() ?>

    <?= $form->field($model, 'updated_at')->textInput() ?>

    <?= $form->field($model, 'created_by')->textInput() ?>

    <?= $form->field($model, 'updated_by')->textInput() ?>

    <div class="form-group">
        <?= Html::submitButton(Yii::t('website','Save'), ['class' => 'btn btn-success']) ?>
</div>

    <?php ActiveForm::end(); ?>

</div>