<commit_before><?php

use yii\helpers\Url;

use frenzelgmbh\cmcommunication\models\CommunicationType;

use kartik\helpers\Html;
use kartik\widgets\ActiveForm;
use kartik\widgets\Select2;

use yii\bootstrap\Modal;

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

<?php 
  
Modal::begin([
  'id'=>'ccomtype',
  'header' => '<i class="fa fa-info"></i>Loading...',
]);
echo 'pls. wait one moment...';
Modal::end();

$modalJS = <<<MODALJS

openccomtypemod = function(){
    var th=$(this), id=th.attr('id').slice(0);  
    $('#ccomtype').modal('show');
    $('#ccomtype div.modal-header').html('Add Address');
    $('#ccomtype div.modal-body').load(th.attr('href'));
    return false;
};

$('#mod_communication_type_add').on('click',openccomtypemod);

MODALJS;

  $this->registerJs($modalJS);

?>

<div class="communication-form">

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

    <?php
        echo $form->field($model, 'communication_type_id')->widget(Select2::classname(), [<commit_msg>add close button<commit_after><?php

use yii\helpers\Url;

use frenzelgmbh\cmcommunication\models\CommunicationType;

use kartik\helpers\Html;
use kartik\widgets\ActiveForm;
use kartik\widgets\Select2;

use yii\bootstrap\Modal;

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

<?php 
  
Modal::begin([
  'id'=>'ccomtype',
  'header' => '<i class="fa fa-info"></i>Loading...',
  'closeButton' => ['tag'=>'button','label'=>'close']
]);
echo 'pls. wait one moment...';
Modal::end();

$modalJS = <<<MODALJS

openccomtypemod = function(){
    var th=$(this), id=th.attr('id').slice(0);  
    $('#ccomtype').modal('show');
    $('#ccomtype div.modal-header').html('Add Address');
    $('#ccomtype div.modal-body').load(th.attr('href'));
    return false;
};

$('#mod_communication_type_add').on('click',openccomtypemod);

MODALJS;

  $this->registerJs($modalJS);

?>

<div class="communication-form">

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

    <?php
        echo $form->field($model, 'communication_type_id')->widget(Select2::classname(), [
{'fraction_non_alphanumeric': 0.21557719054242003, 'fraction_numerical': 0.0027816411682892906, 'mean_word_length': 4.619791666666667, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 28, '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': '2109768', 'n_tokens_mistral': 795, 'n_tokens_neox': 783, 'n_words': 128}