Fix wrong dropdown menu in group members list

This commit is contained in:
Frederic Guillot 2017-05-12 18:24:58 -04:00
parent eab2d872a8
commit 740b0ac1a5
30 changed files with 53 additions and 3 deletions

View File

@ -12,6 +12,7 @@ Bug fixes:
* Ensure project tags are removed when the project is removed
* Avoid PHP notice when regenerating API token for a user
* Fix wrong dropdown menu in group members list
Version 1.0.43 (April 30, 2017)
-------------------------------

View File

@ -1333,4 +1333,5 @@ return array(
// 'Only moving task between those columns is permitted for tasks assigned to the current user' => '',
// '[DUPLICATE]' => '',
// 'DKK - Danish Krona' => '',
// 'Remove user from group' => '',
);

View File

@ -1333,4 +1333,5 @@ return array(
'Only moving task between those columns is permitted for tasks assigned to the current user' => 'Only moving task between those columns is permitted for tasks assigned to the current user',
'[DUPLICATE]' => '[DUPLICATE]',
// 'DKK - Danish Krona' => '',
// 'Remove user from group' => '',
);

View File

@ -1333,4 +1333,5 @@ return array(
// 'Only moving task between those columns is permitted for tasks assigned to the current user' => '',
// '[DUPLICATE]' => '',
// 'DKK - Danish Krona' => '',
// 'Remove user from group' => '',
);

View File

@ -1333,4 +1333,5 @@ return array(
// 'Only moving task between those columns is permitted for tasks assigned to the current user' => '',
// '[DUPLICATE]' => '',
// 'DKK - Danish Krona' => '',
// 'Remove user from group' => '',
);

View File

@ -1333,4 +1333,5 @@ return array(
'Only moving task between those columns is permitted for tasks assigned to the current user' => 'Das Bewegen einer Aufgabe zwischen diesen Spalten ist nur für Aufgaben zulässig, die dem aktuellen Benutzer zugewiesen sind',
// '[DUPLICATE]' => '',
// 'DKK - Danish Krona' => '',
// 'Remove user from group' => '',
);

View File

@ -1333,4 +1333,5 @@ return array(
// 'Only moving task between those columns is permitted for tasks assigned to the current user' => '',
// '[DUPLICATE]' => '',
// 'DKK - Danish Krona' => '',
// 'Remove user from group' => '',
);

View File

@ -1333,4 +1333,5 @@ return array(
// 'Only moving task between those columns is permitted for tasks assigned to the current user' => '',
// '[DUPLICATE]' => '',
// 'DKK - Danish Krona' => '',
// 'Remove user from group' => '',
);

View File

@ -1333,4 +1333,5 @@ return array(
// 'Only moving task between those columns is permitted for tasks assigned to the current user' => '',
// '[DUPLICATE]' => '',
// 'DKK - Danish Krona' => '',
// 'Remove user from group' => '',
);

View File

@ -1333,4 +1333,5 @@ return array(
'Only moving task between those columns is permitted for tasks assigned to the current user' => 'Seulement le déplacement des tâches entre ces colonnes est autorisé pour l\'utilisateur courant',
'[DUPLICATE]' => '[COPIE]',
'DKK - Danish Krona' => 'DKK - Couronne danoise',
'Remove user from group' => 'Supprimer cet utilisateur du groupe',
);

View File

@ -1333,4 +1333,5 @@ return array(
// 'Only moving task between those columns is permitted for tasks assigned to the current user' => '',
// '[DUPLICATE]' => '',
// 'DKK - Danish Krona' => '',
// 'Remove user from group' => '',
);

View File

@ -1333,4 +1333,5 @@ return array(
'Only moving task between those columns is permitted for tasks assigned to the current user' => 'Az aktuális felhasználóhoz rendelt feladatok csak az engedélyezett oszlopok között mozgathatóak',
'[DUPLICATE]' => '[Duplikált]',
'DKK - Danish Krona' => 'Dán korona',
// 'Remove user from group' => '',
);

View File

@ -1333,4 +1333,5 @@ return array(
// 'Only moving task between those columns is permitted for tasks assigned to the current user' => '',
// '[DUPLICATE]' => '',
// 'DKK - Danish Krona' => '',
// 'Remove user from group' => '',
);

View File

@ -1333,4 +1333,5 @@ return array(
// 'Only moving task between those columns is permitted for tasks assigned to the current user' => '',
// '[DUPLICATE]' => '',
// 'DKK - Danish Krona' => '',
// 'Remove user from group' => '',
);

View File

@ -1333,4 +1333,5 @@ return array(
// 'Only moving task between those columns is permitted for tasks assigned to the current user' => '',
// '[DUPLICATE]' => '',
// 'DKK - Danish Krona' => '',
// 'Remove user from group' => '',
);

View File

@ -1333,4 +1333,5 @@ return array(
// 'Only moving task between those columns is permitted for tasks assigned to the current user' => '',
// '[DUPLICATE]' => '',
// 'DKK - Danish Krona' => '',
// 'Remove user from group' => '',
);

View File

@ -1333,4 +1333,5 @@ return array(
// 'Only moving task between those columns is permitted for tasks assigned to the current user' => '',
// '[DUPLICATE]' => '',
// 'DKK - Danish Krona' => '',
// 'Remove user from group' => '',
);

View File

@ -1333,4 +1333,5 @@ return array(
// 'Only moving task between those columns is permitted for tasks assigned to the current user' => '',
// '[DUPLICATE]' => '',
// 'DKK - Danish Krona' => '',
// 'Remove user from group' => '',
);

View File

@ -1333,4 +1333,5 @@ return array(
// 'Only moving task between those columns is permitted for tasks assigned to the current user' => '',
// '[DUPLICATE]' => '',
// 'DKK - Danish Krona' => '',
// 'Remove user from group' => '',
);

View File

@ -1333,4 +1333,5 @@ return array(
// 'Only moving task between those columns is permitted for tasks assigned to the current user' => '',
// '[DUPLICATE]' => '',
// 'DKK - Danish Krona' => '',
// 'Remove user from group' => '',
);

View File

@ -1333,4 +1333,5 @@ return array(
'Only moving task between those columns is permitted for tasks assigned to the current user' => 'Somente movimentação de tarefas entre aquelas colunas são permitidas para tarefas designadas para o usuário atual',
'[DUPLICATE]' => '[DUPLICADO]',
// 'DKK - Danish Krona' => '',
// 'Remove user from group' => '',
);

View File

@ -1333,4 +1333,5 @@ return array(
'Only moving task between those columns is permitted for tasks assigned to the current user' => 'Apenas é permitido mover a tarefa entre essas colunas para tarefas atribuídas ao utilizador atual',
// '[DUPLICATE]' => '',
// 'DKK - Danish Krona' => '',
// 'Remove user from group' => '',
);

View File

@ -1333,4 +1333,5 @@ return array(
'Only moving task between those columns is permitted for tasks assigned to the current user' => 'Текущий пользователь может перемещать назначенные ему задачи только между этими колонками',
// '[DUPLICATE]' => '',
// 'DKK - Danish Krona' => '',
// 'Remove user from group' => '',
);

View File

@ -1333,4 +1333,5 @@ return array(
// 'Only moving task between those columns is permitted for tasks assigned to the current user' => '',
// '[DUPLICATE]' => '',
// 'DKK - Danish Krona' => '',
// 'Remove user from group' => '',
);

View File

@ -1333,4 +1333,5 @@ return array(
// 'Only moving task between those columns is permitted for tasks assigned to the current user' => '',
// '[DUPLICATE]' => '',
// 'DKK - Danish Krona' => '',
// 'Remove user from group' => '',
);

View File

@ -1333,4 +1333,5 @@ return array(
// 'Only moving task between those columns is permitted for tasks assigned to the current user' => '',
// '[DUPLICATE]' => '',
// 'DKK - Danish Krona' => '',
// 'Remove user from group' => '',
);

View File

@ -1333,4 +1333,5 @@ return array(
// 'Only moving task between those columns is permitted for tasks assigned to the current user' => '',
// '[DUPLICATE]' => '',
// 'DKK - Danish Krona' => '',
// 'Remove user from group' => '',
);

View File

@ -1333,4 +1333,5 @@ return array(
// 'Only moving task between those columns is permitted for tasks assigned to the current user' => '',
// '[DUPLICATE]' => '',
// 'DKK - Danish Krona' => '',
// 'Remove user from group' => '',
);

View File

@ -0,0 +1,11 @@
<div class="dropdown">
<a href="#" class="dropdown-menu dropdown-menu-link-icon"><strong>#<?= $user['id'] ?> <i class="fa fa-caret-down"></i></strong></a>
<ul>
<li>
<?= $this->url->icon('user', t('View profile'), 'UserViewController', 'show', array('user_id' => $user['id'])) ?>
</li>
<li>
<?= $this->modal->medium('trash', t('Remove user from group'), 'GroupListController', 'dissociate', array('group_id' => $user['group_id'], 'user_id' => $user['id'])) ?>
</li>
</ul>
</div>

View File

@ -13,9 +13,20 @@
<?= $this->render('user_list/header', array('paginator' => $paginator)) ?>
<?php foreach ($paginator->getCollection() as $user): ?>
<div class="table-list-row table-border-left">
<?= $this->render('user_list/user_title', array(
'user' => $user,
)) ?>
<div>
<?= $this->render('group/user_dropdown', array('user' => $user)) ?>
<span class="table-list-title <?= $user['is_active'] == 0 ? 'status-closed' : '' ?>">
<?= $this->avatar->small(
$user['id'],
$user['username'],
$user['name'],
$user['email'],
$user['avatar_path'],
'avatar-inline'
) ?>
<?= $this->url->link($this->text->e($user['name'] ?: $user['username']), 'UserViewController', 'show', array('user_id' => $user['id'])) ?>
</span>
</div>
<?= $this->render('user_list/user_details', array(
'user' => $user,