This commit is contained in:
2020-04-23 19:26:55 +00:00
parent ebbe733bdc
commit 4f2cfc3dda
2 changed files with 110 additions and 85 deletions

View File

@@ -1,6 +1,6 @@
# CLIENT TODO # CLIENT TODO
rishi gorang quattro sonto rishi gorang sonto
************************************************************************************************************************************************************************** **************************************************************************************************************************************************************************
CURRENT ROADMAP CURRENT ROADMAP

View File

@@ -3,99 +3,124 @@
<span class="v-label v-label--active theme--light"> <span class="v-label v-label--active theme--light">
{{ $ay.t("Attachments") }} {{ $ay.t("Attachments") }}
</span> </span>
<template v-if="readonly">
<div class="mt-4" :style="cardTextStyle()">
<v-list color="grey lighten-5" three-line>
<v-list-item
v-for="item in displayList"
:key="item.id"
:href="item.url"
target="_blank"
>
<v-list-item-avatar>
<v-icon v-text="item.icon"></v-icon>
</v-list-item-avatar>
<v-tabs v-model="tab" color="primary"> <v-list-item-content>
<v-tabs-slider></v-tabs-slider> <v-list-item-title v-text="item.name"></v-list-item-title>
<v-tab key="list"><v-icon>fa-folder</v-icon></v-tab>
<v-tab key="attach"><v-icon>fa-paperclip</v-icon></v-tab>
<v-tabs-items v-model="tab">
<v-tab-item key="list">
<div class="mt-4" :style="cardTextStyle()">
<v-list color="grey lighten-5" three-line>
<v-list-item
v-for="item in displayList"
:key="item.id"
:href="item.url"
target="_blank"
>
<v-list-item-avatar>
<v-icon v-text="item.icon"></v-icon>
</v-list-item-avatar>
<v-list-item-content> <v-list-item-subtitle v-text="item.date"></v-list-item-subtitle>
<v-list-item-title v-text="item.name"></v-list-item-title>
<v-list-item-subtitle <v-list-item-subtitle v-text="item.notes"></v-list-item-subtitle>
v-text="item.date" </v-list-item-content>
></v-list-item-subtitle> </v-list-item>
</v-list>
</div>
</template>
<template v-else>
<v-tabs v-model="tab" color="primary">
<v-tabs-slider></v-tabs-slider>
<v-tab key="list"><v-icon>fa-folder</v-icon></v-tab>
<v-tab key="attach"><v-icon>fa-paperclip</v-icon></v-tab>
<v-tabs-items v-model="tab">
<v-tab-item key="list">
<div class="mt-4" :style="cardTextStyle()">
<v-list color="grey lighten-5" three-line>
<v-list-item
v-for="item in displayList"
:key="item.id"
:href="item.url"
target="_blank"
>
<v-list-item-avatar>
<v-icon v-text="item.icon"></v-icon>
</v-list-item-avatar>
<v-list-item-subtitle <v-list-item-content>
v-text="item.notes" <v-list-item-title v-text="item.name"></v-list-item-title>
></v-list-item-subtitle>
</v-list-item-content>
<v-list-item-action> <v-list-item-subtitle
<v-btn large @click="openEditMenu(item, $event)" icon> v-text="item.date"
<v-icon>fa-edit</v-icon> ></v-list-item-subtitle>
</v-btn>
</v-list-item-action> <v-list-item-subtitle
</v-list-item> v-text="item.notes"
</v-list> ></v-list-item-subtitle>
</div> </v-list-item-content>
</v-tab-item>
<v-tab-item key="attach"> <v-list-item-action>
<div class="mt-8"> <v-btn large @click="openEditMenu(item, $event)" icon>
<v-file-input <v-icon>fa-edit</v-icon>
v-model="uploadFiles" </v-btn>
:label="$ay.t('AttachFile')" </v-list-item-action>
prepend-icon="fa-paperclip" </v-list-item>
multiple </v-list>
chips </div>
></v-file-input> </v-tab-item>
<v-tab-item key="attach">
<div class="mt-8">
<v-file-input
v-model="uploadFiles"
:label="$ay.t('AttachFile')"
prepend-icon="fa-paperclip"
multiple
chips
></v-file-input>
<v-text-field
v-model="notes"
:label="$ay.t('AttachmentNotes')"
></v-text-field>
<v-btn color="primary" text @click="upload">{{
$ay.t("Upload")
}}</v-btn>
</div>
</v-tab-item>
</v-tabs-items>
</v-tabs>
<v-menu
min-width="360"
v-model="editMenu"
:close-on-content-click="false"
offset-y
:position-x="menuX"
:position-y="menuY"
absolute
>
<v-card>
<v-card-title>{{ $ay.t("FileAttachment") }}</v-card-title>
<div class="ma-6">
<v-text-field <v-text-field
v-model="notes" v-model="editName"
:label="$ay.t('AttachmentFileName')"
></v-text-field>
<v-text-field
v-model="editNotes"
:label="$ay.t('AttachmentNotes')" :label="$ay.t('AttachmentNotes')"
></v-text-field> ></v-text-field>
<v-btn color="primary" text @click="upload">{{
$ay.t("Upload")
}}</v-btn>
</div> </div>
</v-tab-item> <v-card-actions>
</v-tabs-items> <v-btn @click="remove()" text>
</v-tabs> {{ $ay.t("Delete") }}
<v-menu </v-btn>
min-width="360" <v-spacer></v-spacer>
v-model="editMenu" <v-btn text @click="editMenu = false">{{ $ay.t("Cancel") }}</v-btn>
:close-on-content-click="false" <v-btn color="primary" text @click="saveEdit">{{
offset-y $ay.t("OK")
:position-x="menuX" }}</v-btn>
:position-y="menuY" </v-card-actions>
absolute </v-card>
> </v-menu>
<v-card> </template>
<v-card-title>{{ $ay.t("FileAttachment") }}</v-card-title>
<div class="ma-6">
<v-text-field
v-model="editName"
:label="$ay.t('AttachmentFileName')"
></v-text-field>
<v-text-field
v-model="editNotes"
:label="$ay.t('AttachmentNotes')"
></v-text-field>
</div>
<v-card-actions>
<v-btn @click="remove()" text>
{{ $ay.t("Delete") }}
</v-btn>
<v-spacer></v-spacer>
<v-btn text @click="editMenu = false">{{ $ay.t("Cancel") }}</v-btn>
<v-btn color="primary" text @click="saveEdit">{{
$ay.t("OK")
}}</v-btn>
</v-card-actions>
</v-card>
</v-menu>
</div> </div>
</template> </template>
<script> <script>