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(
|
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."
|
||||||
|
),
|
||||||
)
|
)
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -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}")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue