Skip to content
Snippets Groups Projects
Verified Commit 8eb69ec0 authored by sistason's avatar sistason
Browse files

fixup! PyCharm (not Professional) cannot do Jinja2-HTML well and does trip...

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.
parent d976acea
No related branches found
No related tags found
No related merge requests found
......@@ -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 %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment