1<?php 2 3use Fisharebest\Webtrees\I18N; 4 5?> 6 7<div class="dropdown"> 8 <button type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown" id="edit-user-button-<?= $row->user_id ?>" aria-haspopup="true" aria-expanded="false"> 9 <?= view('icons/menu') ?> 10 </button> 11 <div class="dropdown-menu" aria-labelledby="edit-user-button-<?= $row->user_id ?>"> 12 <div class="dropdown-item"> 13 <?= view('icons/edit') ?> 14 <a href="<?= e(route('admin-users-edit', ['user_id' => $row->user_id])) ?>"> 15 <?= I18N::translate('Edit') ?> 16 </a> 17 </div> 18 19 <div class="divider"></div> 20 21 <?php if ($row->user_id !== $user->id()): ?> 22 <div class="dropdown-item"> 23 <?= view('icons/user') ?> 24 <a href="#" data-post-url="<?= e(route('masquerade', ['user_id' => $row->user_id])) ?>"> 25 <?= I18N::translate('Masquerade as this user') ?> 26 </a> 27 </div> 28 29 <div class="dropdown-item"> 30 <?= view('icons/delete') ?> 31 <a href="#" data-confirm="<?= I18N::translate('Are you sure you want to delete “%s”?', e($row->user_name)) ?>" data-post-url="<?= e(route('delete-user', ['user_id' => $row->user_id])) ?>"> 32 <?= I18N::translate('Delete') ?> 33 </a> 34 </div> 35 <?php endif ?> 36 </div> 37</div> 38