You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
<?php
|
|
|
|
use yii\helpers\Html;
|
|
|
|
|
|
|
|
/* @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" style="table-layout: fixed;">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th style="nowrap">Name</th>
|
|
|
|
<th>Value</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<?php foreach ($values as $name => $value): ?>
|
|
|
|
<tr>
|
|
|
|
<th style="white-space: normal"><?= Html::encode($name) ?></th>
|
|
|
|
<td style="overflow:auto"><?= Html::encode($value) ?></td>
|
|
|
|
</tr>
|
|
|
|
<?php endforeach; ?>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
<?php endif; ?>
|