forked from epicmaxco/vuestic-admin
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
149 additions
and
1,778 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,145 @@ | ||
<template> | ||
<va-card title="Awesome table"> | ||
<div class="va-row justify--space-between align--center mb-2"> | ||
<div class="flex sm4 xs12"> | ||
<va-input | ||
class="mb-0" | ||
v-model="search" | ||
placeholder="Search by name, email" | ||
> | ||
<va-icon | ||
slot="prepend" | ||
color="gray" | ||
icon="fa fa-search" | ||
/> | ||
</va-input> | ||
</div> | ||
<div class="flex sm8"> | ||
<div class="va-row justify--end align--center"> | ||
<va-checkbox | ||
label="Verified users" | ||
v-model="checkbox" | ||
class="mr-3" | ||
/> | ||
<va-button-group> | ||
<va-button color="success">Brief</va-button> | ||
<va-button outline color="success">Detailed</va-button> | ||
</va-button-group> | ||
<va-button>Export PDF</va-button> | ||
<va-button | ||
color="gray" | ||
icon-right="ion-ios-arrow-down arrow-down" | ||
> | ||
6 Per Page | ||
</va-button> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div class="table-responsive"> | ||
<table class="table table-striped"> | ||
<thead> | ||
<tr> | ||
<td>{{ $t('tables.headings.name') }}</td> | ||
<td>{{ $t('tables.headings.email') }}</td> | ||
<td>{{ $t('tables.headings.submits') }}</td> | ||
<td>{{ $t('tables.headings.status') }}</td> | ||
<td>{{ $t('tables.headings.country') }}</td> | ||
<td></td> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr | ||
v-for="(user, idx) in tableData" | ||
:key="idx" | ||
:class="user.color ? `table-${user.color}` : ''" | ||
> | ||
<td>{{ user.name }}</td> | ||
<td>{{ user.email }}</td> | ||
<td>{{ user.submits }}</td> | ||
<td> | ||
<span | ||
class="badge badge-pill text-white" | ||
:class="badgeColor[user.status]" | ||
> | ||
{{ user.status }} | ||
</span> | ||
</td> | ||
<td>{{ user.country }}</td> | ||
<td></td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</div> | ||
|
||
<div class="va-row justify--center pb-2"> | ||
<va-pagination | ||
v-model="activePage" | ||
:visible-pages="3" | ||
:pages="20" | ||
color="gray" | ||
/> | ||
</div> | ||
</va-card> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
name: 'DashboardTable' | ||
name: 'DashboardTable', | ||
data () { | ||
return { | ||
search: '', | ||
activePage: 1, | ||
checkbox: true, | ||
badgeColor: { | ||
read: 'badge-info', | ||
paid: 'badge-primary', | ||
processing: 'badge-warning', | ||
}, | ||
tableData: [{ | ||
color: '', | ||
name: 'Jonathan Patterson', | ||
email: '[email protected]', | ||
submits: '5', | ||
status: 'read', | ||
country: 'Peru', | ||
}, { | ||
color: 'success', | ||
name: 'Anthony Soto', | ||
email: 'abshire_jarrod@yahoo', | ||
submits: '189', | ||
status: 'paid', | ||
country: 'Somalia', | ||
}, { | ||
color: '', | ||
name: 'Ruth Wheeler', | ||
email: 'abdiel.cartwright@sc', | ||
submits: '5', | ||
status: 'read', | ||
country: 'Liechtenstein', | ||
}, { | ||
color: '', | ||
name: 'Derrick Castro', | ||
email: 'myrtle_bernhard@mann', | ||
submits: '18', | ||
status: 'processing', | ||
country: 'Mexico', | ||
}, { | ||
color: 'danger', | ||
name: 'Ivan Cooper', | ||
email: 'reina.kilback@hotmai', | ||
submits: '0', | ||
status: 'processing', | ||
country: 'Morocco', | ||
}, { | ||
color: '', | ||
name: 'Harvey Curry', | ||
email: 'hermiston_boyd@durga', | ||
submits: '25', | ||
status: 'paid', | ||
country: 'Cambodia', | ||
}], | ||
} | ||
}, | ||
} | ||
</script> |
80 changes: 0 additions & 80 deletions
80
src/components/dashboard/dashboard-old/DashboardBottomWidgets.vue
This file was deleted.
Oops, something went wrong.
100 changes: 0 additions & 100 deletions
100
src/components/dashboard/dashboard-old/DashboardInfoWidgets.vue
This file was deleted.
Oops, something went wrong.
57 changes: 0 additions & 57 deletions
57
src/components/dashboard/dashboard-old/data-visualisation-tab/DataVisualisationTab.vue
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.