%PDF- <> %âãÏÓ endobj 2 0 obj <> endobj 3 0 obj <>/ExtGState<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI] >>/Annots[ 28 0 R 29 0 R] /MediaBox[ 0 0 595.5 842.25] /Contents 4 0 R/Group<>/Tabs/S>> endobj ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<> endobj 2 0 obj<>endobj 2 0 obj<>es 3 0 R>> endobj 2 0 obj<> ox[ 0.000000 0.000000 609.600000 935.600000]/Fi endobj 3 0 obj<> endobj 7 1 obj<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI]>>/Subtype/Form>> stream
<?php
use yii\gii\CodeFile;
use yii\helpers\Html;
/** @var \yii\web\View $this */
/** @var \yii\gii\Generator $generator */
/** @var CodeFile[] $files */
/** @var array $answers */
/** @var string $id panel ID */
?>
<div class="default-view-files">
<p>Click on the above <code>Generate</code> button to generate the files selected below:</p>
<div class="row form-group">
<div class="col-6">
<input id="filter-input" class="form-control" placeholder="Type to filter">
</div>
<div class="col-6 text-right">
<div id="action-toggle" class="btn-group btn-group-xs">
<label class="btn btn-success active" title="Filter files that are created">
<input type="checkbox" value="<?= CodeFile::OP_CREATE ?>" checked> Create
</label>
<label class="btn btn-outline-secondary active" title="Filter files that are unchanged.">
<input type="checkbox" value="<?= CodeFile::OP_SKIP ?>" checked> Unchanged
</label>
<label class="btn btn-warning active" title="Filter files that are overwritten">
<input type="checkbox" value="<?= CodeFile::OP_OVERWRITE ?>" checked> Overwrite
</label>
</div>
</div>
</div>
<table class="table table-bordered table-striped table-sm">
<thead>
<tr>
<th class="file">Code File</th>
<th class="action">Action</th>
<?php
$fileChangeExists = false;
foreach ($files as $file) {
if ($file->operation !== CodeFile::OP_SKIP) {
$fileChangeExists = true;
echo '<th><input type="checkbox" id="check-all"></th>';
break;
}
}
?>
</tr>
</thead>
<tbody id="files-body">
<?php foreach ($files as $file): ?>
<?php
if ($file->operation === CodeFile::OP_OVERWRITE) {
$trClass = 'table-warning';
} elseif ($file->operation === CodeFile::OP_SKIP) {
$trClass = 'table-active';
} elseif ($file->operation === CodeFile::OP_CREATE) {
$trClass = 'table-success';
} else {
$trClass = '';
}
?>
<tr class="<?= "$file->operation $trClass" ?>">
<td class="file">
<?= Html::a(Html::encode($file->getRelativePath()), ['preview', 'id' => $id, 'file' => $file->id], ['class' => 'preview-code', 'data-title' => $file->getRelativePath()]) ?>
<?php if ($file->operation === CodeFile::OP_OVERWRITE): ?>
<?= Html::a('diff', ['diff', 'id' => $id, 'file' => $file->id], ['class' => 'diff-code badge badge-warning', 'data-title' => $file->getRelativePath()]) ?>
<?php endif; ?>
</td>
<td class="action">
<?php
if ($file->operation === CodeFile::OP_SKIP) {
echo 'unchanged';
} else {
echo $file->operation;
}
?>
</td>
<?php if ($fileChangeExists): ?>
<td class="check">
<?php
if ($file->operation === CodeFile::OP_SKIP) {
echo ' ';
} else {
echo Html::checkbox("answers[{$file->id}]", isset($answers) ? isset($answers[$file->id]) : ($file->operation === CodeFile::OP_CREATE));
}
?>
</td>
<?php endif; ?>
</tr>
<?php endforeach; ?>
</tbody>
</table>
<div class="modal fade" id="preview-modal" tabindex="-1" role="dialog">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header" style="display: flex;">
<div class="btn-group btn-group-sm" role="group">
<a class="modal-previous btn btn-outline-secondary" href="#" title="Previous File (Left Arrow)">
<span class="icon"></span>
</a>
<a class="modal-next btn btn-outline-secondary" href="#" title="Next File (Right Arrow)">
<span class="icon"></span>
</a>
<a class="modal-refresh btn btn-outline-secondary" href="#" title="Refresh File (R)">
<span class="icon"></span>
</a>
<a class="modal-checkbox btn btn-outline-secondary" href="#" title="Check This File (Space)">
<span class="icon"></span>
</a>
</div>
<h5 class="modal-title ml-2">Modal title</h5>
<span class="modal-copy-hint ml-auto"><kbd>CTRL</kbd>+<kbd>C</kbd> to copy</span>
<div id="clipboard-container"><textarea id="clipboard"></textarea></div>
<button type="button" class="close ml-0" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<p>Please wait ...</p>
</div>
</div>
</div>
</div>
</div>