Commit 5306b021 by Carsten Brandt

Merge PR #1914 branch '1818-gii-excess-forms' of https://github.com/johonunu/yii2

* '1818-gii-excess-forms' of https://github.com/johonunu/yii2: using camelcase changed vars Gii excess forms. Fixes #1818
parents 58e84725 b47350a9
...@@ -18,16 +18,17 @@ use yii\gii\CodeFile; ...@@ -18,16 +18,17 @@ use yii\gii\CodeFile;
<tr> <tr>
<th class="file">Code File</th> <th class="file">Code File</th>
<th class="action">Action</th> <th class="action">Action</th>
<th>
<?php <?php
$fileChangeExists = false;
foreach ($files as $file) { foreach ($files as $file) {
if ($file->operation !== CodeFile::OP_SKIP) { if ($file->operation !== CodeFile::OP_SKIP) {
echo '<input type="checkbox" id="check-all">'; $fileChangeExists = true;
echo '<th><input type="checkbox" id="check-all"></th>';
break; break;
} }
} }
?> ?>
</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
...@@ -48,6 +49,7 @@ use yii\gii\CodeFile; ...@@ -48,6 +49,7 @@ use yii\gii\CodeFile;
} }
?> ?>
</td> </td>
<?php if ($fileChangeExists) { ?>
<td class="check"> <td class="check">
<?php <?php
if ($file->operation === CodeFile::OP_SKIP) { if ($file->operation === CodeFile::OP_SKIP) {
...@@ -57,6 +59,7 @@ use yii\gii\CodeFile; ...@@ -57,6 +59,7 @@ use yii\gii\CodeFile;
} }
?> ?>
</td> </td>
<?php } ?>
</tr> </tr>
<?php endforeach; ?> <?php endforeach; ?>
</tbody> </tbody>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment