add 'go back' buttons

This commit is contained in:
Thomas Rubini 2023-03-11 18:17:25 +01:00
parent f3fa09e25f
commit e1ea41b6d1
No known key found for this signature in database
GPG Key ID: C7D287C8C1CAC373
5 changed files with 9 additions and 2 deletions

View File

@ -15,9 +15,11 @@ def get_questions():
results = db.session.execute( results = db.session.execute(
select(QuestionType, Locale) select(QuestionType, Text)
.select_from(QuestionType)
.join(Locale) .join(Locale)
.filter(Locale.LANG==lang) .join(Text)
.filter(Text.LANG==lang)
.order_by(QuestionType.QUESTION_TYPE_ID) .order_by(QuestionType.QUESTION_TYPE_ID)
) )

View File

@ -0,0 +1 @@
<a href="/admin"> go Back </a> <br>

View File

@ -0,0 +1 @@
<a href="/admin"> go Back </a> <br>

View File

@ -1,3 +1,5 @@
<a href="/admin"> go Back </a> <br>
<select id="langs" onchange="langChangedEvent()"> <select id="langs" onchange="langChangedEvent()">
{%for lang in langs%} {%for lang in langs%}
<option value="{{lang}}">{{lang}}</option> <option value="{{lang}}">{{lang}}</option>

View File

@ -0,0 +1 @@
<a href="/admin"> go Back </a> <br>