Skip to content

Commit

Permalink
+ details/edit buttons at domain contacts
Browse files Browse the repository at this point in the history
  • Loading branch information
hiqsol committed Aug 27, 2015
1 parent a1b37b0 commit 1152284
Showing 1 changed file with 17 additions and 6 deletions.
23 changes: 17 additions & 6 deletions src/views/domain/_contactsTables.php
Original file line number Diff line number Diff line change
@@ -1,23 +1,34 @@
<?php
use yii\widgets\DetailView;

use hipanel\modules\domain\models\Domain;
use hipanel\widgets\Box;
use yii\helpers\Html;
use yii\widgets\DetailView;

?>


<br/><br/>
<?php foreach (Domain::$contactOptions as $item) : ?>
<?php $contact = $domainContactInfo[$item] ?>
<div class="col-md-6">
<?= Html::tag('h3', ucfirst($item) . ' ' . Yii::t('app', 'contact')); ?>
<div class="row">
<div class="col-md-6"><?= Html::tag('h4', Yii::t('app', ucfirst($item) . ' contact')) ?></div>
<div class="col-md-6">
<div class="pull-right btn-group" style="padding-top:10px">
<?= Html::a(Yii::t('app', 'Details'), ['@contact/view', 'id' => $contact['id']], ['class' => 'btn btn-default btn-xs']) ?>
<?= Html::a(Yii::t('app', 'Edit'), ['@contact/update', 'id' => $contact['id']], ['class' => 'btn btn-default btn-xs']) ?>
</div>
</div>
</div>
<?= DetailView::widget([
'model' => $domainContactInfo[$item],
'model' => $contact,
'attributes' => [
'name',
'email',
'organization',
'voice_phone',
'fax_phone',
]
]); ?>
]) ?>
</div>
<?php endforeach; ?>
<?php endforeach; ?>

0 comments on commit 1152284

Please sign in to comment.