From 8a1c7aff427400631121c294157ce0d6c1938e5e Mon Sep 17 00:00:00 2001 From: Jan Date: Tue, 17 Sep 2024 17:03:44 +0200 Subject: [PATCH] More UI improvements --- slaeforms/static/icons/sl-icon.png | Bin 0 -> 5936 bytes slaeforms/static/styles.css | 3 + slaeforms/templates/standard_template.html | 49 ++++++++- slaeforms/templates/studytest.html | 122 ++++++++------------- slaeforms/userstudy1.json | 115 ++++++++++++++++--- 5 files changed, 196 insertions(+), 93 deletions(-) create mode 100644 slaeforms/static/icons/sl-icon.png diff --git a/slaeforms/static/icons/sl-icon.png b/slaeforms/static/icons/sl-icon.png new file mode 100644 index 0000000000000000000000000000000000000000..c25975c89c1b0ac07980ec74a47099c0ca1e9528 GIT binary patch literal 5936 zcmai22~<-_v#y(jkU)Si$gU7{6dfH=1A+RYL<{;ImVy1IYy z@>r##Wu^rHI%`(Dt_L8YCJAU%LQS^+s{3b+%9=Y1@XMp)LCV$xe ze>v|(OwFh@?khFB==ux`!>tOJGl*pxwbD1rB_b?rdw3MM?Aaa^wS60F-_9sLYt6FSFk(NMq_M^jCoxa zpM2OW3I=xG9rhxzo~?;BJIeASIf+!M0gF$|)=R1rNDP(n=&K+6eVj73x1NRB3&w>L zmEI#O(kU?v)vB1y$+$RTs})97>y0%xD+I0iXIoQNQcP6zv3HDt64vCnhsWMBMx%p* z$akixX6$!TMg(;H22j-&`B(?=H(9xNV;nrcT*c$N67SZ9=!{P#Hv_!$P|s+T8*9G1fkGyPHk~)5Vp?*>XnerV& zsCiqM+3>?14K^R0ujZ#XU)Fu<=>S)zA!RUqgi8CL{}NveGR^JF-&0Hp7XkPskl z7x4l9#_@lXzoq^W{!il2=R#*Ck90_!&oCp&P$5zm25$XsW;+$S^(OibZLuezCV$a* z3k||S{6?y->+AUmkh66}!umoo6U5`~S(s#&7%K!qY)B$>fJcx>z#Aqbq+W@&!1=3A z-8kNZKAF7X6Pjuv7h?e@xbv~llZha&-ZL6Fa(ZNM<#!4Lij|cmDQUE-ji6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I5TktOCLE0{i*BGX)=i=xunV1BC6B^b$_F=o$WQ6^thw7 zqF0d9lZ&!6O!ehJyIbcTL(NN$6FtkQ2IuX?AyntKb)7=>Wv5%&>fEd5a8!eq8-<%@ ziOycpAaS~~H5$EH!1oQu@ZJF(3XYbxh{^%J2|B?6|DXYgJ=-Zw`%lMY5=UEqJzt7( ze%BoMh5~y}mthq&jHo`{jHUILUCgwJymG$FJRF#RqH_PK38`Ech&k+qg=E}d!X+z` zjEkvV?EUQvRt36uu%)14{g$Ey!{bs>=>WLZ^mm)dVw)~> zr4ME&haV{9dPOu_Mh}%C zY({rImvxxL1nUF<=QOKt;KXC%mUogJ<-p+0iKFIl&W<8aL&rLg>3E$p3ATizW2R+F z*87|T0xb$Uc!`%_BE&c48$r60hq=tyVWN`?*ymk1e40s_yafA*fFVe4PORj1oj#(Z zdLV;1Z1N{#3M|@v1IDIkYvdRR^b&e)#tR{&?37(Opxr*G@Y;9(cyJtN0V9KCi3czW$r{9Jt9Gx`{n0+%w0QH^J(!fT}I zk7G13aMxdZ^Jl@OUNr3H{eKS|Q}T?C(XK}p)2n*jcItSCDK^*9fS)c~SmQA+TSNl0 z+>+yO^u~r6u<>E;zMBrm<5wQefXIGLZ9OYg#1{=SNd&6-QMUEaJtQ!|Q0`<1ORM%_ zUQX9W|AMJyMDQbbn5uU|W`V9^F%uOt(FdZm@&hz^m+`2h8PK?NynszXXFUF*;exqe z8+$wMWv_l50$o#i6+Mp?PZBijF<%>*9tontx(Ac&f@`D+K0v!|qLNKZpT!>-JY2#H zLziVqn;1d?qvjhkU5Ncw&bG`DNuqIc;2VX<<%v%_^H1?ujqDUrMM#P{F!!k0QI{6! z9Fk6b;0_{Z8n75?JKJMLG~nendQLKUrHz}<9@LyoLr#S!s literal 0 HcmV?d00001 diff --git a/slaeforms/static/styles.css b/slaeforms/static/styles.css index d286db1..2c1841b 100644 --- a/slaeforms/static/styles.css +++ b/slaeforms/static/styles.css @@ -334,10 +334,13 @@ iframe { gap: 10px; /* Adjust spacing */ text-align: center; flex-grow: 1; + max-width: 70%; + margin: auto; } .likertlabel { flex-grow: 1; + width: 100%; } .likertinput { diff --git a/slaeforms/templates/standard_template.html b/slaeforms/templates/standard_template.html index b7debe0..62a0bf0 100644 --- a/slaeforms/templates/standard_template.html +++ b/slaeforms/templates/standard_template.html @@ -131,7 +131,7 @@ step={{question["step"]}} + src="{{ url_for('static', filename='icons/sl-icon.png')}}" alt="Info Icon"> {% endif %} @@ -149,7 +149,14 @@ step={{question["step"]}}
{% for question in questions %} - {% if (questions[question]["type"] == "likert") %} + {% if (questions[question]["type"] == "textblock") %} + + +

{{ questions[question]['text']}}

+ + + + {% elif (questions[question]["type"] == "likert") %}

{{ questions[question]['text']}}

@@ -164,6 +171,26 @@ step={{question["step"]}} {% endfor %}
+ + + {% elif (questions[question]["type"] == "likert-basic") %} + +

{{ questions[question]['text']}}

+ +
+ {% for point in questions[question]["points"] %} + + {% endfor %} +
+ + {% elif (questions[question]["type"] == "textinput") %}
+ + + {% elif (questions[question]["type"] == "textinput") %} +
+ +
+ {% elif (questions[question]["type"] == "dateinput") %}
@@ -182,6 +221,8 @@ step={{question["step"]}} {{required(questions[question])}}>
+ + {% elif (questions[question]["type"] == "numberinput") %}
+ {% elif (questions[question]["type"] == "emailinput") %}
@@ -199,6 +241,7 @@ step={{question["step"]}} {{required(questions[question])}}>
+ {% elif (questions[question]["type"] == "dropdowninput") %}
@@ -216,6 +259,7 @@ step={{question["step"]}}
+ {% elif (questions[question]["type"] == "multiplechoice") %}
@@ -231,6 +275,7 @@ step={{question["step"]}} {% endfor %}
+ {% elif (questions[question]["type"] == "videoinput") %} diff --git a/slaeforms/templates/studytest.html b/slaeforms/templates/studytest.html index 6dfcd82..70972d7 100644 --- a/slaeforms/templates/studytest.html +++ b/slaeforms/templates/studytest.html @@ -25,7 +25,7 @@ - + @@ -33,97 +33,69 @@
-
+
- - - - - - - -
+ + + + + + + +
@@ -133,9 +105,7 @@
diff --git a/slaeforms/userstudy1.json b/slaeforms/userstudy1.json index ee6ac82..2aa05ba 100644 --- a/slaeforms/userstudy1.json +++ b/slaeforms/userstudy1.json @@ -310,42 +310,127 @@ } }, "questions": { + "question0": { + "type": "textblock", + "name": "fragestellung", + "text": "Bitte bewerten Sie das Video bezüglich der Natürlichkeit, Verständlichkeit und grammatikalischen Korrektheit:" + }, "question1": { - "type": "likert", - "name": "likertscale", - "text": "Wie würden sie dieses Video bewerten?", + "type": "likert-basic", + "name": "natürlichkeit", + "text": "Natürlichkeit", "required": "true", "points": { - "p1": { + "naturalness-p1": { "value": "1", - "text": "Ich finde es gar nicht gut 🙁👎" + "text": "Gar nicht gut 🙁👎" }, - "p2": { + "naturalness-p2": { "value": "2", - "text": "Ich finde es nicht gut 👎" + "text": "" }, - "p3": { + "naturalness-p3": { "value": "3", - "text": "Ich finde es weder gut noch schlecht" + "text": "" }, - "p4": { + "naturalness-p4": { "value": "4", - "text": "Ich finde es gut 👍" + "text": "Weder gut noch schlecht" }, - "p5": { + "naturalness-p5": { "value": "5", - "text": "Ich finde es sehr gut 😊👍" + "text": "" + }, + "naturalness-p6": { + "value": "6", + "text": "" + }, + "naturalness-p7": { + "value": "7", + "text": "Sehr gut 😊👍" } } }, "question2": { + "type": "likert-basic", + "name": "verständlichkeit", + "text": "Verständlichkeit", + "required": "true", + "points": { + "understandability-p1": { + "value": "1", + "text": "Gar nicht gut 🙁👎" + }, + "understandability--p2": { + "value": "2", + "text": "" + }, + "understandability--p3": { + "value": "3", + "text": "" + }, + "understandability--p4": { + "value": "4", + "text": "Weder gut noch schlecht" + }, + "understandability--p5": { + "value": "5", + "text": "" + }, + "understandability--p6": { + "value": "6", + "text": "" + }, + "understandability--p7": { + "value": "7", + "text": "Sehr gut 😊👍" + } + } + }, + "question3": { + "type": "likert-basic", + "name": "gramKorrektheit", + "text": "Grammatikalische Korrektheit", + "required": "true", + "points": { + "gramKorrektheit-p1": { + "value": "1", + "text": "Gar nicht gut 🙁👎" + }, + "gramKorrektheit-p2": { + "value": "2", + "text": "" + }, + "gramKorrektheit-p3": { + "value": "3", + "text": "" + }, + "gramKorrektheit-p4": { + "value": "4", + "text": "Weder gut noch schlecht" + }, + "gramKorrektheit-p5": { + "value": "5", + "text": "" + }, + "gramKorrektheit-p6": { + "value": "6", + "text": "" + }, + "gramKorrektheit-p7": { + "value": "7", + "text": "Sehr gut 😊👍" + } + } + }, + "question4": { "type": "textinput", "name": "text_feedback", - "text": "Hier können sie uns Feedback geben", + "text": "Hier können sie Feedback zum Avatar geben", "required": "false", "size": "250" }, - "question3": { + "question5": { "type": "videoinput", "text": "Hier können sie per Video Feedback geben", "name": "video_feedback",