diff --git a/apps/organizations/models.py b/apps/organizations/models.py index 607760c..d4b2d8a 100644 --- a/apps/organizations/models.py +++ b/apps/organizations/models.py @@ -84,7 +84,7 @@ class Department(UUIDModel, TimeStampedModel): def __str__(self): return f"{self.hospital.name} - {self.name}" - +# TODO Add Section class Physician(UUIDModel, TimeStampedModel): """Physician/Doctor model""" # Link to user account (optional - some physicians may not have system access) diff --git a/apps/social/ui_views.py b/apps/social/ui_views.py index 7d15b93..b7a8ef9 100644 --- a/apps/social/ui_views.py +++ b/apps/social/ui_views.py @@ -93,12 +93,7 @@ def mention_list(request): @login_required def mention_detail(request, pk): """Social media mention detail view""" - mention = get_object_or_404( - SocialMention.objects.select_related( - 'hospital', 'department', 'px_action', 'responded_by' - ), - pk=pk - ) + mention = get_object_or_404(SocialMention.objects.select_related('hospital', 'department', 'px_action', 'responded_by'),pk=pk) context = { 'mention': mention, diff --git a/dump.rdb b/dump.rdb index fb5ebc7..44dd5cf 100644 Binary files a/dump.rdb and b/dump.rdb differ diff --git a/templates/layouts/base.html b/templates/layouts/base.html index ec8341b..4b6dfbe 100644 --- a/templates/layouts/base.html +++ b/templates/layouts/base.html @@ -111,47 +111,95 @@ box-shadow: 0 1px 3px rgba(0,0,0,0.1); transition: transform 0.2s, box-shadow 0.2s; } - + .stat-card:hover { transform: translateY(-2px); box-shadow: 0 4px 6px rgba(0,0,0,0.1); } - + .stat-card .card-body { padding: 1.5rem; } - + .stat-value { font-size: 2rem; font-weight: 700; margin: 0.5rem 0; } - + .stat-label { color: #6b7280; font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.05em; } - + /* Tables */ .table-card { background: white; border-radius: 0.5rem; box-shadow: 0 1px 3px rgba(0,0,0,0.1); } - + .table-card .card-header { background: white; border-bottom: 1px solid #e5e7eb; padding: 1rem 1.5rem; } - + /* Badges */ .badge { padding: 0.35em 0.65em; font-weight: 600; } + + /* Soft Buttons (Velzon-inspired) */ + .btn-soft-primary { + color: #0d6efd; + background-color: rgba(13, 110, 253, 0.1); + border-color: transparent; + } + + .btn-soft-primary:hover { + color: #fff; + background-color: #0d6efd; + border-color: #0d6efd; + } + + /* Card Enhancements */ + .card { + margin-bottom: 1.5rem; + } + + .card-title { + font-size: 1rem; + font-weight: 600; + color: #495057; + } + + .shadow-sm { + box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important; + } + + .border-0 { + border: 0 !important; + } + + .bg-transparent { + background-color: transparent !important; + } + + /* Page Title Box */ + .page-title-box { + padding-bottom: 1rem; + } + + .page-title-box h4 { + font-size: 1.25rem; + font-weight: 600; + color: #495057; + margin: 0; + } /* SLA Indicators */ .sla-overdue { color: #dc2626; } diff --git a/templates/surveys/instance_detail.html b/templates/surveys/instance_detail.html index 2fd043d..78f3087 100644 --- a/templates/surveys/instance_detail.html +++ b/templates/surveys/instance_detail.html @@ -8,7 +8,7 @@
- Back to Surveys + {{ _("Back to Surveys")}}
@@ -41,7 +41,7 @@ {% empty %}
-

No responses yet

+

{{ _("No responses yet")}}

{% endfor %}
@@ -71,26 +71,26 @@ {% if survey.total_score %}
- Total Score:
+ {{ _("Total Score")}}:

{{ survey.total_score|floatformat:1 }}/5.0

{% if survey.is_negative %} - Negative Feedback + {{ _("Negative Feedback")}} {% endif %}
{% endif %} {% if survey.sent_at %}
- Sent:
+ {{ _("Sent") }}:
{{ survey.sent_at|date:"M d, Y H:i" }}
{% endif %} {% if survey.completed_at %}
- Completed:
+ {{ _("Completed") }}:
{{ survey.completed_at|date:"M d, Y H:i" }}
{% endif %} @@ -103,11 +103,15 @@
- Name:
+ {{ _("Name") }}:
{{ survey.patient.get_full_name }}
+
+ {{ _("Phone") }}:
+ {{ survey.patient.phone }} +
- MRN:
+ {{ _("MRN") }}:
{{ survey.patient.mrn }}
@@ -145,17 +149,17 @@ {% else %}
- Patient Contacted
+ {{ _("Patient Contacted")}}
By {{ survey.patient_contacted_by.get_full_name }} on {{ survey.patient_contacted_at|date:"M d, Y H:i" }}
- Contact Notes: + {{ _("Contact Notes")}}:

{{ survey.contact_notes }}

- Status:
+ {{ _("Status") }}:
{% if survey.issue_resolved %} Issue Resolved {% else %}