Skip to content
Snippets Groups Projects
Commit ca7701fd authored by Jared Hancock's avatar Jared Hancock
Browse files

avatar: Add avatars to user-select and user-delete dialogs

parent 6c28d460
No related branches found
No related tags found
No related merge requests found
......@@ -20,8 +20,17 @@ if ($info['error']) {
} ?>
<div id="user-profile" style="margin:5px;">
<?php
if ($user) { ?>
<div class="avatar pull-left" style="margin: 0 10px;">
<?php echo $user->getAvatar(); ?>
</div>
<?php
}
else { ?>
<i class="icon-user icon-4x pull-left icon-border"></i>
<?php
<?php
}
// TODO: Implement change of ownership
if (0 && $user->getNumTickets()) { ?>
<a class="action-button pull-right change-user" style="overflow:inherit"
......
......@@ -27,8 +27,18 @@ if ($info['error']) {
<div id="selected-user-info" style="display:<?php echo $user ? 'block' :'none'; ?>;margin:5px;">
<form method="post" class="user" action="<?php echo $info['action'] ? $info['action'] : '#users/lookup'; ?>">
<input type="hidden" id="user-id" name="id" value="<?php echo $user ? $user->getId() : 0; ?>"/>
<?php
if ($user) { ?>
<div class="avatar pull-left" style="margin: 0 10px;">
<?php echo $user->getAvatar(); ?>
</div>
<?php
}
else { ?>
<i class="icon-user icon-4x pull-left icon-border"></i>
<?php if ($thisstaff->hasPerm(User::PERM_CREATE)) { ?>
<?php
}
if ($thisstaff->hasPerm(User::PERM_CREATE)) { ?>
<a class="action-button pull-right" style="overflow:inherit"
id="unselect-user" href="#"><i class="icon-remove"></i>
<?php echo __('Add New User'); ?></a>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment