<commit_before><?php

use yii\data\ArrayDataProvider;
use yii\grid\GridView;
use yii\helpers\Html;
use yii\helpers\Url;
use yii\bootstrap\ActiveForm;
use kartik\widgets\Select2;
?>

<div class="col-md-6 thumbnail" style="padding: 10px; margin-left: 20px;" >
    <h3 style="margin-top: 12px;"><?= Yii::t('team', 'Members') ?></h3>
    <?php
    $membersDataProvider = new ArrayDataProvider([
        'allModels' => $team->members,
        'pagination' => [
            'pageSize' => 20,
        ],
    ]);

    $columns = [
        [
            'attribute' => 'member.fullname',
            'format' => 'html',
            'value' => function ($data) use ($team) {
                if ($team->coach_id == Yii::$app->user->identity->id) {
                    return Html::a($data->member->fullname, Url::to(['team/edit-member', 'id' => $data['id']]));
                } else {
                    return $data->member->fullname;
                }
            },
        ],
        [
            'class' => 'yii\grid\DataColumn',
            'attribute' => 'active',
            'format' => 'html',
            'content' => function ($data) {
                return kartik\checkbox\CheckboxX::widget([<commit_msg>Don't paginate team members<commit_after><?php

use yii\data\ArrayDataProvider;
use yii\grid\GridView;
use yii\helpers\Html;
use yii\helpers\Url;
use yii\bootstrap\ActiveForm;
use kartik\widgets\Select2;
?>

<div class="col-md-6 thumbnail" style="padding: 10px; margin-left: 20px;" >
    <h3 style="margin-top: 12px;"><?= Yii::t('team', 'Members') ?></h3>
    <?php
    $membersDataProvider = new ArrayDataProvider([
        'allModels' => $team->members,
        'pagination' => false,
    ]);

    $columns = [
        [
            'attribute' => 'member.fullname',
            'format' => 'html',
            'value' => function ($data) use ($team) {
                if ($team->coach_id == Yii::$app->user->identity->id) {
                    return Html::a($data->member->fullname, Url::to(['team/edit-member', 'id' => $data['id']]));
                } else {
                    return $data->member->fullname;
                }
            },
        ],
        [
            'class' => 'yii\grid\DataColumn',
            'attribute' => 'active',
            'format' => 'html',
            'content' => function ($data) {
                return kartik\checkbox\CheckboxX::widget([
{'fraction_non_alphanumeric': 0.1834862385321101, 'fraction_numerical': 0.009174311926605505, 'mean_word_length': 1.9838308457711442, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 52, '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': '5770483', 'n_tokens_mistral': 772, 'n_tokens_neox': 748, 'n_words': 135}