Skip to content

Commit

Permalink
doing domain syncing
Browse files Browse the repository at this point in the history
  • Loading branch information
hiqsol committed Aug 7, 2015
1 parent 3f2e63a commit d807bed
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/controllers/DomainController.php
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ public function actions()
'sync' => [
'class' => 'hipanel\actions\SmartPerformAction',
'scenario' => 'sync',
'success' => Yii::t('app', 'The operation sycn domain info completed successfully'),
'success' => Yii::t('app', 'Domain contacts synced'),
],
// 'change-password' => [
// 'class' => 'hipanel\actions\SwitchAction',
Expand Down
6 changes: 4 additions & 2 deletions src/views/domain/view.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,13 @@

<?php $form::end() ?>

<?php Modal::end(); ?>
<?php Modal::end() ?>
</li>
<?php if (Yii::$app->user->can('manage') || 1) : ?>
<li>
<?= Html::a('<i class="ion-ios-loop-strong"></i>' . Yii::t('app', 'Synchronize contacts'), ['sync', 'id' => $model->id]); ?>
<?php Pjax::begin(Yii::$app->params['pjax']) ?>
<?= Html::a('<i class="ion-ios-loop-strong"></i>' . Yii::t('app', 'Synchronize contacts'), ['sync', 'id' => $model->id], ['data-pjax' => 1]); ?>
<?php Pjax::end() ?>
</li>
<?php endif; ?>
</ul>
Expand Down

0 comments on commit d807bed

Please sign in to comment.