Guest User

view.php (buttons)

a guest
May 31st, 2016
216
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     <p>
  2.         <?= Html::a('Edit', ['update', 'id' => $model->id], [
  3.             'id' => 'edit-link',
  4.             'onClick' =>"$('#view').find('.modal-body').load($(this).attr('href')); return false;",
  5.             'class' => 'btn btn-primary'
  6.         ]) ?>
  7.         <?= Html::a(Yii::t('app', 'Delete'), ['delete', 'id' => $model->id], [
  8.             'id' => 'delete',
  9.             'class' => 'btn btn-danger',
  10.             'data' => [
  11.                 'confirm' => Yii::t('app', 'Are you sure you want to delete this item?'),
  12.                 'method' => 'post',
  13.             ],
  14.         ]) ?>
  15.     </p>
RAW Paste Data Copied