Upload 6 files
Browse files
app.js
CHANGED
|
@@ -26,8 +26,19 @@ const toast = document.getElementById("toast");
|
|
| 26 |
|
| 27 |
const PAGE_SIZE = 24;
|
| 28 |
const STATE_KEY = "icsInquiryFilters";
|
| 29 |
-
const CONTACT_MESSAGE = (
|
| 30 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 31 |
|
| 32 |
let rows = [];
|
| 33 |
let visibleRows = [];
|
|
@@ -243,7 +254,7 @@ function createCoordinatesBlock(row) {
|
|
| 243 |
item.append(note);
|
| 244 |
|
| 245 |
if (phone) {
|
| 246 |
-
const message = CONTACT_MESSAGE(row
|
| 247 |
const actions = document.createElement("div");
|
| 248 |
actions.className = "contact-actions";
|
| 249 |
const copyPhoneButton = document.createElement("button");
|
|
|
|
| 26 |
|
| 27 |
const PAGE_SIZE = 24;
|
| 28 |
const STATE_KEY = "icsInquiryFilters";
|
| 29 |
+
const CONTACT_MESSAGE = (row) =>
|
| 30 |
+
[
|
| 31 |
+
"السلام عليكم ورحمة الله وبركاته",
|
| 32 |
+
"",
|
| 33 |
+
"أستاذي الكريم،",
|
| 34 |
+
"نأمل تزويدنا بموقع المنشأة التالية، وذلك لاستكمال بيانات الزيارة الميدانية:",
|
| 35 |
+
"",
|
| 36 |
+
`منشأة: ${row.establishmentName || "-"}`,
|
| 37 |
+
`السجل التجاري: ${row.commercialRecord || "-"}`,
|
| 38 |
+
`المدينة: ${row.city || "-"}`,
|
| 39 |
+
"",
|
| 40 |
+
"شاكرين لكم تعاونكم.",
|
| 41 |
+
].join("\n");
|
| 42 |
|
| 43 |
let rows = [];
|
| 44 |
let visibleRows = [];
|
|
|
|
| 254 |
item.append(note);
|
| 255 |
|
| 256 |
if (phone) {
|
| 257 |
+
const message = CONTACT_MESSAGE(row);
|
| 258 |
const actions = document.createElement("div");
|
| 259 |
actions.className = "contact-actions";
|
| 260 |
const copyPhoneButton = document.createElement("button");
|