-
Notifications
You must be signed in to change notification settings - Fork 289
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[UI] Dynamic Survey View - Ask teacher for class info #4612 #4711
Changes from 25 commits
f026c7b
8a55a78
17704fd
7d66ff4
114cf5c
451ff6b
7e0c5a3
2deef69
43b28fe
aa9ed60
e619095
9fb621a
3447e18
e05df59
afe352b
570dc22
e41e1af
648a1e9
a2dcce6
54027d8
b5b4b33
78af349
78e8023
0ac7320
9423011
1a94d4e
82806c0
ffd126e
a032f01
b19f22e
170ecef
ae7f286
b93829f
cfa7ab5
44404bc
56ba7be
ac81a5b
0fbce2f
cec5d62
8661469
37b3fba
6e62860
eb41886
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
This file was deleted.
This file was deleted.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
{% block regular_content %} | ||
<div id="survey" class="z-50 fixed w-screen h-screen" style="width: 30%; top: 50%; left: 50%; transform: translate(-50%, -50%);"> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's to make sure that the numbers don't change for different screens, use flex box:
|
||
<div class="bg-blue-500 border border-black rounded-lg px-8 py-4 text-center"> | ||
<div id="description" class="text-white mb-8 text-l">{{ _(description) }}</div> | ||
<form id="survey-form"> | ||
{% for question in questions %} | ||
<div class="mb-4"> | ||
<div id="question" class="text-white mb-4 text-xl">{{ _(question) }}</div> | ||
<div class="flex flex-row justify-center space-x-1"> | ||
<input autofocus="autofocus" id="input" type="text" class="flex items-center border border-green-400 rounded p-2 px-3 w-4/5 mx-auto" name="{{ question }}"> | ||
</div> | ||
</div> | ||
{% endfor %} | ||
<div class="mt-4 flex flex-row justify-center"> | ||
<button type="submit" class="green-btn block mx-auto w-40 pb-4 pt-4" | ||
hx-trigger="click" | ||
hx-post="/surveys/submit-survey/{{ survey_id }}" | ||
hx-include="[name='question']" | ||
hx-swap="innerHTML" | ||
_="on click toggle .hidden on #survey"> | ||
{{_('survey_submit')}}</button> | ||
<button type="remind_later" class="red-btn block mx-auto w-40 pb-4 pt-4" | ||
hx-trigger="click" | ||
hx-post="/surveys/remind-later-survey/{{ survey_id }}" | ||
hx-swap="innerHTML" | ||
_="on click toggle .hidden on #survey"> | ||
{{_('survey_later')}}</button> | ||
</div> | ||
<div class="flex-row justify-center"> | ||
<button type="skip" class="text-white m-1 w-40 pb-4 pt-4" | ||
hx-trigger="click" | ||
hx-post="/surveys/skip-survey/{{ survey_id }}" | ||
hx-swap="innerHTML" | ||
_="on click toggle .hidden on #survey"> | ||
<u>{{_('survey_skip')}}</u></button> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. since you always skip for today, make sure to inform the user about that. |
||
</div> | ||
</form> | ||
</div> | ||
</div> | ||
</div> | ||
{% endblock %} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
# Bulgarian translations for PROJECT. | ||
# Copyright (C) 2023 ORGANIZATION | ||
# This file is distributed under the same license as the PROJECT project. | ||
# FIRST AUTHOR <EMAIL@ADDRESS>, 2023. | ||
# | ||
#, fuzzy | ||
msgid "" | ||
msgstr "Project-Id-Version: PACKAGE VERSION\nReport-Msgid-Bugs-To: \nPOT-Creation-Date: 2023-11-02 08:48+0200\nPO-Revision-Date: 2023-11-14 20:05+0000\nLast-Translator: Prefill add-on <[email protected]>\nLanguage-Team: LANGUAGE <[email protected]>\nLanguage: bg\nMIME-Version: 1.0\nContent-Type: text/plain; charset=UTF-8\nContent-Transfer-Encoding: 8bit\nPlural-Forms: nplurals=2; plural=n != 1;\nX-Generator: Weblate 5.2-dev\n" | ||
|
||
|
@@ -420,6 +426,12 @@ msgstr "Please enter the name of the class" | |
msgid "class_overview" | ||
msgstr "Class overview" | ||
|
||
msgid "class_survey_description" | ||
msgstr "" | ||
|
||
msgid "class_survey_questions" | ||
msgstr "" | ||
|
||
#, fuzzy | ||
msgid "close" | ||
msgstr "Sluiten" | ||
|
@@ -1992,6 +2004,15 @@ msgstr "Абонирай се за нашия журнал" | |
msgid "surname" | ||
msgstr "Потребителско име" | ||
|
||
msgid "survey_later" | ||
msgstr "" | ||
|
||
msgid "survey_skip" | ||
msgstr "" | ||
|
||
msgid "survey_submit" | ||
msgstr "" | ||
|
||
#, fuzzy | ||
msgid "tag_deleted" | ||
msgstr "This tag was successfully deleted." | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
# Bangla translations for PROJECT. | ||
# Copyright (C) 2023 ORGANIZATION | ||
# This file is distributed under the same license as the PROJECT project. | ||
# FIRST AUTHOR <EMAIL@ADDRESS>, 2023. | ||
# | ||
#, fuzzy | ||
msgid "" | ||
msgstr "Project-Id-Version: PACKAGE VERSION\nReport-Msgid-Bugs-To: \nPOT-Creation-Date: 2023-11-02 08:48+0200\nPO-Revision-Date: 2023-11-14 20:05+0000\nLast-Translator: Prefill add-on <[email protected]>\nLanguage-Team: LANGUAGE <[email protected]>\nLanguage: bn\nMIME-Version: 1.0\nContent-Type: text/plain; charset=UTF-8\nContent-Transfer-Encoding: 8bit\nPlural-Forms: nplurals=2; plural=n > 1;\nX-Generator: Weblate 5.2-dev\n" | ||
|
||
|
@@ -438,6 +444,12 @@ msgstr "Please enter the name of the class" | |
msgid "class_overview" | ||
msgstr "Class overview" | ||
|
||
msgid "class_survey_description" | ||
msgstr "" | ||
|
||
msgid "class_survey_questions" | ||
msgstr "" | ||
|
||
#, fuzzy | ||
msgid "close" | ||
msgstr "Sluiten" | ||
|
@@ -2077,18 +2089,6 @@ msgstr "Subscribe to the newsletter" | |
msgid "surname" | ||
msgstr "Username" | ||
|
||
#, fuzzy | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Tagging @hasan-sh for this one. Are these tags still in use or are they deleted correctly? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm not sure why the translation keys related to tagging are removed: Is that what you were asking @Felienne ? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I made a quick search on main, and these tags are not included in any HTML or python file, so maybe it was correct? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't get why these are removed... There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I just started a discusion in Discord, I think I understand why, but this is in any case not a problem with the PR @Annelein |
||
msgid "tag_deleted" | ||
msgstr "This tag was successfully deleted।" | ||
|
||
#, fuzzy | ||
msgid "tag_input_placeholder" | ||
msgstr "Enter a new tag" | ||
|
||
#, fuzzy | ||
msgid "tags" | ||
msgstr "Tags" | ||
|
||
#, fuzzy | ||
msgid "teacher" | ||
msgstr "Looks like you are not a teacher!" | ||
|
@@ -2554,3 +2554,19 @@ msgstr "Your program" | |
|
||
#~ msgid "title_class statistics" | ||
#~ msgstr "My statistics" | ||
|
||
#, fuzzy | ||
msgid "invalid_level_comment" | ||
msgstr "# The provided level is invalid, level is set to level 1" | ||
|
||
#, fuzzy | ||
msgid "invalid_language_comment" | ||
msgstr "# The provided language is invalid, language set to English" | ||
|
||
#, fuzzy | ||
msgid "invalid_keyword_language_comment" | ||
msgstr "# The provided keyword language is invalid, keyword language is set to English" | ||
|
||
#, fuzzy | ||
msgid "invalid_program_comment" | ||
msgstr "# The provided program is invalid, please try again" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are we modifying this file? Seems like this is IDE specific?