From 9a3de0db530d3c9eabf50da6b3da7f9ea719c78f Mon Sep 17 00:00:00 2001 From: Faheedkhan Date: Thu, 4 Sep 2025 19:23:57 +0300 Subject: [PATCH] modal for refund policy in signup --- inventory/urls.py | 2 + inventory/views.py | 8 +- templates/account/signup-wizard.html | 57 +++++++++++- templates/crm/notifications_history.html | 18 ++-- templates/haikal_policy/refund_policy.html | 86 +++++++++++++++++++ .../journal_entry/journal_entry_txs.html | 2 +- 6 files changed, 164 insertions(+), 9 deletions(-) create mode 100644 templates/haikal_policy/refund_policy.html diff --git a/inventory/urls.py b/inventory/urls.py index 99f49ec0..3e2f6ee8 100644 --- a/inventory/urls.py +++ b/inventory/urls.py @@ -11,9 +11,11 @@ urlpatterns = [ path("", views.WelcomeView, name="welcome"), path("signup/", views.dealer_signup, name="account_signup"), path("", views.HomeView, name="home"), + path('refund-policy/',views.refund_policy,name='refund_policy'), path("/", views.HomeView, name="home"), # Tasks path("legal/", views.terms_and_privacy, name="terms_and_privacy"), + # path('tasks//detail/', views.task_detail, name='task_detail'), # Dashboards # path("user//settings/", views.UserSettingsView.as_view(), name="user_settings"), diff --git a/inventory/views.py b/inventory/views.py index 36f4920d..679d47ca 100644 --- a/inventory/views.py +++ b/inventory/views.py @@ -359,7 +359,7 @@ def dealer_signup(request): return JsonResponse({"error": str(e)}, status=400) return render( request, - "account/signup-wizard.html", + "account/signup-wizar.html", ) # class HomeView(LoginRequiredMixin, TemplateView): @@ -11666,3 +11666,9 @@ class ChartOfAccountModelUpdateView(ChartOfAccountModelUpdateViewBase): permission_required = 'django_ledger.change_chartofaccountmodel' class CharOfAccountModelActionView(CharOfAccountModelActionViewBase): permission_required = 'django_ledger.change_chartofaccountmodel' + + + +#for refund policy +def refund_policy(request): + return render(request,'haikal_policy/refund_policy.html') diff --git a/templates/account/signup-wizard.html b/templates/account/signup-wizard.html index 7c72c260..19fdf246 100644 --- a/templates/account/signup-wizard.html +++ b/templates/account/signup-wizard.html @@ -280,8 +280,28 @@ - +
+ +
+ + + + {% include 'footer.html' %} {% endblock content %} @@ -291,6 +311,7 @@ {% endblock customJS %} diff --git a/templates/crm/notifications_history.html b/templates/crm/notifications_history.html index b629c36a..62ccaa1d 100644 --- a/templates/crm/notifications_history.html +++ b/templates/crm/notifications_history.html @@ -63,11 +63,17 @@ body { {% for notification in notifications %}
{% if not notification.is_read %} - - {% endif %} -
+ +
+ +
+ + {% else %} +
-
+
+ {% endif %} +
{{ notification.message|safe }} @@ -96,11 +102,11 @@ body {
-
+

{% trans "Status" %}

  • - + {% trans "Read:" %}{{read_count}}
  • diff --git a/templates/haikal_policy/refund_policy.html b/templates/haikal_policy/refund_policy.html new file mode 100644 index 00000000..939cfeb2 --- /dev/null +++ b/templates/haikal_policy/refund_policy.html @@ -0,0 +1,86 @@ +{% load i18n %} + + + + + + {% trans "Haikal Refund Policy" %} + + + + + + + +
    +
    +

    {% trans "Haikal Refund Policy" %}

    +

    + {% trans "This policy for Haikal DMS by Tenhal outlines refund conditions." %} +

    +
    + +
    +

    {% trans "1. 14-Day Guarantee" %}

    +

    + {% trans "Get a full refund of your initial subscription fee within 14 days of purchase if you're not satisfied. This is for new customers only and excludes non-refundable fees." %} +

    +
    + +
    +

    {% trans "2. Refund Eligibility" %}

    +

    {% trans "Refunds are given for:" %}

    +
      +
    • + {% trans "Service Failure:" %} {% trans "If the service consistently fails and our support team can't fix it." %} +
    • +
    • + {% trans "Billing Errors:" %} {% trans "For incorrect or duplicate charges." %} +
    • +
    +
    + +
    +

    {% trans "3. Non-Refundable Situations" %}

    +

    {% trans "We don't offer refunds for:" %}

    +
      +
    • + {% trans "Change of Mind:" %} {% trans "If you simply decide not to use the service." %} +
    • +
    • + {% trans "Recurring Payments:" %} {% trans "Payments after the initial 14-day period." %} +
    • +
    • + {% trans "Partial Use:" %} {% trans "We don't provide prorated refunds for partial months or years." %} +
    • +
    • + {% trans "One-Time Fees:" %} {% trans "Setup and professional services fees are non-refundable." %} +
    • +
    +
    + +
    +

    {% trans "4. How to Request" %}

    +

    + {% trans "Email our Billing and Support team at" %} haikal@support.sa {% trans "with your company name, account ID, invoice number, and a detailed reason for the refund." %} +

    +
    + +
    +

    {% trans "5. Processing" %}

    +

    + {% trans "Approved refunds are processed in 10-14 business days to your original payment method." %} +

    +
    + +
    +

    {% trans "6. Account Termination" %}

    +

    + {% trans "Once a refund is issued, your access is revoked. You are responsible for exporting your data before termination." %} +

    +
    +
    + + + + \ No newline at end of file diff --git a/templates/ledger/journal_entry/journal_entry_txs.html b/templates/ledger/journal_entry/journal_entry_txs.html index 14c71418..5d56ecff 100644 --- a/templates/ledger/journal_entry/journal_entry_txs.html +++ b/templates/ledger/journal_entry/journal_entry_txs.html @@ -3,7 +3,7 @@ {% load static %} {% load crispy_forms_tags %} {% block title %} - {% trans "Transactions" %} + {% trans "Jorunal Entry Transactions" %} {% endblock %} {% block content %}