Compare commits

..

No commits in common. "5d109f843a70626bf0cc176e741fd82a2d90d536" and "e2a35c97e4a5d2bb0f226bd8ad8d2a792ebd3ec9" have entirely different histories.

4 changed files with 8 additions and 12 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 78 KiB

View file

@ -6,7 +6,5 @@ class SupportForm(forms.Form):
message = forms.CharField(
label=_("Message"),
widget=forms.Textarea(attrs={"rows": 8}),
help_text=_(
"Please provide a detailed description of your inquiry to enable us to assist you effectively."
),
help_text=_("Please describe your issue or question in detail."),
)

View file

@ -12,13 +12,13 @@
<div class="card">
<div class="card-content">
<div class="card-body">
<h5>{% translate "Submit Your Inquiry" %}</h5>
<h5>{% translate "Get Support" %}</h5>
<p class="text-muted">
{% translate "Need assistance or have feedback to share? Please submit your inquiry, issue, or feedback below, and our team will respond promptly." %}
{% translate "Need help? Submit your question or issue below and our support team will get back to you." %}
</p>
<form method="post">
{% csrf_token %}
{% translate "Submit Request" as form_submit_label %}
{% translate "Submit Support Request" as form_submit_label %}
{% include "includes/form.html" with form=form %}
</form>
</div>
@ -32,8 +32,9 @@
</div>
<div class="card-body">
<p class="small text-muted">
{% translate "Support requests are reviewed by our team and responses will be sent via email." %}
{% translate "When you submit a support request, it will be sent to our support team who will respond via email." %}
</p>
<p class="small text-muted">{% translate "For urgent issues, please contact us directly." %}</p>
</div>
</div>
</div>

View file

@ -1,7 +1,6 @@
from django.conf import settings
from django.contrib import messages
from django.shortcuts import redirect
from django.utils.safestring import mark_safe
from django.utils.translation import gettext_lazy as _
from django.views.generic import FormView
@ -49,10 +48,8 @@ class SupportView(OrganizationViewMixin, FormView):
except Exception as e:
messages.error(
self.request,
mark_safe(
_(
'There was an error submitting your support request. Please try again or contact us directly at <a href="mailto:servala-support@vshn.ch">servala-support@vshn.ch</a>.'
)
"There was an error submitting your support request. Please try again or contact us directly."
),
)
print(f"Error creating helpdesk ticket: {e}")