2022-06-29 11:28:26 +02:00
{% extends "default.html" %}
2022-02-08 22:04:25 +01:00
2022-02-09 16:20:55 +01:00
{% set active_page = 'dashboard' %}
2022-06-29 11:28:26 +02:00
{% block title %}Support{% endblock %}
2022-02-08 22:04:25 +01:00
{% block default_content %}
2022-02-14 17:54:04 +01:00
< div class = "col pb-3" >
< div class = "card" >
< div class = "card-body" >
< div class = "card-title mb-3" > Report a problem< / div >
< div class = "alert alert-info" >
2022-06-29 11:28:26 +02:00
If an email cannot be delivered to your mailbox, please check
< a href = "{{ url_for('dashboard.notifications_route') }}" >
your
notifications
< / a >
for error messages.
< br / >
2022-05-30 09:32:10 +02:00
For generic questions, i.e. not related to your account, we recommend to post the question on
2022-06-29 11:28:26 +02:00
our
< a href = "https://www.reddit.com/r/Simplelogin/" > Reddit< / a >
where our community can help answer the question
2022-05-30 09:32:10 +02:00
and other people with the same question can find the answer there.
2022-02-08 22:04:25 +01:00
< / div >
2022-02-14 17:54:04 +01:00
< div class = "alert alert-warning" >
A support ticket will be created in Zendesk. Please do not include any sensitive information in the ticket.
< / div >
< form id = "supportZendeskForm" method = "post" enctype = "multipart/form-data" >
< div class = "mt-4 mb-5" >
2022-02-14 18:02:09 +01:00
< label for = "issueDescription" class = "form-label font-weight-bold" > What happened?< / label >
2022-06-29 11:28:26 +02:00
< textarea class = "form-control" required name = "ticket_content" id = "issueDescription" rows = "3" placeholder = "Please provide as much information as possible. For example which alias(es), mailbox(es) ar affected, if this is a persistent issue..." > {{- ticket_content or '' -}}< / textarea >
2022-02-14 17:54:04 +01:00
< / div >
2022-06-29 11:28:26 +02:00
< div class = "mt-5 font-weight-bold" > Attach files to support request< / div >
2022-02-14 18:02:09 +01:00
< div class = "text-muted" > Only images, text and emails are accepted< / div >
< div class = "custom-file" >
2022-06-29 11:28:26 +02:00
< input type = "file"
class="custom-file-input"
name="ticket_files"
id="ticketFileGroup"
multiple="multiple">
2022-02-14 17:54:04 +01:00
< label class = "custom-file-label" for = "ticketFileGroup" > Choose file< / label >
< / div >
2022-06-29 11:28:26 +02:00
< div class = "mt-5 font-weight-bold" > Where can we reach you?< / div >
2022-02-14 18:02:09 +01:00
< div class = "text-muted" >
2022-02-14 17:54:04 +01:00
Conversations related to this ticket will be sent to this address. Feel free to use an alias here.
< / div >
< div class = "input-group mb-3" id = "alias-group" >
2022-06-29 11:28:26 +02:00
< input type = "text"
required
class="form-control"
placeholder="Email"
name="ticket_email"
v-model='ticket_email'
aria-label="Email to send responses to"
aria-describedby="button-addon2">
2022-02-14 17:54:04 +01:00
< div class = "input-group-append" >
2022-06-29 11:28:26 +02:00
< button class = "btn btn-outline-primary"
type="button"
@click="generateRandomAlias"
id="button-addon2">
2022-02-14 17:54:04 +01:00
Generate a random alias
< / button >
< / div >
< / div >
< div class = "mt-5" >
< button class = "btn btn-primary" > Create support ticket< / button >
< / div >
< / form >
< / div >
2022-02-08 22:04:25 +01:00
< / div >
2022-02-14 17:54:04 +01:00
< / div >
2022-02-08 22:04:25 +01:00
{% endblock %}
2022-02-14 17:54:28 +01:00
{% block script %}
2022-06-29 11:28:26 +02:00
2022-02-14 17:54:28 +01:00
< script >
new Vue({
el: '#alias-group',
data: {
ticket_email: '{{ ticket_email }}'
},
methods: {
generateRandomAlias: async function (event) {
2022-02-15 18:50:09 +01:00
let result = await fetch('/api/alias/random/new', {method: 'POST'});
2022-02-14 17:54:28 +01:00
if (result.ok) {
let data = await result.json();
this.ticket_email = data.alias;
2022-02-15 18:50:09 +01:00
} else if (result.status === 429 ){
toastr.warning("You've created too many aliases recently. Wait a bit before creating more");
} else {
toastr.warning("You can't create more aliases");
2022-02-14 17:54:28 +01:00
}
}
}
});
2022-02-08 22:04:25 +01:00
2022-02-14 17:54:28 +01:00
$('.custom-file input').change(function (e) {
let files = [];
for (let i = 0; i < $(this)[0].files.length; i++) {
files.push($(this)[0].files[i].name);
}
$(this).next('.custom-file-label').html(files.join(', '));
});
2022-07-04 16:01:04 +02:00
< / script >
2022-02-14 17:54:28 +01:00
{% endblock %}