<?php

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

/* @var $this yii\web\View */
/* @var $model common\models\Engravings */
/* @var $form yii\widgets\ActiveForm */
?>

<div class="engravings-form">

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

    <?= $this->render('../items/_form', [
        'model' => $model,
        'form' => $form,
        'fileAPIUrl' => ['/engravings/fileapi-upload']
    ]) ?>

    <div class="form-group">
        <?= Html::submitButton($model->isNewRecord ? 'Добавить' : 'Обновить', ['class' => $model->isNewRecord ? 'btn btn-success pull-right' : 'btn btn-primary pull-right']) ?>
    </div>

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

</div>
