refinement of support form
All checks were successful
Build and Deploy Staging / build (push) Successful in 1m0s
Tests / test (push) Successful in 27s
Build and Deploy Staging / deploy (push) Successful in 8s

This commit is contained in:
Tobias Brunner 2025-07-04 10:19:59 +02:00
parent e4b34ae20a
commit 5d109f843a
No known key found for this signature in database
3 changed files with 12 additions and 8 deletions

View file

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

View file

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

View file

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