<?php /** @noinspection PhpUnhandledExceptionInspection */

use common\modules\event\models\copy\CopyWeekSearch;
use yii\helpers\Html;
use yii\widgets\ActiveForm;

/* @var $model CopyWeekSearch */


?>

<div class="panel panel-default">
    <div class="panel-heading">Másolás</div>
    <div class="panel-body">

<?php $form = ActiveForm::begin(['options' =>['class' => 'form-inline' ]]); ?>
<?= $form->field($model, 'sourceDateString')->hiddenInput()->label(false) ?>
<?= $form->field($model, 'targetDateString')->hiddenInput()->label(false) ?>

    <div class="form-group">
        <label for="inpSourceEvent">Forrás hét: </label>

        <input type="text" id="inpSourceEvent"  disabled class="form-control" value="<?=$model->sourceTimeTable->getWeekByIndex(0)->getWeekString()?>">
    </div>
    <div class="form-group">
        <label for="inpTargetEvent">Cél hét:</label>
        <input type="text" id="inpTargetEvent"  disabled class="form-control" value="<?=$model->targetTimeTable->getWeekByIndex(0)->getWeekString()?>">
    </div>
    <?= Html::submitButton( 'Másol', ['class' =>   'btn btn-success' ]) ?>

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