04/08 fixed survey email issue
This commit is contained in:
@@ -244,6 +244,55 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Satisfaction Survey -->
|
||||
<div class="card mb-4" style="max-width:680px;">
|
||||
<div class="card-header" style="padding:16px 20px;border-bottom:1px solid var(--border);">
|
||||
<h5 class="mb-0" style="font-size:15px;font-weight:600;">
|
||||
<i class="bi bi-star-half me-2"></i>Satisfaction Survey
|
||||
</h5>
|
||||
</div>
|
||||
<div class="card-body" style="padding:20px;">
|
||||
<p style="font-size:13px;color:var(--muted);margin-bottom:20px;">
|
||||
When enabled, employees automatically receive a one-click satisfaction survey email
|
||||
whenever their ticket is marked as Resolved. Responses appear in the
|
||||
<a href="{{ url_for('admin.satisfaction_report') }}" style="color:var(--accent3);">Satisfaction Report</a>.
|
||||
</p>
|
||||
<form method="POST" action="{{ url_for('admin.settings') }}">
|
||||
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}">
|
||||
<input type="hidden" name="form_type" value="survey">
|
||||
<div class="d-flex align-items-center justify-content-between p-3"
|
||||
style="border:1px solid var(--border);border-radius:10px;background:var(--surface);">
|
||||
<div>
|
||||
<div style="font-weight:600;font-size:14px;">
|
||||
<i class="bi bi-envelope-heart me-2"></i>Send Survey on Resolve
|
||||
</div>
|
||||
<div style="font-size:12px;color:var(--muted);margin-top:3px;">
|
||||
Automatically email employees a 1–5 star rating prompt when their ticket is resolved.
|
||||
</div>
|
||||
</div>
|
||||
<div class="d-flex align-items-center gap-3" style="flex-shrink:0;margin-left:16px;">
|
||||
<span class="badge {% if survey_enabled %}bg-success{% else %}bg-secondary{% endif %}"
|
||||
style="font-size:11px;padding:5px 10px;">
|
||||
{{ 'Enabled' if survey_enabled else 'Disabled' }}
|
||||
</span>
|
||||
{% if survey_enabled %}
|
||||
<button type="submit" name="survey_enabled" value="0"
|
||||
class="btn btn-sm btn-outline-danger"
|
||||
onclick="return confirm('Disable satisfaction surveys? No survey emails will be sent when tickets are resolved.')">
|
||||
<i class="bi bi-toggle-on me-1"></i>Disable
|
||||
</button>
|
||||
{% else %}
|
||||
<button type="submit" name="survey_enabled" value="1"
|
||||
class="btn btn-sm btn-outline-success">
|
||||
<i class="bi bi-toggle-off me-1"></i>Enable
|
||||
</button>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Registration -->
|
||||
<div class="card" style="max-width:680px;">
|
||||
<div class="card-header" style="padding:16px 20px;border-bottom:1px solid var(--border);">
|
||||
|
||||
Reference in New Issue
Block a user