2021-12-27 16:50:17 +03:00
|
|
|
<?php
|
|
|
|
|
|
|
|
use yii\helpers\Html;
|
|
|
|
|
|
|
|
/* @var $this yii\web\View */
|
|
|
|
/* @var $model backend\modules\document\models\Template */
|
|
|
|
|
2022-01-07 15:04:11 +03:00
|
|
|
$this->title = 'Изменить шаблон: ' . cut_title($model->title);
|
2021-12-27 16:50:17 +03:00
|
|
|
$this->params['breadcrumbs'][] = ['label' => 'Templates', 'url' => ['index']];
|
|
|
|
$this->params['breadcrumbs'][] = ['label' => $model->title, 'url' => ['view', 'id' => $model->id]];
|
|
|
|
$this->params['breadcrumbs'][] = 'Update';
|
2022-01-07 15:04:11 +03:00
|
|
|
|
|
|
|
function cut_title($str)
|
|
|
|
{
|
|
|
|
if(strlen($str) > 35){
|
|
|
|
return mb_substr($str, 0, 25, 'UTF-8') . '...';
|
|
|
|
}
|
|
|
|
return $str;
|
|
|
|
}
|
2021-12-27 16:50:17 +03:00
|
|
|
?>
|
|
|
|
<div class="template-update">
|
|
|
|
|
|
|
|
<?= $this->render('_form', [
|
|
|
|
'model' => $model,
|
|
|
|
]) ?>
|
|
|
|
|
|
|
|
</div>
|