Skip to content

Commit

Permalink
Changed design
Browse files Browse the repository at this point in the history
  • Loading branch information
tafid committed Nov 24, 2016
1 parent 8fbb804 commit 7eb572b
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions src/views/domain/_modalPush.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,15 @@
</p>
</div>

<div class="panel panel-default">
<div class="panel panel-info">
<div class="panel-heading"><?= Yii::t('hipanel:domain', 'Affected domains') ?></div>
<div class="panel-body">
<?= ArraySpoiler::widget([
'data' => $models,
'visibleCount' => count($models),
'formatter' => function ($model) use (&$unPushable) {
if (!$model->isPushable()) {
$unPushable[] = Html::tag('b', $model->domain);
$unPushable[] = $model->domain;
}
return $model->domain;
},
Expand All @@ -52,13 +52,12 @@
</div>
</div>
<?php if (!empty($unPushable)) : ?>
<div class="row">
<div class="col-md-12">
<div class="alert alert-warning" role="alert">
<?= Yii::t('hipanel:domain', 'Selected domains contain items which can not be Push:') ?>
<br>
<?= implode(', ', $unPushable) ?>
</div>
<div class="panel panel-warning">
<div class="panel-heading">
<?= Yii::t('hipanel:domain', 'Selected domains contain items which can not be Push:') ?>
</div>
<div class="panel-body">
<?= implode(', ', $unPushable) ?>
</div>
</div>
<?php endif; ?>
Expand Down

0 comments on commit 7eb572b

Please sign in to comment.