mirror of
https://git.meshkee.com/cssd/cssd-back.git
synced 2026-10-13 14:41:06 +03:30
142 lines
4.0 KiB
Vue
142 lines
4.0 KiB
Vue
<template>
|
|
<v-container fluid>
|
|
<material-card class=""
|
|
color="black"
|
|
title="Medical Centers List"
|
|
text=""
|
|
>
|
|
<v-layout wrap class="px-5 mb-3">
|
|
<v-flex xs12 md3 sm3>
|
|
<v-text-field
|
|
label="Name"
|
|
color="black">
|
|
</v-text-field>
|
|
</v-flex>
|
|
<v-flex xs12 md2 sm2 class="text-xs-right">
|
|
<v-btn class="WM-CyanBlueGradient-BG" style="padding:10px 60px">
|
|
<v-icon class="white--text mr-2 caption">fas fa-search</v-icon>
|
|
<span class="white--text">Filter</span>
|
|
</v-btn>
|
|
</v-flex>
|
|
<v-spacer></v-spacer>
|
|
<v-flex xs12 md2 sm2 class="text-xs-right">
|
|
<router-link to="/add-medical-center">
|
|
<v-btn class="WM-NoShadow WM-Outline-Btn WM-Border WM-Border-Black">
|
|
<v-icon class="black--text mr-2 caption">fas fa-plus</v-icon>
|
|
<span class="black--text">Add</span>
|
|
</v-btn>
|
|
</router-link>
|
|
</v-flex>
|
|
</v-layout>
|
|
<v-layout class="px-4 my-3">
|
|
<v-divider></v-divider>
|
|
</v-layout>
|
|
<v-layout align-center justify-center wrap class="px-5 mt-3">
|
|
<v-flex
|
|
md12
|
|
>
|
|
<v-data-table
|
|
:headers="headers"
|
|
:items="items"
|
|
hide-actions
|
|
>
|
|
<template
|
|
slot="headerCell"
|
|
slot-scope="{ header }"
|
|
>
|
|
<span
|
|
class="subheading font-weight-light text-white text--darken-3"
|
|
v-text="header.text"
|
|
/>
|
|
</template>
|
|
<template
|
|
slot="items"
|
|
slot-scope="{ item }"
|
|
>
|
|
<td class="headline font-weight-light">{{ item.name }}</td>
|
|
<td class="title font-weight-light">{{ item.date }}</td>
|
|
<td class="title font-weight-light">{{ item.operator }}</td>
|
|
<td class="text-xs-right">
|
|
<v-btn color="cyan" class="mr-2 WM-ActionButton">
|
|
<v-icon class="white--text mr-2 caption">fas fa-pen</v-icon>
|
|
<span>Edit</span>
|
|
</v-btn>
|
|
<router-link to="/operator-list">
|
|
<v-btn color="orange darken-1" class="mr-2 WM-ActionButton">
|
|
<v-icon class="white--text mr-2 caption">fas fa-user</v-icon>
|
|
<span>Operator</span>
|
|
</v-btn>
|
|
</router-link>
|
|
<v-btn color="pink" class=" WM-ActionButton">
|
|
<v-icon class="white--text mr-2 caption">fas fa-times</v-icon>
|
|
<span>Remove</span>
|
|
</v-btn>
|
|
</td>
|
|
</template>
|
|
</v-data-table>
|
|
</v-flex>
|
|
</v-layout>
|
|
<v-divider></v-divider>
|
|
<v-layout row wrap align-center justify-center class="mt-3">
|
|
<router-link to="/dashboard">
|
|
<v-btn class="WM-NoShadow WM-Outline-Btn WM-Border WM-Border-Black ml-5">
|
|
<v-icon class="black--text mr-2 caption">fas fa-chevron-left</v-icon>
|
|
<span class="black--text">Back</span>
|
|
</v-btn>
|
|
</router-link>
|
|
</v-layout>
|
|
</material-card>
|
|
</v-container>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
data: () => ({
|
|
headers: [
|
|
{
|
|
sortable: false,
|
|
text: 'Hospital Name',
|
|
value: 'name'
|
|
},
|
|
{
|
|
sortable: false,
|
|
text: 'Date',
|
|
value: 'date'
|
|
},
|
|
{
|
|
sortable: false,
|
|
text: 'Operator',
|
|
value: 'operator'
|
|
},
|
|
{
|
|
sortable: false,
|
|
text: 'Action',
|
|
value: 'action',
|
|
align: 'right'
|
|
}
|
|
],
|
|
items: [
|
|
{
|
|
name: 'Shahid Beheshti',
|
|
date: '12/05/1397',
|
|
operator: '3 Operator',
|
|
action: ''
|
|
},
|
|
{
|
|
name: 'Emam Reza',
|
|
date: '12/05/1397',
|
|
operator: '5 Operator',
|
|
action: ''
|
|
},
|
|
]
|
|
})
|
|
}
|
|
</script>
|
|
|
|
<style lang="css" scoped>
|
|
.WM-ActionButton {
|
|
padding : 8px 22px;
|
|
}
|
|
|
|
</style>
|