Changeset View
Changeset View
Standalone View
Standalone View
src/resources/vue/User/List.vue
<template> | <template> | ||||
<div class="container"> | <div class="container"> | ||||
<div class="card" id="user-list"> | <div class="card" id="user-list"> | ||||
<div class="card-body"> | <div class="card-body"> | ||||
<div class="card-title"> | <div class="card-title"> | ||||
User Accounts | {{ $t('user.list-title') }} | ||||
<router-link class="btn btn-success float-right create-user" :to="{ path: 'user/new' }" tag="button"> | <router-link class="btn btn-success float-right create-user" :to="{ path: 'user/new' }" tag="button"> | ||||
<svg-icon icon="user"></svg-icon> Create user | <svg-icon icon="user"></svg-icon> {{ $t('user.create') }} | ||||
</router-link> | </router-link> | ||||
</div> | </div> | ||||
<div class="card-text"> | <div class="card-text"> | ||||
<table class="table table-sm table-hover"> | <table class="table table-sm table-hover"> | ||||
<thead class="thead-light"> | <thead class="thead-light"> | ||||
<tr> | <tr> | ||||
<th scope="col">Primary Email</th> | <th scope="col">{{ $t('form.primary-email') }}</th> | ||||
</tr> | </tr> | ||||
</thead> | </thead> | ||||
<tbody> | <tbody> | ||||
<tr v-for="user in users" :id="'user' + user.id" :key="user.id" @click="$root.clickRecord"> | <tr v-for="user in users" :id="'user' + user.id" :key="user.id" @click="$root.clickRecord"> | ||||
<td> | <td> | ||||
<svg-icon icon="user" :class="$root.userStatusClass(user)" :title="$root.userStatusText(user)"></svg-icon> | <svg-icon icon="user" :class="$root.userStatusClass(user)" :title="$root.userStatusText(user)"></svg-icon> | ||||
<router-link :to="{ path: 'user/' + user.id }">{{ user.email }}</router-link> | <router-link :to="{ path: 'user/' + user.id }">{{ user.email }}</router-link> | ||||
</td> | </td> | ||||
</tr> | </tr> | ||||
</tbody> | </tbody> | ||||
<tfoot class="table-fake-body"> | <tfoot class="table-fake-body"> | ||||
<tr> | <tr> | ||||
<td>There are no users in this account.</td> | <td>{{ $t('user.users-none') }}</td> | ||||
</tr> | </tr> | ||||
</tfoot> | </tfoot> | ||||
</table> | </table> | ||||
</div> | </div> | ||||
</div> | </div> | ||||
</div> | </div> | ||||
</div> | </div> | ||||
</template> | </template> | ||||
Show All 21 Lines |