refinement of support form
This commit is contained in:
parent
e4b34ae20a
commit
5d109f843a
3 changed files with 12 additions and 8 deletions
|
@ -6,5 +6,7 @@ class SupportForm(forms.Form):
|
|||
message = forms.CharField(
|
||||
label=_("Message"),
|
||||
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."
|
||||
),
|
||||
)
|
||||
|
|
|
@ -12,13 +12,13 @@
|
|||
<div class="card">
|
||||
<div class="card-content">
|
||||
<div class="card-body">
|
||||
<h5>{% translate "Get Support" %}</h5>
|
||||
<h5>{% translate "Submit Your Inquiry" %}</h5>
|
||||
<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>
|
||||
<form method="post">
|
||||
{% csrf_token %}
|
||||
{% translate "Submit Support Request" as form_submit_label %}
|
||||
{% translate "Submit Request" as form_submit_label %}
|
||||
{% include "includes/form.html" with form=form %}
|
||||
</form>
|
||||
</div>
|
||||
|
@ -32,9 +32,8 @@
|
|||
</div>
|
||||
<div class="card-body">
|
||||
<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 class="small text-muted">{% translate "For urgent issues, please contact us directly." %}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
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
|
||||
|
||||
|
@ -48,8 +49,10 @@ class SupportView(OrganizationViewMixin, FormView):
|
|||
except Exception as e:
|
||||
messages.error(
|
||||
self.request,
|
||||
_(
|
||||
"There was an error submitting your support request. Please try again or contact us directly."
|
||||
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>.'
|
||||
)
|
||||
),
|
||||
)
|
||||
print(f"Error creating helpdesk ticket: {e}")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue