diff --git a/locale/ar/LC_MESSAGES/django.mo b/locale/ar/LC_MESSAGES/django.mo index ce001a6..5a80b35 100644 Binary files a/locale/ar/LC_MESSAGES/django.mo and b/locale/ar/LC_MESSAGES/django.mo differ diff --git a/locale/ar/LC_MESSAGES/django.po b/locale/ar/LC_MESSAGES/django.po index 5276b50..6f30fed 100644 --- a/locale/ar/LC_MESSAGES/django.po +++ b/locale/ar/LC_MESSAGES/django.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: PX360 1.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2026-01-05 14:56+0300\n" +"POT-Creation-Date: 2026-01-05 16:59+0300\n" "PO-Revision-Date: 2025-12-15 12:30+0300\n" "Last-Translator: PX360 Team\n" "Language-Team: Arabic\n" @@ -24,7 +24,7 @@ msgstr "المعلومات الشخصية" #: apps/accounts/admin.py:22 templates/callcenter/complaint_form.html:128 #: templates/callcenter/inquiry_form.html:132 #: templates/complaints/complaint_form.html:76 -#: templates/complaints/inquiry_detail.html:139 +#: templates/complaints/inquiry_form.html:53 msgid "Organization" msgstr "المنظمة" @@ -80,6 +80,7 @@ msgstr "العودة إلى الإجراءات" #: templates/actions/action_detail.html:227 #: templates/appreciation/appreciation_detail.html:12 #: templates/complaints/complaint_detail.html:181 +#: templates/complaints/inquiry_detail.html:179 #: templates/observations/observation_detail.html:199 msgid "Details" msgstr "التفاصيل" @@ -106,11 +107,13 @@ msgstr "يتطلب الموافقة" #: templates/actions/action_detail.html:496 #: templates/complaints/complaint_detail.html:440 +#: templates/complaints/inquiry_detail.html:390 msgid "Quick Actions" msgstr "إجراءات سريعة" #: templates/actions/action_detail.html:502 #: templates/complaints/complaint_detail.html:446 +#: templates/complaints/inquiry_detail.html:396 #: templates/config/routing_rules.html:33 #: templates/feedback/feedback_detail.html:475 #: templates/observations/observation_detail.html:398 @@ -119,6 +122,7 @@ msgstr "تعيين إلى" #: templates/actions/action_detail.html:522 #: templates/complaints/complaint_detail.html:466 +#: templates/complaints/inquiry_detail.html:416 #: templates/feedback/feedback_detail.html:455 #: templates/observations/observation_detail.html:454 msgid "Change Status" @@ -126,12 +130,15 @@ msgstr "تغيير الحالة" #: templates/actions/action_detail.html:531 #: templates/complaints/complaint_detail.html:475 +#: templates/complaints/inquiry_detail.html:425 msgid "Optional note..." msgstr "ملاحظة اختيارية..." #: templates/actions/action_detail.html:549 #: templates/complaints/complaint_detail.html:493 #: templates/complaints/complaint_detail.html:501 +#: templates/complaints/inquiry_detail.html:437 +#: templates/complaints/inquiry_detail.html:445 #: templates/observations/observation_detail.html:420 #: templates/observations/observation_detail.html:433 msgid "Add Note" @@ -139,11 +146,13 @@ msgstr "إضافة ملاحظة" #: templates/actions/action_detail.html:555 #: templates/complaints/complaint_detail.html:499 +#: templates/complaints/inquiry_detail.html:443 msgid "Enter your note..." msgstr "أدخل ملاحظتك..." #: templates/actions/action_detail.html:566 #: templates/complaints/complaint_detail.html:510 +#: templates/complaints/inquiry_detail.html:527 msgid "Assignment Info" msgstr "معلومات التعيين" @@ -174,14 +183,13 @@ msgstr "اشرح سبب الحاجة إلى تصعيد هذا الإجراء..." #: templates/callcenter/inquiry_form.html:233 #: templates/complaints/complaint_detail.html:607 #: templates/complaints/complaint_form.html:222 -#: templates/complaints/inquiry_form.html:108 +#: templates/complaints/inquiry_form.html:237 #: templates/observations/category_form.html:91 #: templates/observations/convert_to_action.html:91 msgid "Cancel" msgstr "إلغاء" #: templates/actions/action_list.html:139 -#: templates/complaints/inquiry_list.html:26 #: templates/observations/observation_list.html:113 msgid "Total" msgstr "الإجمالي" @@ -193,10 +201,7 @@ msgstr "الإجمالي" #: templates/callcenter/inquiry_list.html:103 #: templates/complaints/analytics.html:51 #: templates/complaints/complaint_list.html:122 -#: templates/complaints/inquiry_detail.html:38 -#: templates/complaints/inquiry_list.html:34 -#: templates/complaints/inquiry_list.html:72 -#: templates/complaints/inquiry_list.html:143 +#: templates/complaints/inquiry_list.html:119 msgid "Open" msgstr "مفتوح" @@ -206,10 +211,7 @@ msgstr "مفتوح" #: templates/callcenter/inquiry_list.html:70 #: templates/callcenter/inquiry_list.html:104 #: templates/complaints/complaint_list.html:137 -#: templates/complaints/inquiry_detail.html:40 -#: templates/complaints/inquiry_list.html:42 -#: templates/complaints/inquiry_list.html:73 -#: templates/complaints/inquiry_list.html:145 +#: templates/complaints/inquiry_list.html:134 #: templates/observations/observation_list.html:143 #: templates/observations/public_track.html:316 msgid "In Progress" @@ -237,7 +239,7 @@ msgstr "إجراءاتي" #: templates/callcenter/inquiry_form.html:89 #: templates/callcenter/inquiry_list.html:94 #: templates/complaints/complaint_list.html:180 -#: templates/complaints/inquiry_list.html:65 +#: templates/complaints/inquiry_list.html:177 #: templates/feedback/feedback_list.html:191 #: templates/journeys/instance_list.html:127 #: templates/observations/observation_list.html:186 @@ -259,9 +261,8 @@ msgstr "العنوان، الوصف..." #: templates/complaints/complaint_detail.html:564 #: templates/complaints/complaint_list.html:188 #: templates/complaints/complaint_list.html:340 -#: templates/complaints/inquiry_detail.html:36 -#: templates/complaints/inquiry_list.html:69 -#: templates/complaints/inquiry_list.html:120 +#: templates/complaints/inquiry_list.html:185 +#: templates/complaints/inquiry_list.html:304 #: templates/config/routing_rules.html:34 templates/config/sla_config.html:35 #: templates/dashboard/command_center.html:241 #: templates/feedback/feedback_list.html:212 @@ -311,6 +312,9 @@ msgstr "الخطورة" #: templates/complaints/complaint_detail.html:230 #: templates/complaints/complaint_form.html:173 #: templates/complaints/complaint_list.html:213 +#: templates/complaints/inquiry_form.html:161 +#: templates/complaints/inquiry_list.html:198 +#: templates/complaints/inquiry_list.html:305 #: templates/config/routing_rules.html:28 #: templates/feedback/feedback_form.html:230 #: templates/observations/convert_to_action.html:71 @@ -330,10 +334,10 @@ msgstr "الأولوية" #: templates/complaints/complaint_form.html:128 #: templates/complaints/complaint_list.html:225 #: templates/complaints/complaint_list.html:339 -#: templates/complaints/inquiry_detail.html:51 -#: templates/complaints/inquiry_form.html:86 -#: templates/complaints/inquiry_list.html:79 -#: templates/complaints/inquiry_list.html:119 +#: templates/complaints/inquiry_detail.html:206 +#: templates/complaints/inquiry_form.html:124 +#: templates/complaints/inquiry_list.html:210 +#: templates/complaints/inquiry_list.html:303 #: templates/feedback/feedback_form.html:192 #: templates/feedback/feedback_list.html:225 #: templates/feedback/feedback_list.html:323 @@ -351,6 +355,8 @@ msgstr "الفئة" #: templates/actions/action_list.html:431 #: templates/complaints/complaint_detail.html:223 #: templates/complaints/complaint_form.html:184 +#: templates/complaints/inquiry_detail.html:212 +#: templates/complaints/inquiry_form.html:172 #: templates/dashboard/command_center.html:238 msgid "Source" msgstr "المصدر" @@ -370,10 +376,10 @@ msgstr "المصدر" #: templates/complaints/complaint_form.html:81 #: templates/complaints/complaint_list.html:240 #: templates/complaints/complaint_list.html:342 -#: templates/complaints/inquiry_detail.html:142 -#: templates/complaints/inquiry_form.html:33 -#: templates/complaints/inquiry_list.html:90 -#: templates/complaints/inquiry_list.html:121 +#: templates/complaints/inquiry_detail.html:141 +#: templates/complaints/inquiry_form.html:58 +#: templates/complaints/inquiry_list.html:226 +#: templates/complaints/inquiry_list.html:306 #: templates/config/routing_rules.html:32 templates/config/sla_config.html:29 #: templates/feedback/feedback_form.html:247 #: templates/feedback/feedback_list.html:249 @@ -407,7 +413,7 @@ msgstr "المستشفى" #: templates/complaints/complaint_form.html:91 #: templates/complaints/complaint_list.html:253 #: templates/complaints/inquiry_detail.html:145 -#: templates/complaints/inquiry_form.html:44 +#: templates/complaints/inquiry_form.html:68 #: templates/dashboard/command_center.html:146 #: templates/feedback/feedback_form.html:256 #: templates/journeys/instance_list.html:166 @@ -433,7 +439,10 @@ msgstr "القسم" #: templates/complaints/complaint_detail.html:514 #: templates/complaints/complaint_list.html:266 #: templates/complaints/complaint_list.html:343 -#: templates/complaints/inquiry_detail.html:149 +#: templates/complaints/inquiry_detail.html:235 +#: templates/complaints/inquiry_detail.html:531 +#: templates/complaints/inquiry_list.html:239 +#: templates/complaints/inquiry_list.html:307 #: templates/observations/observation_detail.html:367 #: templates/observations/observation_list.html:245 #: templates/observations/observation_list.html:313 @@ -442,6 +451,7 @@ msgstr "تم الإسناد إلى" #: templates/actions/action_list.html:381 #: templates/complaints/complaint_list.html:288 +#: templates/complaints/inquiry_list.html:252 #: templates/feedback/feedback_list.html:274 #: templates/journeys/instance_list.html:178 #: templates/observations/observation_list.html:268 @@ -450,6 +460,7 @@ msgstr "من التاريخ" #: templates/actions/action_list.html:385 #: templates/complaints/complaint_list.html:292 +#: templates/complaints/inquiry_list.html:256 #: templates/feedback/feedback_list.html:278 #: templates/journeys/instance_list.html:182 #: templates/observations/observation_list.html:272 @@ -463,7 +474,8 @@ msgstr "إلى التاريخ" #: templates/complaints/analytics.html:178 #: templates/complaints/complaint_detail.html:138 #: templates/complaints/complaint_list.html:336 -#: templates/complaints/inquiry_list.html:116 +#: templates/complaints/inquiry_detail.html:128 +#: templates/complaints/inquiry_list.html:300 #: templates/feedback/feedback_list.html:319 msgid "ID" msgstr "المعرف" @@ -483,6 +495,9 @@ msgstr "العنوان" #: templates/actions/action_list.html:437 #: templates/complaints/analytics.html:182 #: templates/complaints/complaint_list.html:344 +#: templates/complaints/inquiry_detail.html:154 +#: templates/complaints/inquiry_form.html:206 +#: templates/complaints/inquiry_list.html:308 msgid "Due Date" msgstr "تاريخ الاستحقاق" @@ -492,8 +507,8 @@ msgstr "تاريخ الاستحقاق" #: templates/callcenter/inquiry_list.html:156 #: templates/complaints/complaint_detail.html:288 #: templates/complaints/complaint_list.html:345 -#: templates/complaints/inquiry_detail.html:55 -#: templates/complaints/inquiry_list.html:122 +#: templates/complaints/inquiry_detail.html:275 +#: templates/complaints/inquiry_list.html:309 #: templates/feedback/feedback_list.html:328 msgid "Created" msgstr "تاريخ الإنشاء" @@ -508,7 +523,7 @@ msgstr "تاريخ الإنشاء" #: templates/callcenter/interaction_list.html:61 #: templates/complaints/analytics.html:184 #: templates/complaints/complaint_list.html:346 -#: templates/complaints/inquiry_list.html:123 +#: templates/complaints/inquiry_list.html:310 #: templates/feedback/feedback_list.html:329 #: templates/journeys/instance_list.html:213 #: templates/journeys/template_list.html:30 @@ -530,6 +545,7 @@ msgstr "الإجراءات" #: templates/appreciation/appreciation_list.html:160 #: templates/complaints/complaint_detail.html:416 #: templates/complaints/complaint_list.html:405 +#: templates/complaints/inquiry_list.html:382 #: templates/feedback/feedback_list.html:400 #: templates/observations/observation_list.html:376 msgid "View" @@ -551,8 +567,6 @@ msgstr "قم بإجراء تحليل للمشاعر على أي نص" #: templates/appreciation/appreciation_detail.html:105 #: templates/callcenter/complaint_form.html:65 #: templates/callcenter/inquiry_form.html:61 -#: templates/complaints/inquiry_detail.html:16 -#: templates/complaints/inquiry_form.html:16 #: templates/observations/observation_detail.html:178 msgid "Back to List" msgstr "العودة إلى القائمة" @@ -837,7 +851,7 @@ msgstr "إجمالي النتائج" #: templates/ai_engine/sentiment_list.html:69 #: templates/complaints/complaint_list.html:168 -#: templates/complaints/inquiry_list.html:60 +#: templates/complaints/inquiry_list.html:165 #: templates/observations/observation_list.html:174 msgid "Filters" msgstr "عوامل التصفية" @@ -845,14 +859,15 @@ msgstr "عوامل التصفية" #: templates/ai_engine/sentiment_list.html:96 #: templates/appreciation/leaderboard.html:75 #: templates/complaints/complaint_list.html:299 +#: templates/complaints/inquiry_list.html:263 #: templates/observations/observation_list.html:279 msgid "Apply Filters" msgstr "تطبيق الفلاتر" #: templates/ai_engine/sentiment_list.html:99 #: templates/complaints/complaint_list.html:302 -#: templates/complaints/inquiry_form.html:209 -#: templates/complaints/inquiry_list.html:100 +#: templates/complaints/inquiry_form.html:325 +#: templates/complaints/inquiry_list.html:266 #: templates/observations/observation_list.html:282 #: templates/physicians/leaderboard.html:116 #: templates/physicians/physician_list.html:97 @@ -887,7 +902,6 @@ msgstr "الأول" #: templates/appreciation/my_badges.html:107 #: templates/callcenter/complaint_list.html:226 #: templates/callcenter/inquiry_list.html:218 -#: templates/complaints/inquiry_list.html:175 msgid "Previous" msgstr "السابق" @@ -915,7 +929,6 @@ msgstr "من" #: templates/appreciation/my_badges.html:131 #: templates/callcenter/complaint_list.html:240 #: templates/callcenter/inquiry_list.html:232 -#: templates/complaints/inquiry_list.html:187 msgid "Next" msgstr "التالي" @@ -943,7 +956,7 @@ msgid "Total Actions" msgstr "إجمالي الإجراءات" #: templates/analytics/kpi_list.html:25 -#: templates/complaints/inquiry_detail.html:122 +#: templates/complaints/inquiry_detail.html:502 #: templates/config/routing_rules.html:29 templates/config/sla_config.html:28 #: templates/journeys/template_list.html:25 #: templates/observations/observation_detail.html:261 @@ -1131,6 +1144,7 @@ msgstr "جميع الحالات" #: templates/appreciation/appreciation_list.html:184 #: templates/complaints/complaint_list.html:227 +#: templates/complaints/inquiry_list.html:212 #: templates/observations/observation_list.html:221 msgid "All Categories" msgstr "جميع الفئات" @@ -1182,7 +1196,6 @@ msgid "Physician" msgstr "طبيب" #: templates/appreciation/appreciation_send_form.html:46 -#: templates/complaints/inquiry_form.html:35 msgid "Select Hospital" msgstr "اختر المستشفى" @@ -1200,9 +1213,6 @@ msgid "Select a hospital first" msgstr "يرجى اختيار المستشفى أولًا" #: templates/appreciation/appreciation_send_form.html:69 -#: templates/complaints/inquiry_form.html:46 -#: templates/complaints/inquiry_form.html:140 -#: templates/complaints/inquiry_form.html:147 msgid "Select Department" msgstr "اختر القسم" @@ -1211,7 +1221,6 @@ msgid "Optional: Select if related to a specific department" msgstr "اختياري: اختر إذا كان مرتبطًا بقسم معين" #: templates/appreciation/appreciation_send_form.html:78 -#: templates/complaints/inquiry_form.html:88 msgid "Select Category" msgstr "اختر الفئة" @@ -1713,6 +1722,7 @@ msgstr "إنشاء شكوى" #: templates/callcenter/inquiry_list.html:5 #: templates/callcenter/inquiry_success.html:5 #: templates/complaints/complaint_form.html:192 +#: templates/complaints/inquiry_form.html:183 #: templates/layouts/partials/sidebar.html:184 msgid "Call Center" msgstr "مركز الاتصال" @@ -1755,6 +1765,7 @@ msgstr "رقم هاتف المتصل" #: templates/callcenter/complaint_form.html:111 #: templates/callcenter/inquiry_form.html:107 +#: templates/complaints/inquiry_form.html:107 msgid "Phone number" msgstr "رقم الهاتف" @@ -1771,8 +1782,10 @@ msgstr "العلاقة" #: templates/complaints/complaint_form.html:58 #: templates/complaints/complaint_form.html:187 #: templates/complaints/complaint_list.html:337 -#: templates/complaints/inquiry_detail.html:109 -#: templates/complaints/inquiry_form.html:52 +#: templates/complaints/inquiry_detail.html:132 +#: templates/complaints/inquiry_detail.html:478 +#: templates/complaints/inquiry_form.html:84 +#: templates/complaints/inquiry_form.html:175 #: templates/feedback/feedback_form.html:115 #: templates/journeys/instance_list.html:207 #: templates/surveys/instance_list.html:62 @@ -1782,6 +1795,7 @@ msgstr "المريض" #: templates/callcenter/complaint_form.html:118 #: templates/callcenter/inquiry_form.html:122 #: templates/complaints/complaint_form.html:188 +#: templates/complaints/inquiry_form.html:176 msgid "Family Member" msgstr "أحد أفراد العائلة" @@ -1793,8 +1807,10 @@ msgstr "أحد أفراد العائلة" #: templates/complaints/complaint_form.html:137 #: templates/complaints/complaint_form.html:195 #: templates/complaints/complaint_list.html:234 -#: templates/complaints/inquiry_form.html:93 -#: templates/complaints/inquiry_list.html:86 +#: templates/complaints/inquiry_form.html:134 +#: templates/complaints/inquiry_form.html:184 +#: templates/complaints/inquiry_form.html:199 +#: templates/complaints/inquiry_list.html:220 msgid "Other" msgstr "أخرى" @@ -1894,8 +1910,8 @@ msgstr "مدة الانتظار" #: templates/callcenter/inquiry_list.html:115 #: templates/complaints/complaint_form.html:135 #: templates/complaints/complaint_list.html:232 -#: templates/complaints/inquiry_form.html:90 -#: templates/complaints/inquiry_list.html:83 +#: templates/complaints/inquiry_form.html:128 +#: templates/complaints/inquiry_list.html:214 msgid "Billing" msgstr "الفوترة" @@ -1918,6 +1934,7 @@ msgstr "فئة فرعية اختيارية" #: templates/callcenter/complaint_form.html:213 #: templates/complaints/complaint_form.html:155 +#: templates/complaints/inquiry_form.html:157 msgid "Classification" msgstr "التصنيف" @@ -1933,6 +1950,8 @@ msgstr "اختر درجة الخطورة..." #: templates/complaints/complaint_form.html:212 #: templates/complaints/complaint_list.html:204 #: templates/complaints/complaint_list.html:216 +#: templates/complaints/inquiry_form.html:164 +#: templates/complaints/inquiry_list.html:201 #: templates/observations/observation_list.html:210 #: templates/observations/public_new.html:250 msgid "Low" @@ -1946,6 +1965,8 @@ msgstr "منخفض" #: templates/complaints/complaint_form.html:211 #: templates/complaints/complaint_list.html:205 #: templates/complaints/complaint_list.html:217 +#: templates/complaints/inquiry_form.html:165 +#: templates/complaints/inquiry_list.html:202 #: templates/observations/observation_list.html:211 #: templates/observations/public_new.html:256 msgid "Medium" @@ -1959,6 +1980,8 @@ msgstr "متوسط" #: templates/complaints/complaint_form.html:210 #: templates/complaints/complaint_list.html:206 #: templates/complaints/complaint_list.html:218 +#: templates/complaints/inquiry_form.html:166 +#: templates/complaints/inquiry_list.html:203 #: templates/observations/observation_list.html:212 #: templates/observations/public_new.html:262 msgid "High" @@ -1986,6 +2009,8 @@ msgstr "اختر الأولوية..." #: templates/callcenter/complaint_form.html:237 #: templates/complaints/complaint_form.html:179 #: templates/complaints/complaint_list.html:219 +#: templates/complaints/inquiry_form.html:167 +#: templates/complaints/inquiry_list.html:204 msgid "Urgent" msgstr "عاجل" @@ -2079,10 +2104,7 @@ msgstr "الشكاوى المُقدمة عبر مركز الاتصال" #: templates/callcenter/inquiry_list.html:105 #: templates/complaints/analytics.html:67 #: templates/complaints/analytics.html:147 -#: templates/complaints/inquiry_detail.html:42 -#: templates/complaints/inquiry_list.html:50 -#: templates/complaints/inquiry_list.html:74 -#: templates/complaints/inquiry_list.html:147 +#: templates/complaints/inquiry_list.html:149 #: templates/observations/public_track.html:323 msgid "Resolved" msgstr "تم الحل" @@ -2100,16 +2122,12 @@ msgstr "بحث..." #: templates/callcenter/inquiry_list.html:113 #: templates/callcenter/inquiry_list.html:125 #: templates/complaints/complaint_list.html:281 -#: templates/complaints/inquiry_list.html:71 -#: templates/complaints/inquiry_list.html:81 -#: templates/complaints/inquiry_list.html:92 #: templates/observations/observation_list.html:260 msgid "All" msgstr "الكل" #: templates/callcenter/complaint_list.html:110 #: templates/callcenter/inquiry_list.html:106 -#: templates/complaints/inquiry_list.html:75 #: templates/observations/public_track.html:330 msgid "Closed" msgstr "مغلقة" @@ -2127,6 +2145,9 @@ msgstr "تصفية" #: templates/callcenter/complaint_list.html:178 #: templates/callcenter/complaint_success.html:83 #: templates/complaints/complaint_detail.html:241 +#: templates/complaints/inquiry_detail.html:217 +#: templates/complaints/inquiry_detail.html:230 +#: templates/complaints/inquiry_detail.html:537 msgid "N/A" msgstr "غير متاح" @@ -2222,7 +2243,7 @@ msgstr "عرض جميع الشكاوى" #: templates/callcenter/inquiry_form.html:56 #: templates/callcenter/inquiry_form.html:230 #: templates/callcenter/inquiry_list.html:36 -#: templates/complaints/inquiry_form.html:110 +#: templates/complaints/inquiry_form.html:234 #: templates/layouts/partials/sidebar.html:207 msgid "Create Inquiry" msgstr "إنشاء استفسار" @@ -2236,66 +2257,68 @@ msgid "Search for an existing patient or enter contact details manually" msgstr "ابحث عن مريض موجود أو أدخل تفاصيل الاتصال يدويًا" #: templates/callcenter/inquiry_form.html:99 -#: templates/complaints/inquiry_form.html:65 +#: templates/complaints/inquiry_form.html:98 #: templates/feedback/feedback_form.html:128 msgid "Contact Name" msgstr "اسم جهة الاتصال" #: templates/callcenter/inquiry_form.html:105 -#: templates/complaints/inquiry_form.html:71 +#: templates/complaints/inquiry_form.html:105 msgid "Contact Phone" msgstr "هاتف جهة الاتصال" #: templates/callcenter/inquiry_form.html:111 -#: templates/complaints/inquiry_form.html:75 +#: templates/complaints/inquiry_form.html:110 msgid "Contact Email" msgstr "البريد الإلكتروني لجهة الاتصال" #: templates/callcenter/inquiry_form.html:113 +#: templates/complaints/inquiry_form.html:112 msgid "Email address" msgstr "عنوان البريد الإلكتروني" #: templates/callcenter/inquiry_form.html:158 #: templates/callcenter/inquiry_success.html:60 -#: templates/complaints/inquiry_form.html:83 +#: templates/complaints/inquiry_detail.html:202 +#: templates/complaints/inquiry_form.html:120 msgid "Inquiry Details" msgstr "تفاصيل الاستفسار" #: templates/callcenter/inquiry_form.html:165 #: templates/callcenter/inquiry_list.html:114 -#: templates/complaints/inquiry_form.html:89 -#: templates/complaints/inquiry_list.html:82 +#: templates/complaints/inquiry_form.html:127 +#: templates/complaints/inquiry_list.html:213 msgid "Appointment" msgstr "موعد" #: templates/callcenter/inquiry_form.html:167 #: templates/callcenter/inquiry_list.html:116 -#: templates/complaints/inquiry_form.html:91 -#: templates/complaints/inquiry_list.html:84 +#: templates/complaints/inquiry_form.html:129 +#: templates/complaints/inquiry_list.html:215 msgid "Medical Records" msgstr "السجلات الطبية" #: templates/callcenter/inquiry_form.html:168 -#: templates/complaints/inquiry_form.html:92 +#: templates/complaints/inquiry_form.html:133 msgid "General Information" msgstr "معلومات عامة" #: templates/callcenter/inquiry_form.html:174 #: templates/callcenter/inquiry_list.html:151 #: templates/callcenter/interaction_list.html:55 -#: templates/complaints/inquiry_detail.html:32 -#: templates/complaints/inquiry_form.html:98 -#: templates/complaints/inquiry_list.html:117 +#: templates/complaints/inquiry_form.html:139 +#: templates/complaints/inquiry_list.html:301 msgid "Subject" msgstr "الموضوع" #: templates/callcenter/inquiry_form.html:176 +#: templates/complaints/inquiry_form.html:141 msgid "Brief summary of the inquiry" msgstr "ملخص موجز للاستفسار" #: templates/callcenter/inquiry_form.html:180 -#: templates/complaints/inquiry_detail.html:61 -#: templates/complaints/inquiry_form.html:103 +#: templates/complaints/inquiry_detail.html:249 +#: templates/complaints/inquiry_form.html:145 #: templates/feedback/feedback_form.html:181 msgid "Message" msgstr "الرسالة" @@ -2373,8 +2396,6 @@ msgid "No patients found. Please enter contact details manually." msgstr "لم يتم العثور على أي مرضى. يرجى إدخال بيانات الاتصال يدويًا." #: templates/callcenter/inquiry_list.html:5 -#: templates/complaints/inquiry_list.html:4 -#: templates/complaints/inquiry_list.html:11 #: templates/layouts/partials/sidebar.html:48 #: templates/layouts/partials/sidebar.html:221 msgid "Inquiries" @@ -2389,21 +2410,23 @@ msgid "Inquiries created via call center" msgstr "الاستفسارات المُنشأة عبر مركز الاتصال" #: templates/callcenter/inquiry_list.html:48 +#: templates/complaints/inquiry_list.html:104 msgid "Total Inquiries" msgstr "إجمالي الاستفسارات" #: templates/callcenter/inquiry_list.html:117 -#: templates/complaints/inquiry_list.html:85 +#: templates/complaints/inquiry_list.html:219 msgid "General" msgstr "عام" #: templates/callcenter/inquiry_list.html:152 -#: templates/complaints/inquiry_list.html:118 +#: templates/complaints/inquiry_detail.html:136 +#: templates/complaints/inquiry_list.html:302 msgid "Contact" msgstr "جهة الاتصال" #: templates/callcenter/inquiry_list.html:203 -#: templates/complaints/inquiry_list.html:162 +#: templates/complaints/inquiry_list.html:392 msgid "No inquiries found" msgstr "لم يتم العثور على استفسارات" @@ -2577,25 +2600,44 @@ msgstr "متوسط وقت الحل" msgid "Back to Complaints" msgstr "الرجوع إلى الشكاوى" +#: templates/complaints/complaint_detail.html:141 +#: templates/complaints/complaint_list.html:361 +#: templates/complaints/inquiry_detail.html:132 +#: templates/complaints/inquiry_detail.html:482 +#: templates/complaints/inquiry_form.html:302 +#: templates/complaints/inquiry_form.html:324 +#: templates/complaints/inquiry_list.html:334 +#: templates/organizations/patient_list.html:16 +#: templates/surveys/instance_detail.html:114 msgid "MRN" msgstr "الرقم الطبي (MRN)" +#: templates/complaints/complaint_detail.html:157 msgid "SLA Deadline" msgstr "الموعد النهائي لاتفاقية مستوى الخدمة (SLA)" +#: templates/complaints/complaint_detail.html:163 +#: templates/complaints/complaint_list.html:367 +#: templates/complaints/inquiry_detail.html:160 +#: templates/complaints/inquiry_list.html:327 msgid "OVERDUE" msgstr "متأخرة" +#: templates/complaints/complaint_detail.html:166 +#: templates/complaints/inquiry_detail.html:163 msgid "remaining" msgstr "متبقية" #: templates/complaints/complaint_detail.html:187 +#: templates/complaints/inquiry_detail.html:185 #: templates/observations/observation_detail.html:311 msgid "Timeline" msgstr "الجدول الزمني" #: templates/complaints/complaint_detail.html:193 #: templates/complaints/complaint_detail.html:356 +#: templates/complaints/inquiry_detail.html:191 +#: templates/complaints/inquiry_detail.html:343 #: templates/observations/observation_detail.html:289 #: templates/observations/public_new.html:326 msgid "Attachments" @@ -2606,69 +2648,96 @@ msgstr "المرفقات" msgid "PX Actions" msgstr "إجراءات تجربة المريض" +#: templates/complaints/complaint_detail.html:271 msgid "Resolution" msgstr "الحل" +#: templates/complaints/complaint_detail.html:276 msgid "Resolved by" msgstr "تم الحل بواسطة" #: templates/complaints/complaint_detail.html:277 -#: templates/complaints/inquiry_detail.html:71 +#: templates/complaints/inquiry_detail.html:264 msgid "on" msgstr "في" #: templates/complaints/complaint_detail.html:292 +#: templates/complaints/inquiry_detail.html:279 #: templates/observations/observation_detail.html:223 #: templates/observations/public_track.html:287 msgid "Last Updated" msgstr "آخر تحديث" #: templates/complaints/complaint_detail.html:304 +#: templates/complaints/inquiry_detail.html:291 msgid "Activity Timeline" msgstr "الجدول الزمني للنشاط" #: templates/complaints/complaint_detail.html:345 +#: templates/complaints/inquiry_detail.html:332 #: templates/observations/observation_detail.html:348 msgid "No timeline entries yet" msgstr "لا توجد إدخالات في الجدول الزمني بعد" #: templates/complaints/complaint_detail.html:388 +#: templates/complaints/inquiry_detail.html:375 msgid "No attachments" msgstr "لا توجد مرفقات" +#: templates/complaints/complaint_detail.html:399 msgid "Related PX Actions" msgstr "إجراءات PX المرتبطة" +#: templates/complaints/complaint_detail.html:425 msgid "No PX actions created yet" msgstr "لم يتم إنشاء أي إجراء PX بعد" +#: templates/complaints/complaint_detail.html:449 +#: templates/complaints/inquiry_detail.html:399 msgid "Select user..." msgstr "اختر المستخدم..." +#: templates/complaints/complaint_detail.html:477 +#: templates/complaints/inquiry_detail.html:427 msgid "Update Status" msgstr "تحديث الحالة" +#: templates/complaints/complaint_detail.html:484 +#: templates/complaints/complaint_detail.html:609 msgid "Escalate" msgstr "تصعيد" +#: templates/complaints/complaint_detail.html:523 +#: templates/complaints/complaint_list.html:391 +#: templates/complaints/inquiry_detail.html:240 +#: templates/complaints/inquiry_detail.html:540 +#: templates/complaints/inquiry_list.html:364 +#: templates/observations/observation_list.html:370 msgid "Unassigned" msgstr "غير معين" +#: templates/complaints/complaint_detail.html:530 +#: templates/complaints/inquiry_detail.html:560 msgid "Resolved By" msgstr "تم الحل بواسطة" +#: templates/complaints/complaint_detail.html:543 msgid "Closed By" msgstr "تم الإغلاق بواسطة" +#: templates/complaints/complaint_detail.html:560 msgid "Resolution Survey" msgstr "استبيان الحل" +#: templates/complaints/complaint_detail.html:576 msgid "View Survey" msgstr "عرض الاستبيان" +#: templates/complaints/complaint_detail.html:592 msgid "Escalate Complaint" msgstr "تصعيد الشكوى" +#: templates/complaints/complaint_detail.html:598 msgid "This will escalate the complaint to higher management" msgstr "سيؤدي ذلك إلى تصعيد الشكوى إلى الإدارة العليا" @@ -2681,52 +2750,79 @@ msgstr "اشرح سبب حاجة هذه الشكوى إلى التصعيد..." msgid "New Complaint" msgstr "شكوى جديدة" +#: templates/complaints/complaint_form.html:40 msgid "Create New Complaint" msgstr "إنشاء شكوى جديدة" +#: templates/complaints/complaint_form.html:42 msgid "File a new patient complaint with SLA tracking" msgstr "تقديم شكوى مريض جديدة مع تتبع اتفاقية مستوى الخدمة (SLA)" +#: templates/complaints/complaint_form.html:53 +#: templates/journeys/instance_detail.html:323 +#: templates/surveys/instance_detail.html:102 msgid "Patient Information" msgstr "معلومات المريض" +#: templates/complaints/complaint_form.html:60 msgid "Search and select patient" msgstr "ابحث واختر المريض" +#: templates/complaints/complaint_form.html:62 msgid "Search by MRN or name" msgstr "ابحث برقم الملف الطبي أو الاسم" +#: templates/complaints/complaint_form.html:83 +#: templates/complaints/inquiry_form.html:60 msgid "Select hospital" msgstr "اختر المستشفى" +#: templates/complaints/complaint_form.html:93 +#: templates/complaints/inquiry_form.html:70 +#: templates/complaints/inquiry_form.html:254 +#: templates/complaints/inquiry_form.html:261 msgid "Select department" msgstr "اختر القسم" +#: templates/complaints/complaint_form.html:102 msgid "Select physician" msgstr "اختر الطبيب" +#: templates/complaints/complaint_form.html:123 msgid "Detailed description of the complaint..." msgstr "وصف مفصل للشكوى..." +#: templates/complaints/complaint_form.html:130 +#: templates/complaints/inquiry_form.html:126 msgid "Select category" msgstr "اختر الفئة" +#: templates/complaints/complaint_form.html:161 msgid "Select severity" msgstr "اختر شدة الشكوى" +#: templates/complaints/complaint_form.html:175 +#: templates/complaints/inquiry_form.html:163 msgid "Select priority" msgstr "اختر الأولوية" +#: templates/complaints/complaint_form.html:186 +#: templates/complaints/inquiry_form.html:174 msgid "Select source" msgstr "اختر المصدر" +#: templates/complaints/complaint_form.html:189 +#: templates/complaints/inquiry_form.html:177 msgid "Staff" msgstr "الموظف" +#: templates/complaints/complaint_form.html:190 msgid "Survey" msgstr "الاستبيان" #: templates/complaints/complaint_form.html:191 +#: templates/complaints/inquiry_form.html:182 +#: templates/complaints/inquiry_form.html:197 #: templates/layouts/partials/sidebar.html:233 msgid "Social Media" msgstr "وسائل التواصل الاجتماعي" @@ -2735,27 +2831,37 @@ msgstr "وسائل التواصل الاجتماعي" msgid "Ministry of Health" msgstr "وزارة الصحة" +#: templates/complaints/complaint_form.html:194 msgid "Council of Health Insurance" msgstr "مجلس الضمان الصحي" +#: templates/complaints/complaint_form.html:206 msgid "SLA deadline will be automatically calculated based on severity" -msgstr "سيتم حساب الموعد النهائي لاتفاقية مستوى الخدمة تلقائيًا بناءً على شدة الشكوى" +msgstr "" +"سيتم حساب الموعد النهائي لاتفاقية مستوى الخدمة تلقائيًا بناءً على شدة الشكوى" +#: templates/complaints/complaint_form.html:209 msgid "4 hours" msgstr "٤ ساعات" +#: templates/complaints/complaint_form.html:210 msgid "24 hours" msgstr "٢٤ ساعة" +#: templates/complaints/complaint_form.html:211 msgid "72 hours" msgstr "٧٢ ساعة" +#: templates/complaints/complaint_form.html:212 msgid "168 hours (7 days)" msgstr "١٦٨ ساعة (٧ أيام)" +#: templates/complaints/complaint_list.html:5 +#: templates/complaints/complaint_list.html:87 msgid "Complaints Console" msgstr "لوحة شكاوى المرضى" +#: templates/complaints/complaint_list.html:89 msgid "Manage and track patient complaints with SLA monitoring" msgstr "إدارة وتتبع شكاوى المرضى مع مراقبة اتفاقية مستوى الخدمة (SLA)" @@ -2764,6 +2870,7 @@ msgid "Title, MRN, Patient name..." msgstr "العنوان، رقم الملف الطبي، اسم المريض..." #: templates/complaints/complaint_list.html:190 +#: templates/complaints/inquiry_list.html:187 #: templates/observations/observation_list.html:196 msgid "All Statuses" msgstr "جميع الحالات" @@ -2774,10 +2881,12 @@ msgid "All Severities" msgstr "جميع درجات الخطورة" #: templates/complaints/complaint_list.html:215 +#: templates/complaints/inquiry_list.html:200 msgid "All Priorities" msgstr "جميع الأولويات" #: templates/complaints/complaint_list.html:242 +#: templates/complaints/inquiry_list.html:228 #: templates/physicians/department_overview.html:56 #: templates/physicians/leaderboard.html:83 #: templates/physicians/physician_list.html:65 @@ -2795,6 +2904,7 @@ msgid "All Departments" msgstr "جميع الأقسام" #: templates/complaints/complaint_list.html:268 +#: templates/complaints/inquiry_list.html:241 #: templates/observations/observation_list.html:247 msgid "All Users" msgstr "جميع المستخدمين" @@ -2804,46 +2914,53 @@ msgid "SLA Status" msgstr "حالة اتفاقية مستوى الخدمة (SLA)" #: templates/complaints/complaint_list.html:318 +#: templates/complaints/inquiry_list.html:282 msgid "Export CSV" msgstr "تصدير CSV" +#: templates/complaints/complaint_list.html:321 +#: templates/complaints/inquiry_list.html:285 msgid "Export Excel" msgstr "تصدير Excel" -#: templates/complaints/inquiry_detail.html:4 -#: templates/complaints/inquiry_detail.html:11 -msgid "Inquiry Detail" -msgstr "تفاصيل الاستفسار" +#: templates/complaints/inquiry_detail.html:107 +#: templates/complaints/inquiry_form.html:36 +msgid "Back to Inquiries" +msgstr "العودة إلى الاستفسارات" -#: templates/complaints/inquiry_detail.html:27 -#: templates/complaints/inquiry_form.html:25 -msgid "Inquiry Information" -msgstr "معلومات الاستفسار" +msgid "Channel" +msgstr "القناة" -#: templates/complaints/inquiry_detail.html:67 -#: templates/complaints/inquiry_detail.html:88 +#: templates/complaints/inquiry_detail.html:258 msgid "Response" msgstr "الرد" -#: templates/complaints/inquiry_detail.html:70 +#: templates/complaints/inquiry_detail.html:263 msgid "Responded by" msgstr "تم الرد من قبل" -#: templates/complaints/inquiry_detail.html:82 +#: templates/complaints/inquiry_detail.html:455 msgid "Respond to Inquiry" msgstr "الرد على الاستفسار" -#: templates/complaints/inquiry_detail.html:92 +#: templates/complaints/inquiry_detail.html:461 +#: templates/feedback/feedback_detail.html:501 +msgid "Enter your response..." +msgstr "أدخل ردك..." + +#: templates/complaints/inquiry_detail.html:463 msgid "Send Response" msgstr "إرسال الرد" -#: templates/complaints/inquiry_detail.html:105 -#: templates/complaints/inquiry_form.html:62 +#: templates/complaints/inquiry_detail.html:473 +#: templates/complaints/inquiry_form.html:79 msgid "Contact Information" msgstr "معلومات الاتصال" -#: templates/complaints/inquiry_detail.html:114 -#: templates/complaints/inquiry_detail.html:126 +#: templates/complaints/inquiry_detail.html:488 +#: templates/complaints/inquiry_detail.html:509 +#: templates/complaints/inquiry_form.html:178 +#: templates/complaints/inquiry_form.html:193 #: templates/feedback/feedback_form.html:144 #: templates/observations/observation_detail.html:269 #: templates/observations/public_new.html:360 @@ -2854,8 +2971,10 @@ msgstr "معلومات الاتصال" msgid "Phone" msgstr "رقم الهاتف" -#: templates/complaints/inquiry_detail.html:118 -#: templates/complaints/inquiry_detail.html:130 +#: templates/complaints/inquiry_detail.html:495 +#: templates/complaints/inquiry_detail.html:516 +#: templates/complaints/inquiry_form.html:179 +#: templates/complaints/inquiry_form.html:194 #: templates/feedback/feedback_form.html:137 #: templates/observations/observation_detail.html:275 #: templates/observations/public_new.html:364 @@ -2864,37 +2983,93 @@ msgstr "رقم الهاتف" msgid "Email" msgstr "البريد الإلكتروني" -#: templates/complaints/inquiry_form.html:4 -#: templates/complaints/inquiry_form.html:11 -#: templates/complaints/inquiry_list.html:16 +#: templates/complaints/inquiry_detail.html:537 +#: templates/observations/public_track.html:309 +msgid "Assigned" +msgstr "تم التعيين" + +msgid "Responded By" +msgstr "تم الرد بواسطة" + msgid "New Inquiry" msgstr "استفسار جديد" -#: templates/complaints/inquiry_form.html:12 -msgid "Create a new patient inquiry" -msgstr "إنشاء استفسار جديد للمريض" +msgid "Create New Inquiry" +msgstr "إنشاء استفسار جديد" -#: templates/complaints/inquiry_form.html:52 +msgid "Create a new patient inquiry or request" +msgstr "إنشاء استفسار أو طلب جديد للمريض" + +#: templates/complaints/inquiry_form.html:84 msgid "Optional" msgstr "اختياري" -#: templates/complaints/inquiry_form.html:53 +#: templates/complaints/inquiry_form.html:86 msgid "Search by MRN or name..." msgstr "البحث برقم الملف الطبي أو الاسم..." -#: templates/complaints/inquiry_form.html:62 -msgid "if not a registered patient" -msgstr "إذا لم يكن مريضًا مسجلاً" +#: templates/complaints/inquiry_form.html:93 +msgid "OR" +msgstr "أو" -#: templates/complaints/inquiry_form.html:121 +msgid "Name of contact person" +msgstr "اسم جهة الاتصال" + +msgid "Pharmacy" +msgstr "الصيدلية" + +msgid "Insurance" +msgstr "التأمين" + +#: templates/complaints/inquiry_form.html:132 +#: templates/complaints/inquiry_list.html:218 +#: templates/feedback/feedback_delete_confirm.html:61 +#: templates/feedback/feedback_detail.html:154 +#: templates/feedback/feedback_form.html:65 +#: templates/layouts/partials/sidebar.html:67 +msgid "Feedback" +msgstr "ملاحظات" + +#: templates/complaints/inquiry_form.html:147 +msgid "Detailed description of the inquiry..." +msgstr "وصف تفصيلي للاستفسار..." + +msgid "Website" +msgstr "الموقع الإلكتروني" + +msgid "Walk-in" +msgstr "حضور شخصي" + +msgid "Select channel" +msgstr "اختر القناة" + +msgid "In Person" +msgstr "حضوريًا" + +msgid "Web Form" +msgstr "نموذج ويب" + +msgid "Mobile App" +msgstr "تطبيق الجوال" + +msgid "Fax" +msgstr "فاكس" + +msgid "Optional due date" +msgstr "تاريخ استحقاق اختياري" + +msgid "Leave empty for default based on priority" +msgstr "اتركه فارغًا للاعتماد على الإعداد الافتراضي حسب الأولوية" + +#: templates/complaints/inquiry_form.html:217 msgid "Help" msgstr "مساعدة" -#: templates/complaints/inquiry_form.html:124 +#: templates/complaints/inquiry_form.html:220 msgid "Use this form to create a new inquiry from a patient or visitor." msgstr "استخدم هذا النموذج لإنشاء استفسار جديد من مريض أو زائر." -#: templates/complaints/inquiry_form.html:125 +#: templates/complaints/inquiry_form.html:224 msgid "" "If the inquiry is from a registered patient, search and select them. " "Otherwise, provide contact information." @@ -2902,34 +3077,31 @@ msgstr "" "إذا كان الاستفسار من مريض مسجل، ابحث عنه واختره. وإلا، يرجى تقديم معلومات " "الاتصال." -#: templates/complaints/inquiry_form.html:126 +#: templates/complaints/inquiry_form.html:227 msgid "Fields marked with * are required." msgstr "الحقول التي تحتوي على * مطلوبة." -#: templates/complaints/inquiry_form.html:175 +#: templates/complaints/inquiry_form.html:290 msgid "No patients found" msgstr "لم يتم العثور على مرضى" -#: templates/complaints/inquiry_form.html:207 +#: templates/complaints/inquiry_form.html:323 msgid "Selected Patient" msgstr "المريض المحدد" -#: templates/complaints/inquiry_list.html:12 +#: templates/complaints/inquiry_list.html:5 +#: templates/complaints/inquiry_list.html:86 +msgid "Inquiries Console" +msgstr "لوحة الاستفسارات" + +#: templates/complaints/inquiry_list.html:88 msgid "Manage patient inquiries and requests" msgstr "إدارة استفسارات وطلبات المرضى" -#: templates/complaints/inquiry_list.html:66 +#: templates/complaints/inquiry_list.html:179 msgid "Subject, contact name..." msgstr "الموضوع، اسم جهة الاتصال..." -#: templates/complaints/inquiry_list.html:99 -msgid "Apply" -msgstr "تطبيق" - -#: templates/complaints/inquiry_list.html:109 -msgid "Inquiries List" -msgstr "قائمة الاستفسارات" - #: templates/config/dashboard.html:24 msgid "SLA Configurations" msgstr "إعدادات SLA" @@ -3054,13 +3226,6 @@ msgstr "رمز الحدث" msgid "Processed At" msgstr "تمت المعالجة في" -#: templates/feedback/feedback_delete_confirm.html:61 -#: templates/feedback/feedback_detail.html:154 -#: templates/feedback/feedback_form.html:65 -#: templates/layouts/partials/sidebar.html:67 -msgid "Feedback" -msgstr "ملاحظات" - #: templates/feedback/feedback_delete_confirm.html:62 msgid "Detail" msgstr "التفاصيل" @@ -3081,10 +3246,6 @@ msgstr "أضف ملاحظة (اختياري)..." msgid "Add Response" msgstr "إضافة رد" -#: templates/feedback/feedback_detail.html:501 -msgid "Enter your response..." -msgstr "أدخل ردك..." - #: templates/feedback/feedback_form.html:163 msgid "Feedback Type" msgstr "نوع الملاحظة" @@ -3607,10 +3768,6 @@ msgstr "تتبع" msgid "Status Progress" msgstr "تقدم الحالة" -#: templates/observations/public_track.html:309 -msgid "Assigned" -msgstr "تم التعيين" - #: templates/observations/public_track.html:310 msgid "Being reviewed by our team" msgstr "قيد المراجعة من قبل فريقنا" diff --git a/templates/complaints/inquiry_detail.html b/templates/complaints/inquiry_detail.html index 10e64df..0f66761 100644 --- a/templates/complaints/inquiry_detail.html +++ b/templates/complaints/inquiry_detail.html @@ -1,152 +1,571 @@ -{% extends 'layouts/base.html' %} +{% extends "layouts/base.html" %} {% load i18n %} +{% load static %} -{% block title %}{% trans "Inquiry Detail" %}{% endblock %} +{% block title %}Inquiry #{{ inquiry.id|slice:":8" }} - PX360{% endblock %} + +{% block extra_css %} + +{% endblock %} {% block content %}
- -
-
-

{% trans "Inquiry Detail" %}

-

{{ inquiry.subject }}

-
-
- - {% trans "Back to List" %} - + + + + +
+
+
+
+

{{ inquiry.subject }}

+ + {{ inquiry.get_status_display }} + + {% if inquiry.priority %} + + {{ inquiry.get_priority_display }} + + {% endif %} +
+

+ + {{ _("ID") }}: {{ inquiry.id|slice:":8" }} + {% if inquiry.patient %} + | + + {{ _("Patient") }}: {{ inquiry.patient.get_full_name }} ({{ _("MRN") }}: {{ inquiry.patient.mrn }}) + {% else %} + | + + {{ _("Contact") }}: {{ inquiry.contact_name|default:inquiry.contact_email }} + {% endif %} +

+

+ + {{ _("Hospital") }}: {{ inquiry.hospital.name_en }} + {% if inquiry.department %} + | + + {{ _("Department") }}: {{ inquiry.department.name_en }} + {% endif %} +

+
+
+ {% if inquiry.due_date %} +
+
+ + {{ _("Due Date")}} +
+

{{ inquiry.due_date|date:"M d, Y H:i" }}

+ {% if inquiry.is_overdue %} +
+ + {{ _("OVERDUE") }} +
+ {% else %} + {{ inquiry.due_date|timeuntil }} {{ _("remaining") }} + {% endif %} +
+ {% endif %} +
- -
-
-
{% trans "Inquiry Information" %}
-
-
-
-
- {% trans "Subject" %}:
- {{ inquiry.subject }} + + + + +
+ +
+
+
+
{% trans "Inquiry Details" %}
+ +
+
+
{{ _("Category") }}
+
+ {{ inquiry.get_category_display }} +
+
+
+
{{ _("Source") }}
+
+ {% if inquiry.source %} + {{ inquiry.get_source_display }} + {% else %} + {{ _("N/A")}} + {% endif %} +
+
+
+ +
+
+
{{ _("Channel") }}
+
+ {% if inquiry.channel %} + {{ inquiry.get_channel_display }} + {% else %} + {{ _("N/A")}} + {% endif %} +
+
+
+
{{ _("Assigned To")}}
+
+ {% if inquiry.assigned_to %} + {{ inquiry.assigned_to.get_full_name }} + {% else %} + {{ _("Unassigned") }} + {% endif %} +
+
+
+ +
+ +
+
{{ _("Message") }}
+
+

{{ inquiry.message|linebreaks }}

+
+
+ + {% if inquiry.response %} +
+
+
{{ _("Response") }}
+
+
+

{{ inquiry.response|linebreaks }}

+ + {{ _("Responded by")}} {{ inquiry.responded_by.get_full_name }} + {{ _("on") }} {{ inquiry.responded_at|date:"M d, Y H:i" }} + +
+
+
+ {% endif %} + +
+ +
+
+
{{ _("Created") }}
+
{{ inquiry.created_at|date:"M d, Y H:i" }}
+
+
+
{{ _("Last Updated")}}
+
{{ inquiry.updated_at|date:"M d, Y H:i" }}
+
+
-
- {% trans "Status" %}:
- {% if inquiry.status == 'open' %} - {% trans "Open" %} - {% elif inquiry.status == 'in_progress' %} - {% trans "In Progress" %} - {% elif inquiry.status == 'resolved' %} - {% trans "Resolved" %} +
+
+ + +
+
+
+
{% trans "Activity Timeline" %}
+ + {% if timeline %} +
+ {% for update in timeline %} +
+
+
+
+
+ {{ update.get_update_type_display }} + {% if update.created_by %} + + by {{ update.created_by.get_full_name }} + + {% endif %} +
+ + {{ update.created_at|date:"M d, Y H:i" }} + +
+

{{ update.message }}

+ {% if update.old_status and update.new_status %} +
+ + {{ update.old_status }} + + + + {{ update.new_status }} + +
+ {% endif %} +
+
+
+ {% endfor %} +
{% else %} - {{ inquiry.get_status_display }} +
+ +

{{ _("No timeline entries yet")}}

+
{% endif %}
- -
-
- {% trans "Category" %}:
- {{ inquiry.get_category_display }} -
-
- {% trans "Created" %}:
- {{ inquiry.created_at|date:"Y-m-d H:i" }} +
+ + +
+
+
+
{% trans "Attachments" %}
+ + {% if attachments %} +
+ {% for attachment in attachments %} +
+
+
+ + {{ attachment.filename }} +
+ + Uploaded by {{ attachment.uploaded_by.get_full_name }} + on {{ attachment.created_at|date:"M d, Y H:i" }} + ({{ attachment.file_size|filesizeformat }}) + + {% if attachment.description %} +
+ {{ attachment.description }} + {% endif %} +
+ + + +
+
+ {% endfor %} +
+ {% else %} +
+ +

{{ _("No attachments")}}

+
+ {% endif %}
- -
- {% trans "Message" %}:
-

{{ inquiry.message|linebreaks }}

-
- - {% if inquiry.response %} -
- {% trans "Response" %}:
-

{{ inquiry.response|linebreaks }}

- - {% trans "Responded by" %} {{ inquiry.responded_by.get_full_name }} - {% trans "on" %} {{ inquiry.responded_at|date:"Y-m-d H:i" }} - -
- {% endif %}
+
- - {% if can_edit and inquiry.status != 'resolved' and inquiry.status != 'closed' %} -
-
-
{% trans "Respond to Inquiry" %}
+ +
+ + {% if can_edit %} +
+
+
{% trans "Quick Actions" %}
-
+ + {% csrf_token %} -
- - + +
+ +
-
{% endif %} -
- - -
+ + +
+
+
{% trans "Add Note" %}
+
+
+
+ {% csrf_token %} + + +
+
+
+ + + {% if can_edit and inquiry.status != 'resolved' and inquiry.status != 'closed' %} +
+
+
{% trans "Respond to Inquiry" %}
+
+
+
+ {% csrf_token %} + + +
+
+
+ {% endif %} + -
+
-
{% trans "Contact Information" %}
+
{% trans "Contact Information" %}
{% if inquiry.patient %} -

{% trans "Patient" %}:
- {{ inquiry.patient.get_full_name }}
- MRN: {{ inquiry.patient.mrn }}

+
+
{{ _("Patient")}}
+
+ {{ inquiry.patient.get_full_name }} +
+ {{ _("MRN") }}: {{ inquiry.patient.mrn }} +
+
{% if inquiry.patient.phone %} -

{% trans "Phone" %}:
{{ inquiry.patient.phone }}

+
+
{{ _("Phone")}}
+
{{ inquiry.patient.phone }}
+
{% endif %} {% if inquiry.patient.email %} -

{% trans "Email" %}:
{{ inquiry.patient.email }}

+
+
{{ _("Email")}}
+
{{ inquiry.patient.email }}
+
{% endif %} {% else %} {% if inquiry.contact_name %} -

{% trans "Name" %}:
{{ inquiry.contact_name }}

+
+
{{ _("Name")}}
+
{{ inquiry.contact_name }}
+
{% endif %} {% if inquiry.contact_phone %} -

{% trans "Phone" %}:
{{ inquiry.contact_phone }}

+
+
{{ _("Phone")}}
+
{{ inquiry.contact_phone }}
+
{% endif %} {% if inquiry.contact_email %} -

{% trans "Email" %}:
{{ inquiry.contact_email }}

+
+
{{ _("Email")}}
+
{{ inquiry.contact_email }}
+
{% endif %} {% endif %}
- - -
+ + +
-
{% trans "Organization" %}
+
{% trans "Assignment Info" %}
-

{% trans "Hospital" %}:
{{ inquiry.hospital.name }}

+
+
{{ _("Assigned To")}}
+
+ {% if inquiry.assigned_to %} + {{ inquiry.assigned_to.get_full_name }} +
+ + {{ _("Assigned") }} {{ inquiry.assigned_at|date:"M d, Y H:i"|default:_("N/A") }} + + {% else %} + {{ _("Unassigned") }} + {% endif %} +
+
- {% if inquiry.department %} -

{% trans "Department" %}:
{{ inquiry.department.name }}

+ {% if inquiry.responded_by %} +
+
{{ _("Responded By")}}
+
+ {{ inquiry.responded_by.get_full_name }} +
+ + {{ inquiry.responded_at|date:"M d, Y H:i" }} + +
+
{% endif %} - {% if inquiry.assigned_to %} -

{% trans "Assigned To" %}:
{{ inquiry.assigned_to.get_full_name }}

+ {% if inquiry.resolved_by %} +
+
{{ _("Resolved By")}}
+
+ {{ inquiry.resolved_by.get_full_name }} +
+ + {{ inquiry.resolved_at|date:"M d, Y H:i" }} + +
+
{% endif %}
diff --git a/templates/complaints/inquiry_form.html b/templates/complaints/inquiry_form.html index 3dde76f..5ea747e 100644 --- a/templates/complaints/inquiry_form.html +++ b/templates/complaints/inquiry_form.html @@ -1,162 +1,277 @@ -{% extends 'layouts/base.html' %} +{% extends "layouts/base.html" %} {% load i18n %} +{% load static %} -{% block title %}{% trans "New Inquiry" %}{% endblock %} +{% block title %}{{ _("New Inquiry")}} - PX360{% endblock %} + +{% block extra_css %} + +{% endblock %} {% block content %}
-
-
-

{% trans "New Inquiry" %}

-

{% trans "Create a new patient inquiry" %}

-
- +
+ + {{ _("Back to Inquiries")}} + +

+ + {{ _("Create New Inquiry")}} +

+

{{ _("Create a new patient inquiry or request")}}

-
-
-
-
-
{% trans "Inquiry Information" %}
-
-
-
- {% csrf_token %} - - -
- - + {% for hospital in hospitals %} - + {% endfor %}
- - -
+ +
+
+
- -
- - - - - + +
+
+ {{ _("Contact Information")}} +
+ + +
+ + + + + +
+ +
+ {{ _("OR") }} +
+ + +
+ + +
+ +
+
+ +
- -
- - -
{% trans "Contact Information" %} ({% trans "if not a registered patient" %})
- -
- - +
+ +
+
+
-
-
- - -
-
- - -
-
+ +
+
+ {{ _("Inquiry Details")}} +
+ +
+ + +
-
+
+ + +
- -
{% trans "Inquiry Details" %}
+
+ + +
+
+
-
- - -
+ +
+ +
+
+ {{ _("Classification") }} +
+ +
+ + +
+ +
+ + +
-
- - -
+
+ + +
+
-
- - -
+ +
+ + + + {{ _("Leave empty for default based on priority")}} + +
-
- {% trans "Cancel" %} - -
- + +
+
+ {{ _("Help")}} +
+

+ {{ _("Use this form to create a new inquiry from a patient or visitor.")}} +

+
+

+ {{ _("If the inquiry is from a registered patient, search and select them. Otherwise, provide contact information.")}} +

+

+ {{ _("Fields marked with * are required.")}} +

+
+ + +
+ + + {{ _("Cancel") }} +
- -
-
-
-
{% trans "Help" %}
-
-
-

{% trans "Use this form to create a new inquiry from a patient or visitor." %}

-

{% trans "If the inquiry is from a registered patient, search and select them. Otherwise, provide contact information." %}

-

{% trans "Fields marked with * are required." %}

-
-
-
-
+
+{% endblock %} +{% block extra_js %} {% endblock %} diff --git a/templates/complaints/inquiry_list.html b/templates/complaints/inquiry_list.html index 744b0fb..08c9e37 100644 --- a/templates/complaints/inquiry_list.html +++ b/templates/complaints/inquiry_list.html @@ -1,19 +1,95 @@ {% extends 'layouts/base.html' %} {% load i18n %} +{% load static %} -{% block title %}{% trans "Inquiries" %}{% endblock %} +{% block title %}{{ _("Inquiries Console")}} - PX360{% endblock %} + +{% block extra_css %} + +{% endblock %} {% block content %}
-

{% trans "Inquiries" %}

-

{% trans "Manage patient inquiries and requests" %}

+

+ + {{ _("Inquiries Console")}} +

+

{{ _("Manage patient inquiries and requests")}}

@@ -21,176 +97,375 @@
-
+
-
{% trans "Total" %}
-
{{ stats.total }}
+
+
+
{% trans "Total Inquiries" %}
+

{{ stats.total }}

+
+
+ +
+
-
+
-
{% trans "Open" %}
-
{{ stats.open }}
+
+
+
{% trans "Open" %}
+

{{ stats.open }}

+
+
+ +
+
-
+
-
{% trans "In Progress" %}
-
{{ stats.in_progress }}
+
+
+
{% trans "In Progress" %}
+

{{ stats.in_progress }}

+
+
+ +
+
-
+
-
{% trans "Resolved" %}
-
{{ stats.resolved }}
+
+
+
{% trans "Resolved" %}
+

{{ stats.resolved }}

+
+
+ +
+
- -
-
-
{% trans "Filters" %}
+ +
+
+
+ {{ _("Filters") }} +
+
-
-
-
- - + +
+ +
+ +
+ + +
+ + +
+ + +
+ + +
+ + +
+ + +
+ + +
+ + +
+ + +
+ + +
+ + +
+ + +
+ + +
+
+ + +
-
- - -
-
- - -
-
- - -
-
- - {% trans "Clear" %} + +
+ + + {{ _("Clear") }} +
+ +
+
+ + Showing {{ page_obj.start_index }} to {{ page_obj.end_index }} of {{ page_obj.paginator.count }} inquiries + +
+
+ + +
+
+
-
-
{% trans "Inquiries List" %}
-
-
+
- - +
+ + + + + {% for inquiry in inquiries %} - - + + + - + + - - + + + + {% empty %} - + {% endfor %}
+ + {% trans "ID" %} {% trans "Subject" %} {% trans "Contact" %} {% trans "Category" %} {% trans "Status" %}{% trans "Priority" %} {% trans "Hospital" %}{% trans "Assigned To" %}{% trans "Due Date" %} {% trans "Created" %} {% trans "Actions" %}
{{ inquiry.id|truncatechars:8 }}
+ + - {{ inquiry.subject }} + #{{ inquiry.id|slice:":8" }} + +
+ {{ inquiry.subject|truncatewords:8 }} + {% if inquiry.is_overdue %} + {{ _("OVERDUE") }} + {% endif %} +
{% if inquiry.patient %} - {{ inquiry.patient.get_full_name }} + {{ inquiry.patient.get_full_name }}
+ {{ _("MRN") }}: {{ inquiry.patient.mrn }} {% else %} - {{ inquiry.contact_name|default:inquiry.contact_email }} + {{ inquiry.contact_name|default:inquiry.contact_email }}
+ {{ inquiry.contact_email }} {% endif %}
{{ inquiry.get_category_display }} - {% if inquiry.status == 'open' %} - {% trans "Open" %} - {% elif inquiry.status == 'in_progress' %} - {% trans "In Progress" %} - {% elif inquiry.status == 'resolved' %} - {% trans "Resolved" %} + {{ inquiry.get_category_display }} + + + {{ inquiry.get_status_display }} + + + {% if inquiry.priority %} + + {{ inquiry.get_priority_display }} + {% else %} - {{ inquiry.get_status_display }} + - {% endif %} {{ inquiry.hospital.name }}{{ inquiry.created_at|date:"Y-m-d H:i" }} - - - + {{ inquiry.hospital.name_en|truncatewords:3 }} + + {% if inquiry.assigned_to %} + {{ inquiry.assigned_to.get_full_name }} + {% else %} + {{ _("Unassigned") }} + {% endif %} + + {% if inquiry.due_date %} + + {{ inquiry.due_date|date:"M d, Y H:i" }} + + {% else %} + - + {% endif %} + + {{ inquiry.created_at|date:"M d, Y" }} + +
+ + + +
{% trans "No inquiries found" %} + +

{{ _("No inquiries found")}}

+
- - - {% if page_obj.has_other_pages %} - - {% endif %}
+ + + {% if page_obj.has_other_pages %} + + {% endif %}
{% endblock %} + +{% block extra_js %} + +{% endblock %}