-
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
Merged
Merged
Changes from all commits
Commits
Show all changes
43 commits
Select commit
Hold shift + click to select a range
f026c7b
Setting up survey view that takes x questions
8a55a78
Setting up survey view that takes x questions
Annelein 17704fd
Setting up survey view that takes x questions
Annelein 7d66ff4
Layout of view is done
Annelein 114cf5c
Looking into parsing form responses
Annelein 451ff6b
styling done, responses are parsed, looking into saving in database
Annelein 7e0c5a3
Skip survey saved to database
Annelein 2deef69
Survey description and questions as translations
Annelein 43b28fe
Trigger should when class contains students
Annelein aa9ed60
Trigger should when class contains students
Annelein e619095
Triggered if class contains students
Annelein 9fb621a
bigger text, remind me later button, survey table
Annelein 3447e18
surveymodule, needs documentation
Annelein e05df59
translations
Annelein afe352b
screen size
Annelein 570dc22
Update translations/en/LC_MESSAGES/messages.po
Annelein e41e1af
translations
Annelein 648a1e9
trial for pot/po fixes
Felienne a2dcce6
view
Annelein 54027d8
Merge branch 'main' into survey-class-info
Annelein b5b4b33
missing blueprint
Annelein 78af349
merge conflict
Annelein 78e8023
merge conflict
Annelein 0ac7320
merge conflict
Annelein 9423011
merge conflict
Annelein 1a94d4e
translations
Annelein 82806c0
show survey later is generic
Annelein ffd126e
move get_unanswered_questions to utils
Annelein a032f01
translations and translated question
Annelein b19f22e
small mistake
Annelein 170ecef
small mistake
Annelein ae7f286
few test fixes
Annelein b93829f
few test fixes
Annelein cfa7ab5
Merge branch 'main' into survey-class-info
Annelein 44404bc
==
Annelein 56ba7be
Merge branch 'main' of github.com:hedyorg/hedy into survey-class-info
jpelay ac81a5b
__init__.py
Annelein 0fbce2f
remove double strings
Felienne cec5d62
class test need to hide survey
Annelein 8661469
unneeded styles
hasan-sh 37b3fba
remove hiding survey in test
Annelein 6e62860
hide survey when testing class activities
hasan-sh eb41886
hide survey when testing class activities - student copy link
Annelein File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
{% block regular_content %} | ||
<div id="survey" class="flex absolute inset-0 items-center justify-center"> | ||
<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 gap-2 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> | ||
</div> | ||
</form> | ||
</div> | ||
</div> | ||
</div> | ||
{% endblock %} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
since you always skip for today, make sure to inform the user about that.