display full user names in overview table

ref #12
This commit is contained in:
Philipp Dormann 2021-01-09 18:27:22 +01:00
parent e5ec98bf6f
commit 6529907a13

View File

@ -78,8 +78,11 @@
</div> </div>
{/if} {/if}
<div class="ml-4"> <div class="ml-4">
<div class="text-sm font-medium text-gray-900 dark:text-gray-100"> <div
class="text-sm font-medium text-gray-900 dark:text-gray-100">
{u.firstname} {u.firstname}
{u.middlename || ''}
{u.lastname}
</div> </div>
<div class="text-sm text-gray-500"> <div class="text-sm text-gray-500">
{u.email || u.username} {u.email || u.username}
@ -104,7 +107,8 @@
</td> </td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500"> <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
{#each u.groups as g} {#each u.groups as g}
<a href="../groups/{g.id}" <a
href="../groups/{g.id}"
class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-gray-100 text-gray-800">{g.name}</a> class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-gray-100 text-gray-800">{g.name}</a>
{/each} {/each}
</td> </td>
@ -113,65 +117,87 @@
<a <a
href="./{u.id}" href="./{u.id}"
class="text-indigo-600 hover:text-indigo-900">Edit</a> class="text-indigo-600 hover:text-indigo-900">Edit</a>
<span tabindex="0" href="#" class="ml-4 text-red-600 hover:text-red-900 cursor-pointer">Delete</span> <span
tabindex="0"
href="#"
class="ml-4 text-red-600 hover:text-red-900 cursor-pointer">Delete</span>
</td> </td>
</tr> </tr>
{/each} {/each}
</tbody> </tbody>
</table> </table>
<div class="grid px-4 py-3 text-xs font-semibold tracking-wide text-gray-500 uppercase border-t dark:border-gray-700 bg-gray-50 sm:grid-cols-9 dark:text-gray-400 dark:bg-gray-900"> <div
<span class="flex items-center col-span-3"> class="grid px-4 py-3 text-xs font-semibold tracking-wide text-gray-500 uppercase border-t dark:border-gray-700 bg-gray-50 sm:grid-cols-9 dark:text-gray-400 dark:bg-gray-900">
Showing 21-30 of 100 <span class="flex items-center col-span-3"> Showing 21-30 of 100 </span>
</span> <span class="col-span-2" />
<span class="col-span-2"></span>
<!-- Pagination --> <!-- Pagination -->
<span class="flex col-span-4 mt-2 sm:mt-auto sm:justify-end"> <span class="flex col-span-4 mt-2 sm:mt-auto sm:justify-end">
<nav aria-label="Table navigation"> <nav aria-label="Table navigation">
<ul class="inline-flex items-center"> <ul class="inline-flex items-center">
<li> <li>
<button class="px-3 py-1 rounded-md rounded-l-lg focus:outline-none focus:shadow-outline-purple" aria-label="Previous"> <button
<svg aria-hidden="true" class="w-4 h-4 fill-current" viewBox="0 0 20 20"> class="px-3 py-1 rounded-md rounded-l-lg focus:outline-none focus:shadow-outline-purple"
<path d="M12.707 5.293a1 1 0 010 1.414L9.414 10l3.293 3.293a1 1 0 01-1.414 1.414l-4-4a1 1 0 010-1.414l4-4a1 1 0 011.414 0z" clip-rule="evenodd" fill-rule="evenodd"></path> aria-label="Previous">
<svg
aria-hidden="true"
class="w-4 h-4 fill-current"
viewBox="0 0 20 20">
<path
d="M12.707 5.293a1 1 0 010 1.414L9.414 10l3.293 3.293a1 1 0 01-1.414 1.414l-4-4a1 1 0 010-1.414l4-4a1 1 0 011.414 0z"
clip-rule="evenodd"
fill-rule="evenodd" />
</svg> </svg>
</button> </button>
</li> </li>
<li> <li>
<button class="px-3 py-1 rounded-md focus:outline-none focus:shadow-outline-purple"> <button
class="px-3 py-1 rounded-md focus:outline-none focus:shadow-outline-purple">
1 1
</button> </button>
</li> </li>
<li> <li>
<button class="px-3 py-1 rounded-md focus:outline-none focus:shadow-outline-purple"> <button
class="px-3 py-1 rounded-md focus:outline-none focus:shadow-outline-purple">
2 2
</button> </button>
</li> </li>
<li> <li>
<button class="px-3 py-1 text-white transition-colors duration-150 bg-purple-600 border border-r-0 border-purple-600 rounded-md focus:outline-none focus:shadow-outline-purple"> <button
class="px-3 py-1 text-white transition-colors duration-150 bg-purple-600 border border-r-0 border-purple-600 rounded-md focus:outline-none focus:shadow-outline-purple">
3 3
</button> </button>
</li> </li>
<li> <li>
<button class="px-3 py-1 rounded-md focus:outline-none focus:shadow-outline-purple"> <button
class="px-3 py-1 rounded-md focus:outline-none focus:shadow-outline-purple">
4 4
</button> </button>
</li> </li>
<li><span class="px-3 py-1">...</span></li>
<li> <li>
<span class="px-3 py-1">...</span> <button
</li> class="px-3 py-1 rounded-md focus:outline-none focus:shadow-outline-purple">
<li>
<button class="px-3 py-1 rounded-md focus:outline-none focus:shadow-outline-purple">
8 8
</button> </button>
</li> </li>
<li> <li>
<button class="px-3 py-1 rounded-md focus:outline-none focus:shadow-outline-purple"> <button
class="px-3 py-1 rounded-md focus:outline-none focus:shadow-outline-purple">
9 9
</button> </button>
</li> </li>
<li> <li>
<button class="px-3 py-1 rounded-md rounded-r-lg focus:outline-none focus:shadow-outline-purple" aria-label="Next"> <button
<svg class="w-4 h-4 fill-current" aria-hidden="true" viewBox="0 0 20 20"> class="px-3 py-1 rounded-md rounded-r-lg focus:outline-none focus:shadow-outline-purple"
<path d="M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z" clip-rule="evenodd" fill-rule="evenodd"></path> aria-label="Next">
<svg
class="w-4 h-4 fill-current"
aria-hidden="true"
viewBox="0 0 20 20">
<path
d="M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z"
clip-rule="evenodd"
fill-rule="evenodd" />
</svg> </svg>
</button> </button>
</li> </li>