Support 8

Standards löschbar
This commit is contained in:
Holger Trampe 2019-12-10 22:14:31 +01:00
parent 5e167c5526
commit f666cfcb15
3 changed files with 17 additions and 5 deletions

View File

@ -70,7 +70,17 @@
<td>{{standard.last_modified_by.first_name}} {{standard.last_modified_by.last_name}}</td>
<td>{{standard.last_modified_on|date:"d.m.Y, H:i"}}</td>
<td>{{standard.public|yesno:"Öffentlich,Nicht öffentlich"}}</td>
<td><a href="{% url 'standard-update' standard.pk %}" class="btn"><i class="fas fa-cog"></i></a></td>
<td>
<div class="dropdown no-arrow">
<a class="dropdown-toggle" href="#" role="button" id="dropdownMenuLink" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<i class="fas fa-ellipsis-v fa-sm fa-fw text-gray-400"></i>
</a>
<div class="dropdown-menu dropdown-menu-right shadow animated--fade-in" aria-labelledby="dropdownMenuLink">
<a class="dropdown-item" href="{% url 'standard-update' standard.pk %}">Bearbeiten</a>
<a class="dropdown-item text-danger" href="{% url 'standard-delete' standard.pk %}" >Löschen</a>
</div>
</div>
</td>
</tr>
{% endfor %}
</table>

View File

@ -418,7 +418,7 @@ def support(request):
ostdata = {
"topicid" : '12',
"topicId" : '12',
"name": name,
"email": mail,
"subject": 'Digitale Agentur: '+problemconc,
@ -427,10 +427,12 @@ def support(request):
}
json_data = json.dumps(ostdata)
print(json_data)
r = requests.post("https://support.vh-solutions.de/api/http.php/tickets.json", data=json_data, headers=headers)
messages.warning(request, f'Supportanfrage Respnose: ' + str(r))
r = requests.post("https://support.vh-solutions.de/api/http.php/tickets.json", data=json_data, headers=headers)
if(r != 201):
messages.warning(request, f'Supportanfrage fehlgeschlagen!')
else:
messages.warning(request, f'Supportanfrage gesendet. Ticket-ID: ' + str(r))
return render(request, 'users/support_done.html', context)
else: