Closed oanalavinia closed 5 years ago
Some interaction comments about this issue:
Thanks for the remarks! The table is refreshed after "save" action, so the user is placed along with the others. But being at the bottom isn't indeed very practical. Considering your ideas I have 2 proposals (here my user is Administrator) :
@evalica In terms of usability, which one do you find will be a better choice?
There are several options:
No matter the order, we need to display the current user in a distinctive manner: by using color, font-weight, font-size, bg-color, extra icons, extra controls, etc.
I prefer you second proposal, but with some changes: Before:
After:
Changes:
.user-avatar
classes (see Administration - Users - Current Members (in subwiki) example).selectize-control
classes (see Administration - Groups - edit modal example)..table
+ .active
for the selected row. .warning
color (yellow) could work too, the .info
one looks not that goodthead
and tfoot
for the table headingsStill, my proposal just 'mildly' highlights the current user.
An extreme (that I don't recommend) in order to highlight the current user and the vote could be:
Prototype code from Inspector:
<table class="xpoll medium-avatars table table-bordered">
<thead>
<tr>
<th> User </th>
<th> v1 </th> <th> v2 </th> <th> v3 </th> </tr><tr>
</tr></thead>
<tbody>
<tr class="active"><td>
<div class="clearfix user">
<span id="avatar_XWiki.Admin" class="avatar user-avatar-wrapper">
<img src="/xwiki/resources/icons/xwiki/noavatar.png?cache-version=1558356658000" alt="Picture of Admin" title="Admin" width="40" height="40" class="user-avatar" style="
/* border: 2px solid #3b7ab8; */
">
</span>
<span class="info">
<b><span class="wikilink"><a href="/xwiki/bin/view/XWiki/Admin" style="
/* font-weight: 700; */
">Administrator </a></span></b>
<br>
<span class="user-alias">Admin</span>
</span>
</div>
</td>
<td>
<input type="checkbox" name="3707">
</td>
<td>
<input type="checkbox" name="34460" checked="">
</td>
<td>
<input type="checkbox" name="34461">
</td>
</tr>
<tr class="">
<td>
<div class="clearfix user">
<span id="avatar_XWiki.mflorea" class="avatar user-avatar-wrapper">
<img src="/xwiki/bin/download/XWiki/mflorea/marius.png?width=40&height=40&rev=1.1" alt="Picture of mflorea" title="mflorea" width="40" height="40" class="user-avatar">
</span>
<span class="info">
<b><span class="wikilink"><a href="/xwiki/bin/view/XWiki/mflorea" style="
/* font-weight: 700; */
">Marius Florea</a></span></b>
<br><span class="user-alias" style="
/* font-weight: 700; */
">mflorea</span>
</span>
<span class="pull-right" style="
display: none;
">
<span class="save">
<input type="submit" value="Save" class="button" style="">
</span>
</span>
</div>
</td>
<td>
<input type="checkbox" name="3707" disabled="">
</td>
<td>
<input type="checkbox" name="34460" checked="" disabled="">
</td>
<td>
<input type="checkbox" name="34461" disabled="">
</td>
<td style="
width: 40px;
border: 0;
display: none;
background-color: transparent;
">
<span class="">
<span class="save">
<input type="submit" value="Save" class="button" style="">
</span>
</span>
</td>
</tr>
<tr>
<td>
<div class="clearfix user">
<span id="avatar_XWiki.evalica" class="avatar user-avatar-wrapper">
<img src="/xwiki/bin/download/XWiki/evalica/avatar.png?width=40&height=40&rev=1.1" alt="Picture of evalica" title="evalica" width="40" height="40" class="user-avatar">
</span>
<span class="info">
<b><span class="wikilink"><a href="/xwiki/bin/view/XWiki/evalica">Ecaterina Moraru</a></span></b>
<br><span class="user-alias">evalica</span>
</span>
</div>
</td>
<td>
<input type="checkbox" name="3707" checked="" disabled="">
</td>
<td>
<input type="checkbox" name="34460" disabled="">
</td>
<td>
<input type="checkbox" name="34461" disabled="">
</td>
</tr>
</tbody>
<tfoot>
<tr>
<th>
Number of votes
</th>
<th> 1 </th> <th> 2 </th> <th> 0 </th> </tr>
</tfoot></table>
Considering your reviews, the votes remained to be displayed using the vote order, without taking into consideration who is the current user. To have it separated, it is displayed using backgorund-color and bold font (for both cases when he has voted or not)