<commit_before><?php

use yii\helpers\Html;
use yii\helpers\Url;
use yii\bootstrap\Dropdown;
use kartik\grid\GridView;
use kartik\widgets\Select2;
use kartik\widgets\DepDrop;
use kartik\widgets\ActiveForm;
use kartik\widgets\DatePicker;
use kartik\widgets\TimePicker;
use backend\models\ActivityRoom;
use backend\models\Room;

$this->title = 'Request Room for '.$trainingCurrent->name;
$this->params['breadcrumbs'][] = ['label' => 'Trainings', 'url' => Url::to(['training/index'])];
$this->params['breadcrumbs'][] = 'Room';

$controller = $this->context;
$menus = $controller->module->getMenuItems();
$this->params['sideMenu'][$controller->module->uniqueId]=$menus;
?>

<div class="training-room-index">

	<div class="container-fluid" style="margin:15px;">

		<div class="row">
			<div class="panel panel-default">
				<div class="panel-body">
					<div class="alert alert-info">
						<p>
							<i class="fa fa-fw fa-info-circle"></i>Use this tools below to select room from all satker.
							After that, just wait until General decide what to do with your request.
						</p>
					</div>
					<?php
						$form = ActiveForm::begin([
					        'id' => 'order-room-form',
					        'action' => Url::to(['training-room/save']),
					        'type' => ActiveForm::TYPE_VERTICAL
					    ]);

					    echo Html::hiddenInput('tb_training_id', $trainingCurrent->id);
					?>

					<div class="col-md-2">
					<?php
						echo '<div class="form-group">';
						echo $form->field($roomModel, 'id')->label('Room List')->widget(Select2::classname(), [
						    'data' => $roomList,
						    'options' => ['placeholder' => 'Select a room ...'],
						    'pluginOptions' => [
						        'allowClear' => true
						    ],
						]);
						echo '</div>';
					?>
					</div>

					<div class="col-md-2">
					<?php
						echo '<div class="form-group">';
						echo '<label class="control-label">Date</label>';
						echo DatePicker::widget([
						    'name' => 'startDate',
						    'value' => date('d-M-Y', strtotime($trainingCurrent->start)),
						    'type' => DatePicker::TYPE_RANGE,
						    'name2' => 'endDate',
						    'value2' => date('d-M-Y', strtotime($trainingCurrent->finish)),
						    'pluginOptions' => [
						        'autoclose'=>true,
						        'format' => 'dd-M-yyyy'
						    ]
						]);
						echo '</div>';
					?>
					</div>

					<div class="col-md-2">
					<?php
						echo '<div class="form-group">';
						echo '<label class="control-label">Start Time</label>';
						echo TimePicker::widget([
						    'name' => 'startTime',
						    'pluginOptions' => [
						        'showSeconds' => true,
						        'showMeridian' => false,
						        'minuteStep' => 1,
						        'secondStep' => 5,
						    ]
						]);
						echo '</div>';
					?>
					</div>

					<div class="col-md-2">
					<?php
						echo '<div class="form-group">';
						echo '<label class="control-label">End Time</label>';
						echo TimePicker::widget([
						    'name' => 'endTime',
						    'pluginOptions' => [
						        'showSeconds' => true,
						        'showMeridian' => false,
						        'minuteStep' => 1,
						        'secondStep' => 5,
						    ]
						]);
						echo '</div>';
					?>
					</div>

					<div class="col-md-2">
					<?php
						echo '<div class="form-group">';
						echo '<label class="hidden-sm hidden-xs">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</label>';
						echo Html::submitButton('<i class="fa fa-fw fa-play"></i>Request Room', ['class' => 'btn btn-primary']);
						echo '</div>';
					?>
					</div>

					<div class="col-md-2">
					<?php
						echo '<div class="form-group">';
						echo '<label class="hidden-sm hidden-xs">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</label>';
						echo Html::a('<i class="fa fa-fw fa-sign-out"></i>Done', Url::to(['training/index']), ['class' => 'btn btn-default']);
						echo '</div>';
					?>
					</div>

					<?php 

						ActiveForm::end();
					?>
				</div>
			</div>
		</div>

		<div class="row">
			<div class="panel panel-default">
				<div class="panel-body">
					<?php
						$gridColumns = [
							[
								'class' => 'kartik\grid\SerialColumn',<commit_msg>Fixbug activity room index BDK<commit_after><?php

use yii\helpers\Html;
use yii\helpers\Url;
use yii\bootstrap\Dropdown;
use kartik\grid\GridView;
use kartik\widgets\Select2;
use kartik\widgets\DepDrop;
use kartik\widgets\ActiveForm;
use kartik\widgets\DatePicker;
use kartik\widgets\TimePicker;
use backend\models\ActivityRoom;
use backend\models\Room;

$this->title = 'Request Room for '.$trainingCurrent->name;
$this->params['breadcrumbs'][] = ['label' => 'Trainings', 'url' => Url::to(['training/index'])];
$this->params['breadcrumbs'][] = 'Room';

$controller = $this->context;
$menus = $controller->module->getMenuItems();
$this->params['sideMenu'][$controller->module->uniqueId]=$menus;
?>

<div class="training-room-index">

	<div class="container-fluid" style="margin:15px;">

		<div class="row">
			<div class="panel panel-default">
				<div class="panel-body">
					<div class="alert alert-info">
						<p>
							<i class="fa fa-fw fa-info-circle"></i>Use this tools below to select room from all satker.
							After that, just wait until General decide what to do with your request.
						</p>
					</div>
					<?php
						$form = ActiveForm::begin([
					        'id' => 'order-room-form',
					        'action' => Url::to(['training-room/save']),
					        'type' => ActiveForm::TYPE_VERTICAL
					    ]);

					    echo Html::hiddenInput('tb_training_id', $trainingCurrent->id);
					?>

					<div class="col-md-2">
					<?php
						echo '<div class="form-group">';
						echo $form->field($roomModel, 'id')->label('Room List')->widget(Select2::classname(), [
						    'data' => $roomList,
						    'options' => ['placeholder' => 'Select a room ...'],
						    'pluginOptions' => [
						        'allowClear' => true
						    ],
						]);
						echo '</div>';
					?>
					</div>

					<div class="col-md-2">
					<?php
						echo '<div class="form-group">';
						echo '<label class="control-label">Date</label>';
						echo DatePicker::widget([
						    'name' => 'startDate',
						    'value' => date('d-M-Y', strtotime($trainingCurrent->start)),
						    'type' => DatePicker::TYPE_RANGE,
						    'name2' => 'endDate',
						    'value2' => date('d-M-Y', strtotime($trainingCurrent->finish)),
						    'pluginOptions' => [
						        'autoclose'=>true,
						        'format' => 'dd-M-yyyy'
						    ]
						]);
						echo '</div>';
					?>
					</div>

					<div class="col-md-2">
					<?php
						echo '<div class="form-group">';
						echo '<label class="control-label">Start Time</label>';
						echo TimePicker::widget([
						    'name' => 'startTime',
						    'pluginOptions' => [
						        'showSeconds' => true,
						        'showMeridian' => false,
						        'minuteStep' => 1,
						        'secondStep' => 5,
						    ]
						]);
						echo '</div>';
					?>
					</div>

					<div class="col-md-2">
					<?php
						echo '<div class="form-group">';
						echo '<label class="control-label">End Time</label>';
						echo TimePicker::widget([
						    'name' => 'endTime',
						    'pluginOptions' => [
						        'showSeconds' => true,
						        'showMeridian' => false,
						        'minuteStep' => 1,
						        'secondStep' => 5,
						    ]
						]);
						echo '</div>';
					?>
					</div>

					<div class="col-md-2">
					<?php
						echo '<div class="form-group">';
						echo '<label class="hidden-sm hidden-xs">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</label>';
						echo Html::submitButton('<i class="fa fa-fw fa-play"></i>Request Room', ['class' => 'btn btn-primary']);
						echo '</div>';
					?>
					</div>

					<div class="col-md-2">
					<?php
						echo '<div class="form-group">';
						echo '<label class="hidden-sm hidden-xs">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</label>';
						echo Html::a('<i class="fa fa-fw fa-sign-out"></i>Done', Url::to(['training/index']), ['class' => 'btn btn-default']);
						echo '</div>';
					?>
					</div>

					<?php 

						ActiveForm::end();
					?>
				</div>
			</div>
		</div>

		<div class="row">
			<div class="panel panel-default">
				<div class="panel-body">
					<?php
						$gridColumns = [
							[
								'class' => 'kartik\grid\SerialColumn',
{'fraction_non_alphanumeric': 0.20708634330925352, 'fraction_numerical': 0.003669303978901502, 'mean_word_length': 2.473516527279968, 'pattern_counts': {'":': 0, '<': 133, '<?xml version=': 0, '>': 229, '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': '4624991', 'n_tokens_mistral': 3854, 'n_tokens_neox': 2774, 'n_words': 525}