diff --git a/apps/accounts/ui_views.py b/apps/accounts/ui_views.py index db14917..0435041 100644 --- a/apps/accounts/ui_views.py +++ b/apps/accounts/ui_views.py @@ -27,7 +27,7 @@ def onboarding_welcome(request, token=None): """ # If user is already authenticated and not provisional, redirect to dashboard if request.user.is_authenticated and not request.user.is_provisional: - return redirect('/dashboard/') + return redirect('/') context = { 'page_title': 'Welcome to PX360', @@ -44,7 +44,7 @@ def onboarding_step_content(request, step): # Check if user is provisional if not user.is_provisional: - return redirect('/dashboard/') + return redirect('/') # Get content for user's role content_list = get_wizard_content_for_user(user) diff --git a/templates/accounts/onboarding/checklist_list.html b/templates/accounts/onboarding/checklist_list.html index 1bed803..001f8dd 100644 --- a/templates/accounts/onboarding/checklist_list.html +++ b/templates/accounts/onboarding/checklist_list.html @@ -11,7 +11,7 @@

- + {% trans "Checklist Items Management" %}

@@ -19,7 +19,7 @@

@@ -31,13 +31,13 @@
- + {% trans "Checklist Items" %}
@@ -90,7 +90,7 @@ {% if item.is_required %} - + {% trans "Yes" %} {% else %} @@ -101,12 +101,12 @@ {% if item.is_active %} - + {% trans "Active" %} {% else %} - + {% trans "Inactive" %} {% endif %} @@ -117,10 +117,10 @@
@@ -128,7 +128,7 @@ {% empty %} - +

{% trans "No checklist items found" %}

diff --git a/templates/accounts/onboarding/complete.html b/templates/accounts/onboarding/complete.html index 49c85c0..e9b03a7 100644 --- a/templates/accounts/onboarding/complete.html +++ b/templates/accounts/onboarding/complete.html @@ -10,7 +10,7 @@
- +

{% trans "Welcome Aboard!" %}

{% trans "Your account has been successfully activated" %} @@ -18,7 +18,7 @@

- + {% trans "You can now log in to PX360 with your new username and password." %}
@@ -26,7 +26,7 @@
- +
{% trans "Learning Complete" %}

{% trans "You've reviewed all system content" %} @@ -37,7 +37,7 @@

- +
{% trans "Acknowledged" %}

{% trans "All required items confirmed" %} @@ -48,7 +48,7 @@

- +
{% trans "Account Active" %}

{% trans "Your credentials are ready" %} @@ -60,7 +60,7 @@

- + {% trans "What's Next?" %}

@@ -76,7 +76,7 @@

diff --git a/templates/accounts/onboarding/content_list.html b/templates/accounts/onboarding/content_list.html index 7cde9be..fedab1b 100644 --- a/templates/accounts/onboarding/content_list.html +++ b/templates/accounts/onboarding/content_list.html @@ -11,7 +11,7 @@

- + {% trans "Acknowledgement Content Management" %}

@@ -19,7 +19,7 @@

@@ -31,13 +31,13 @@
- + {% trans "Content Sections" %}
@@ -61,9 +61,9 @@ {% if content.icon %} - + {% else %} - + {% endif %} @@ -85,12 +85,12 @@ {% if content.is_active %} - + {% trans "Active" %} {% else %} - + {% trans "Inactive" %} {% endif %} @@ -101,10 +101,10 @@
@@ -112,7 +112,7 @@ {% empty %} - +

{% trans "No content found" %}

diff --git a/templates/accounts/onboarding/progress_detail.html b/templates/accounts/onboarding/progress_detail.html index ecf2bdd..0c62e78 100644 --- a/templates/accounts/onboarding/progress_detail.html +++ b/templates/accounts/onboarding/progress_detail.html @@ -11,11 +11,11 @@
- + {% trans "Back to Provisional Users" %}

- + {% trans "Onboarding Progress" %}

{{ user.email }}

@@ -47,12 +47,12 @@
{% if progress_percentage == 100 %}
- + {% trans "All required acknowledgements completed!" %}
{% else %}
- + {{ remaining_count }} {% trans "items remaining" %}
{% endif %} @@ -94,7 +94,7 @@
- + {% trans "Acknowledgement Checklist" %}
@@ -115,9 +115,9 @@ {% if checklist_item.acknowledged_at %} - + {% else %} - + {% endif %} @@ -169,7 +169,7 @@
- + {% trans "Activity Log" %}
@@ -180,7 +180,7 @@
- +
@@ -193,7 +193,7 @@

{{ log.description }}

{% if log.ip_address %} - + {{ log.ip_address }} {% endif %} @@ -204,7 +204,7 @@
{% empty %}
- +

{% trans "No activity recorded yet" %}

diff --git a/templates/accounts/onboarding/provisional_list.html b/templates/accounts/onboarding/provisional_list.html index 7c88ddb..83e72ba 100644 --- a/templates/accounts/onboarding/provisional_list.html +++ b/templates/accounts/onboarding/provisional_list.html @@ -11,7 +11,7 @@

- + {% trans "Provisional Users Management" %}

@@ -19,7 +19,7 @@

@@ -33,7 +33,7 @@
- +
{% trans "Total Provisional" %}
@@ -48,7 +48,7 @@
- +
{% trans "Completed" %}
@@ -63,7 +63,7 @@
- +
{% trans "In Progress" %}
@@ -80,13 +80,13 @@
- + {% trans "Provisional Users List" %}
@@ -133,12 +133,12 @@ {% if user.acknowledgement_completed_at %} - + {% trans "Completed" %} {% else %} - + {% trans "In Progress" %} {% endif %} @@ -165,7 +165,7 @@ {% empty %} - +

{% trans "No provisional users found" %}

@@ -185,7 +185,7 @@ diff --git a/templates/accounts/onboarding/step_content.html b/templates/accounts/onboarding/step_content.html index 858a495..492903a 100644 --- a/templates/accounts/onboarding/step_content.html +++ b/templates/accounts/onboarding/step_content.html @@ -26,10 +26,10 @@
- + {% if request.user.language == 'ar' %}{{ content_item.title_ar }}{% else %}{{ content_item.title_en }}{% endif %} {% if content_item.id in completed_steps %} - + {% endif %}
{% endfor %} @@ -45,7 +45,7 @@
{% if current_content.icon %} - {% endif %}
@@ -72,7 +72,7 @@
{% if previous_step %} {% else %} @@ -81,11 +81,11 @@ {% if next_step %} {% else %} {% endif %}
diff --git a/templates/accounts/onboarding/welcome.html b/templates/accounts/onboarding/welcome.html index d1ca517..4ae04b5 100644 --- a/templates/accounts/onboarding/welcome.html +++ b/templates/accounts/onboarding/welcome.html @@ -11,7 +11,7 @@
- +

{% trans "Welcome to PX360!" %}

@@ -20,14 +20,14 @@

- + {% trans "Please complete the onboarding wizard to set up your account and learn about the system." %}
- +
{% trans "Learn" %}

{% trans "Understand the PX360 system" %} @@ -36,7 +36,7 @@

- +
{% trans "Acknowledge" %}

{% trans "Review and confirm key policies" %} @@ -45,7 +45,7 @@

- +
{% trans "Sign" %}

{% trans "Create your account credentials" %} @@ -56,7 +56,7 @@

diff --git a/templates/appreciation/appreciation_detail.html b/templates/appreciation/appreciation_detail.html index 0b38955..581b78d 100644 --- a/templates/appreciation/appreciation_detail.html +++ b/templates/appreciation/appreciation_detail.html @@ -45,12 +45,12 @@

{% trans "From" %}
{% if appreciation.is_anonymous %}

- + {% trans "Anonymous" %}

{% else %}

- + {{ appreciation.sender.get_full_name }}

{% endif %} @@ -58,7 +58,7 @@
{% trans "To" %}

- + {{ appreciation.recipient_name }}

@@ -69,14 +69,14 @@
{% trans "Sent At" %}

- + {{ appreciation.sent_at|date:"F j, Y, g:i A" }}

{% trans "Visibility" %}

- + {{ appreciation.get_visibility_display }}

@@ -84,7 +84,7 @@ {% if appreciation.acknowledged_at %}
- + {% trans "Acknowledged on" %} {{ appreciation.acknowledged_at|date:"F j, Y, g:i A" }}
{% endif %} @@ -95,13 +95,13 @@ {% csrf_token %} {% endif %} - + {% trans "Back to List" %}
@@ -113,7 +113,7 @@
- + {% trans "Related Appreciations" %}
@@ -126,7 +126,7 @@ {{ rel.sent_at|date:"M d, Y" }}

- + {{ rel.sender.get_full_name }}

@@ -147,17 +147,17 @@
  • - + {% trans "Hospital:" %} {{ appreciation.hospital.name }}
  • {% if appreciation.department %}
  • - + {% trans "Department:" %} {{ appreciation.department.name }}
  • {% endif %}
  • - + {% trans "ID:" %} #{{ appreciation.id }}
@@ -172,15 +172,15 @@
diff --git a/templates/appreciation/appreciation_list.html b/templates/appreciation/appreciation_list.html index e677497..d522a22 100644 --- a/templates/appreciation/appreciation_list.html +++ b/templates/appreciation/appreciation_list.html @@ -13,7 +13,7 @@

- + {% trans "Appreciation" %}

@@ -21,7 +21,7 @@

- + {% trans "Send Appreciation" %}
@@ -37,7 +37,7 @@
- +
{% trans "Received" %}
@@ -52,7 +52,7 @@
- +
{% trans "Sent" %}
@@ -67,7 +67,7 @@
- +
{% trans "Badges Earned" %}
@@ -82,12 +82,12 @@
- +
{% trans "Leaderboard" %}
- + {% trans "View" %}
@@ -105,7 +105,7 @@
- +
{% trans "Leaderboard" %}
@@ -122,7 +122,7 @@
- +
{% trans "My Badges" %}
@@ -139,7 +139,7 @@
- +
{% trans "Send Appreciation" %}
@@ -195,13 +195,13 @@
@@ -236,11 +236,11 @@

{{ appreciation.message_en|truncatewords:15 }}

- + {{ appreciation.sent_at|date:"F j, Y, g:i A" }} {% if appreciation.department %} - + {{ appreciation.department.name }} {% endif %} @@ -302,7 +302,7 @@ {% endif %} {% else %}
- +

{% if current_tab == 'received' %} {% trans "No appreciations received yet" %} @@ -314,7 +314,7 @@ {% trans "Start sharing appreciation with your colleagues!" %}

- + {% trans "Send Your First Appreciation" %}

diff --git a/templates/appreciation/appreciation_send_form.html b/templates/appreciation/appreciation_send_form.html index df6dd88..b774543 100644 --- a/templates/appreciation/appreciation_send_form.html +++ b/templates/appreciation/appreciation_send_form.html @@ -19,7 +19,7 @@

- + {% trans "Send Appreciation" %}

@@ -145,11 +145,11 @@
- + {% trans "Cancel" %}
@@ -164,30 +164,30 @@
- + {% trans "Tips for Writing Appreciation" %}
  • - + {% trans "Be specific about what you appreciate" %}
  • - + {% trans "Use the person's name when addressing them" %}
  • - + {% trans "Mention the impact of their actions" %}
  • - + {% trans "Be sincere and authentic" %}
  • - + {% trans "Keep it positive and uplifting" %}
@@ -198,7 +198,7 @@
- + {% trans "Visibility Levels" %}
diff --git a/templates/appreciation/badge_form.html b/templates/appreciation/badge_form.html index 5228254..0ccea73 100644 --- a/templates/appreciation/badge_form.html +++ b/templates/appreciation/badge_form.html @@ -20,7 +20,7 @@

- + {% if form.instance.pk %}{% trans "Edit Badge" %}{% else %}{% trans "Add Badge" %}{% endif %}

@@ -146,11 +146,11 @@
- + {% trans "Cancel" %}
@@ -168,7 +168,7 @@
- +

{{ form.name_en.value|default:'Badge Name' }}

@@ -183,7 +183,7 @@

- + {% trans "About Badge Criteria" %}
@@ -225,7 +225,7 @@ document.addEventListener('DOMContentLoaded', function() { // Update icon preview iconInput.addEventListener('input', function() { - const iconClass = this.value.trim() || 'fa-trophy'; + const iconClass = this.value.trim() || 'bi-trophy'; iconPreview.className = iconClass + ' fa-4x text-warning'; }); diff --git a/templates/appreciation/badge_list.html b/templates/appreciation/badge_list.html index 67e1ef4..4115885 100644 --- a/templates/appreciation/badge_list.html +++ b/templates/appreciation/badge_list.html @@ -16,11 +16,11 @@

- + {% trans "Appreciation Badges" %}

- + {% trans "Add Badge" %}
@@ -66,10 +66,10 @@
@@ -122,11 +122,11 @@ {% endif %} {% else %}
- +

{% trans "No badges found" %}

{% trans "Create badges to motivate and recognize achievements" %}

- + {% trans "Add Badge" %}
diff --git a/templates/appreciation/category_form.html b/templates/appreciation/category_form.html index 7eaeafb..7dff445 100644 --- a/templates/appreciation/category_form.html +++ b/templates/appreciation/category_form.html @@ -20,7 +20,7 @@

- + {% if form.instance.pk %}{% trans "Edit Category" %}{% else %}{% trans "Add Category" %}{% endif %}

@@ -129,11 +129,11 @@
- + {% trans "Cancel" %}
@@ -150,7 +150,7 @@
{% trans "Icon Preview" %}
- +

{{ form.name_en.value|default:'Category Name' }}

@@ -159,26 +159,26 @@
- + {% trans "Tips" %}
  • - + {% trans "Use descriptive names for categories" %}
  • - + {% trans "Choose appropriate icons for each category" %}
  • - + {% trans "Colors help users quickly identify categories" %}
  • - + {% trans "Deactivate unused categories instead of deleting" %}
@@ -200,7 +200,7 @@ document.addEventListener('DOMContentLoaded', function() { // Update icon preview iconInput.addEventListener('input', function() { - const iconClass = this.value.trim() || 'fa-heart'; + const iconClass = this.value.trim() || 'bi-heart'; iconPreview.className = iconClass + ' fa-4x text-primary'; }); diff --git a/templates/appreciation/category_list.html b/templates/appreciation/category_list.html index 66381eb..94c5c18 100644 --- a/templates/appreciation/category_list.html +++ b/templates/appreciation/category_list.html @@ -16,11 +16,11 @@

- + {% trans "Appreciation Categories" %}

- + {% trans "Add Category" %}
@@ -57,10 +57,10 @@ {{ category.appreciation_count }} - + - + @@ -70,11 +70,11 @@
{% else %}
- +

{% trans "No categories found" %}

{% trans "Create categories to organize appreciations" %}

- + {% trans "Add Category" %}
diff --git a/templates/appreciation/leaderboard.html b/templates/appreciation/leaderboard.html index c5421ec..dcc28ad 100644 --- a/templates/appreciation/leaderboard.html +++ b/templates/appreciation/leaderboard.html @@ -16,12 +16,12 @@

- + {% trans "Appreciation Leaderboard" %}

@@ -71,11 +71,11 @@
- + {% trans "Reset" %}
@@ -106,7 +106,7 @@ {% if forloop.counter <= 3 %} - {% if forloop.counter == 1 %}{% endif %} + {% if forloop.counter == 1 %}{% endif %} #{{ forloop.counter }} {% else %} @@ -114,7 +114,7 @@ {% endif %} - + {{ item.get_recipient_name }} {{ item.hospital.name }} @@ -190,7 +190,7 @@ {% endif %} {% else %}
- +

{% trans "No appreciations found for this period" %}

{% trans "Try changing the filters or select a different time period" %}

@@ -203,7 +203,7 @@
- +
{% trans "Send Appreciation" %}

{% trans "Share your appreciation with colleagues" %}

@@ -215,7 +215,7 @@
- +
{% trans "View Badges" %}

{% trans "See your earned badges" %}

@@ -227,7 +227,7 @@
- +
{% trans "All Appreciations" %}

{% trans "View your appreciations" %}

diff --git a/templates/appreciation/my_badges.html b/templates/appreciation/my_badges.html index 92976e7..feb8399 100644 --- a/templates/appreciation/my_badges.html +++ b/templates/appreciation/my_badges.html @@ -16,12 +16,12 @@

- + {% trans "My Badges" %}

@@ -32,7 +32,7 @@
- +

{{ total_received }}

{% trans "Total Appreciations Received" %}

@@ -41,7 +41,7 @@
- +

{{ badges|length }}

{% trans "Badges Earned" %}

@@ -50,7 +50,7 @@
- +

{{ badge_progress|length }}

{% trans "Available Badges" %}

@@ -64,7 +64,7 @@
- + {% trans "Earned Badges" %}
@@ -83,7 +83,7 @@ {{ user_badge.badge.description_en|truncatewords:10 }}

- + {% trans "Earned on" %} {{ user_badge.earned_at|date:"F j, Y" }}
@@ -136,7 +136,7 @@ {% endif %} {% else %}
- +

{% trans "No badges earned yet" %}

{% trans "Start receiving appreciations to earn badges!" %} @@ -152,7 +152,7 @@

- + {% trans "Badge Progress" %}
@@ -189,7 +189,7 @@
{% empty %}
- +

{% trans "No badges available" %}

{% endfor %} @@ -200,30 +200,30 @@
- + {% trans "How to Earn Badges" %}
  • - + {% trans "Receive appreciations from colleagues" %}
  • - + {% trans "Consistently provide excellent service" %}
  • - + {% trans "Be a team player" %}
  • - + {% trans "Show leadership qualities" %}
  • - + {% trans "Demonstrate innovation" %}
diff --git a/templates/complaints/analytics.html b/templates/complaints/analytics.html index d099649..d2e04b7 100644 --- a/templates/complaints/analytics.html +++ b/templates/complaints/analytics.html @@ -34,11 +34,11 @@
{{ dashboard_summary.status_counts.total }}
{% if dashboard_summary.trend.percentage_change > 0 %} - +{{ dashboard_summary.trend.percentage_change }}% + +{{ dashboard_summary.trend.percentage_change }}% {% elif dashboard_summary.trend.percentage_change < 0 %} - {{ dashboard_summary.trend.percentage_change }}% + {{ dashboard_summary.trend.percentage_change }}% {% else %} - 0% + 0% {% endif %} {% trans "vs last period" %} @@ -199,7 +199,7 @@ {{ complaint.assigned_to.get_full_name|default:"Unassigned" }} - +