ui(admin-panel): responsive persons menu, XTable phone cards, full-screen form modal

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
s.esmaeili
2026-10-13 09:08:38 +03:30
co-authored by Cursor
parent 28b0a4be38
commit 0a2466ca0c
15 changed files with 453 additions and 25 deletions
@@ -12,16 +12,16 @@
the implementation lives once, parameterised by props.
-->
<div id="page-user-list">
<a-card :title="title">
<a-card :title="title" class="page-card">
<template v-if="accountingSync" #extra>
<AccountingSyncButton endpoint="admin/customers-omde/accounting-sync" @done="tbl?.fetch()" />
</template>
<div v-if="query && query.count && query.total">
<div v-if="query && query.count && query.total" class="list-count">
{{ query.total }} رکورد یافت شد -
<span class="text-danger">{{ query.count }} رکورد غیر فعال</span>
</div>
<XTable ref="tbl" :model="model" @query="setCount">
<XTable ref="tbl" :model="model" mobile-cards @query="setCount">
<template v-if="showAddButton" #add>
<ListPageHeader rid="persons.create.client" add-label="افزودن مشتری عمده" @add="openAdd" />
</template>
@@ -503,3 +503,12 @@ function viewCash(record: Record<string, any>) {
}
</script>
<style scoped>
@media (max-width: 575px) {
.list-count {
font-size: 12px;
margin-bottom: 8px;
}
}
</style>