Skip to content

Commit

Permalink
Merge 9841c01 into 2679030
Browse files Browse the repository at this point in the history
  • Loading branch information
cornernote committed Jun 19, 2019
2 parents 2679030 + 9841c01 commit 243e130
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions src/views/entry/panels/request/table.php
@@ -0,0 +1,38 @@
<?php

use yii\helpers\Html;
use yii\helpers\VarDumper;

/* @var $caption string */
/* @var $values array */
?>
<h3><?= $caption ?></h3>

<?php if (empty($values)): ?>

<p>Empty.</p>

<?php else: ?>

<div class="table-responsive">
<table class="table table-condensed table-bordered table-striped table-hover request-table"
style="table-layout: fixed;">
<thead>
<tr>
<th>Name</th>
<th>Value</th>
</tr>
</thead>
<tbody>
<?php foreach ($values as $name => $value): ?>
<tr>
<th><?= Html::encode($name) ?></th>
<td><?= htmlspecialchars(VarDumper::dumpAsString($value), ENT_QUOTES | ENT_SUBSTITUTE,
\Yii::$app->charset, true) ?></td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>

<?php endif; ?>

0 comments on commit 243e130

Please sign in to comment.