From 8eb69ec057b5f7594a93c535078bd4ef6f4d339b Mon Sep 17 00:00:00 2001
From: Sistason <c3infra@sistason.de>
Date: Sun, 20 Mar 2022 14:13:22 +0100
Subject: [PATCH] fixup! PyCharm (not Professional) cannot do Jinja2-HTML well
 and does trip over Strings in HTML vs Strings in Jinja2. We can help by using
 single-tick strings in jinja2 to remove most of the warnings and errors in
 the IDE-Inspector.

---
 uffd/user/templates/user/show.html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/uffd/user/templates/user/show.html b/uffd/user/templates/user/show.html
index e9a1affe..a2ff525f 100644
--- a/uffd/user/templates/user/show.html
+++ b/uffd/user/templates/user/show.html
@@ -7,7 +7,7 @@
 		<button type="submit" class="btn btn-primary"><i class="fa fa-save" aria-hidden="true"></i> {{_("Save")}}</button>
 		<a href="{{ url_for('user.index') }}" class="btn btn-secondary">{{_("Cancel")}}</a>
 		{% if user.id %}
-			<a href="{{ url_for('user.delete', id=user.id) }}" onClick="return confirm({{_('Are you sure?')|tojson}});" class="btn btn-danger"><i class="fa fa-trash" aria-hidden="true"></i> {{_("Delete")}}</a>
+			<a href="{{ url_for('user.delete', id=user.id) }}" onClick='return confirm({{_("Are you sure?")|tojson}});' class="btn btn-danger"><i class="fa fa-trash" aria-hidden="true"></i> {{_("Delete")}}</a>
 		{% else %}
 			<a href="#" class="btn btn-danger disabled"><i class="fa fa-trash" aria-hidden="true"></i> {{_("Delete")}}</a>
 		{% endif %}
-- 
GitLab