<commit_before><?php

use common\helpers\Html;
use common\models\issue\form\SummonForm;
use common\models\user\Worker;
use common\widgets\ActiveForm;
use common\widgets\address\CitySimcInputWidget;
use common\widgets\DateTimeWidget;
use common\widgets\DateWidget;
use kartik\select2\Select2;
use yii\web\View;

/* @var $this View */
/* @var $model SummonForm */

?>
	<div class="summon-form">

		<?php $form = ActiveForm::begin([
			'id' => 'summon-form',
		]); ?>

		<div class="row">
			<?= Yii::$app->user->can(Worker::PERMISSION_SUMMON_MANAGER)
				? $form->field($model, 'doc_types_ids', [
					'options' => [
						'class' => 'col-md-12',
					],
				])->widget(Select2::class, [
						'data' => SummonForm::getDocNames(),
						'options' => [
							'multiple' => true,
							'placeholder' => $model->getAttributeLabel('doc_types_ids'),
						],
						'pluginOptions' => [
							'allowClear' => true,
						],
					]
				)
				: ''
			?>
		</div>

		<div class="row">
			<?= $form->field($model, 'title', [
				'options' => [
					'class' => 'col-md-7',<commit_msg>feat: render always doc_types_ids field for Summon Form with disabled options.<commit_after><?php

use common\helpers\Html;
use common\models\issue\form\SummonForm;
use common\models\user\Worker;
use common\widgets\ActiveForm;
use common\widgets\address\CitySimcInputWidget;
use common\widgets\DateTimeWidget;
use common\widgets\DateWidget;
use kartik\select2\Select2;
use yii\web\View;

/* @var $this View */
/* @var $model SummonForm */

?>
	<div class="summon-form">

		<?php $form = ActiveForm::begin([
			'id' => 'summon-form',
		]); ?>

		<div class="row">
			<?= $form->field($model, 'doc_types_ids', [
				'options' => [
					'class' => 'col-md-12',
				],

			])->widget(Select2::class, [
					'data' => SummonForm::getDocNames(),
					'options' => [
						'multiple' => true,
						'placeholder' => $model->getAttributeLabel('doc_types_ids'),
					],
					'pluginOptions' => [
						'allowClear' => true,
						'disabled' => !(
							Yii::$app->user->can(Worker::PERMISSION_SUMMON_MANAGER)
							|| (!$model->getModel()->isNewRecord && $model->getModel()->owner_id === Yii::$app->user->getId())
						),
					],
				]
			)

			?>
		</div>

		<div class="row">
			<?= $form->field($model, 'title', [
				'options' => [
					'class' => 'col-md-7',
{'fraction_non_alphanumeric': 0.20463320463320464, 'fraction_numerical': 0.005148005148005148, 'mean_word_length': 3.232304900181488, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 58, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3864868', 'n_tokens_mistral': 1026, 'n_tokens_neox': 834, 'n_words': 131}