Changeset View
Changeset View
Standalone View
Standalone View
src/resources/vue/Admin/User.vue
Show First 20 Lines • Show All 327 Lines • ▼ Show 20 Lines | <div class="container"> | ||||
<tr> | <tr> | ||||
<th scope="col">{{ $t('form.name') }}</th> | <th scope="col">{{ $t('form.name') }}</th> | ||||
<th scope="col">{{ $t('form.email') }}</th> | <th scope="col">{{ $t('form.email') }}</th> | ||||
</tr> | </tr> | ||||
</thead> | </thead> | ||||
<tbody> | <tbody> | ||||
<tr v-for="resource in resources" :key="resource.id" @click="$root.clickRecord"> | <tr v-for="resource in resources" :key="resource.id" @click="$root.clickRecord"> | ||||
<td> | <td> | ||||
<svg-icon icon="cog" :class="$root.statusClass(resource)" :title="$root.statusText(resource)"></svg-icon> | <svg-icon icon="gear" :class="$root.statusClass(resource)" :title="$root.statusText(resource)"></svg-icon> | ||||
<router-link :to="{ path: '/resource/' + resource.id }">{{ resource.name }}</router-link> | <router-link :to="{ path: '/resource/' + resource.id }">{{ resource.name }}</router-link> | ||||
</td> | </td> | ||||
<td> | <td> | ||||
<router-link :to="{ path: '/resource/' + resource.id }">{{ resource.email }}</router-link> | <router-link :to="{ path: '/resource/' + resource.id }">{{ resource.email }}</router-link> | ||||
</td> | </td> | ||||
</tr> | </tr> | ||||
</tbody> | </tbody> | ||||
<tfoot class="table-fake-body"> | <tfoot class="table-fake-body"> | ||||
▲ Show 20 Lines • Show All 147 Lines • ▼ Show 20 Lines | <div class="container"> | ||||
</div> | </div> | ||||
</div> | </div> | ||||
</template> | </template> | ||||
<script> | <script> | ||||
import { Modal } from 'bootstrap' | import { Modal } from 'bootstrap' | ||||
import TransactionLog from '../Widgets/TransactionLog' | import TransactionLog from '../Widgets/TransactionLog' | ||||
import { library } from '@fortawesome/fontawesome-svg-core' | |||||
library.add( | |||||
require('@fortawesome/free-solid-svg-icons/faFolderOpen').definition, | |||||
require('@fortawesome/free-solid-svg-icons/faGear').definition, | |||||
require('@fortawesome/free-solid-svg-icons/faGlobe').definition, | |||||
require('@fortawesome/free-solid-svg-icons/faUsers').definition, | |||||
) | |||||
export default { | export default { | ||||
components: { | components: { | ||||
TransactionLog | TransactionLog | ||||
}, | }, | ||||
beforeRouteUpdate (to, from, next) { | beforeRouteUpdate (to, from, next) { | ||||
// An event called when the route that renders this component has changed, | // An event called when the route that renders this component has changed, | ||||
// but this component is reused in the new route. | // but this component is reused in the new route. | ||||
// Required to handle links from /user/XXX to /user/YYY | // Required to handle links from /user/XXX to /user/YYY | ||||
▲ Show 20 Lines • Show All 325 Lines • Show Last 20 Lines |