IDE reformatting

This commit is contained in:
Son 2022-02-14 17:54:04 +01:00
parent 69c8980c18
commit 634ad4ac19

View file

@ -24,9 +24,9 @@
ticket_email: '{{ ticket_email }}'
},
methods: {
generateRandomAlias: async function(event){
let result = await fetch('/api/alias/random/new', { method: 'POST'})
if(result.ok){
generateRandomAlias: async function (event) {
let result = await fetch('/api/alias/random/new', {method: 'POST'})
if (result.ok) {
let data = await result.json();
this.ticket_email = data.alias;
}
@ -51,7 +51,8 @@
<div class="card-body">
<div class="card-title mb-3">Report a problem</div>
<div class="alert alert-info">
If an email cannot be delivered to your mailbox, please check <a href="/dashboard/notifications">your notifications</a> for error messages
If an email cannot be delivered to your mailbox, please check <a href="/dashboard/notifications">your
notifications</a> for error messages
</div>
<div class="alert alert-warning">
A support ticket will be created in Zendesk. Please do not include any sensitive information in the ticket.
@ -59,7 +60,8 @@
<form id="supportZendeskForm" method="post" enctype="multipart/form-data">
<div class="mt-4 mb-5">
<label for="issueDescription" class="form-label">What happened?</label>
<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>
<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>
</div>
<div class="mt-5 font-weight-bold">
Attach files to support request
@ -76,9 +78,12 @@
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">
<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">
<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">
<div class="input-group-append">
<button class="btn btn-outline-primary" type="button" @click="generateRandomAlias" id="button-addon2">Generate a random alias</button>
<button class="btn btn-outline-primary" type="button" @click="generateRandomAlias" id="button-addon2">
Generate a random alias
</button>
</div>
</div>
<div class="mt-5">