Skip to content
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

💻 Guest teacher connect option in teacher signup #5467

Merged
merged 11 commits into from
Apr 30, 2024
9 changes: 9 additions & 0 deletions messages.pot
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,9 @@ msgstr ""
msgid "congrats_message"
msgstr ""

msgid "connect_guest_teacher"
msgstr ""

msgid "content_invalid"
msgstr ""

Expand Down Expand Up @@ -863,6 +866,9 @@ msgstr ""
msgid "keyword_language_invalid"
msgstr ""

msgid "landcode_phone_number"
msgstr ""

msgid "language"
msgstr ""

Expand Down Expand Up @@ -1238,6 +1244,9 @@ msgstr ""
msgid "personal_text_invalid"
msgstr ""

msgid "phone_number"
msgstr ""

msgid "postfix_classname"
msgstr ""

Expand Down
11 changes: 11 additions & 0 deletions templates/signup.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,12 @@ <h4 class="text-blue-500 mt-0 mb-0 text-center">{{_('create_student_account_expl
<label class="signup-label" for="email">{{_('email')}}</label>
<input class="signup-input" id="email" name="email" type="email" required>
</div>
<div class="signup-container">
<div class="hidden" id="phone_number">
<label class="signup-label" for="phone">{{_('phone_number')}}</label>
<input required class="signup-input" id="phone" name="phone" type="number" placeholder="{{_('landcode_phone_number')}}">
Annelein marked this conversation as resolved.
Show resolved Hide resolved
</div>
</div>
<div class="signup-container">
<label class="signup-label" for="password">{{_('password')}}</label>
<div class="flex ml-auto items-center justify-end">
Expand Down Expand Up @@ -203,6 +209,11 @@ <h4 class="text-blue-500 mt-0 mb-0 text-center">{{_('create_student_account_expl
<label for="pair_with_teacher">{{_('pair_with_teacher')}}</label>
<input type="checkbox" id="pair_with_teacher" name="pair_with_teacher">
</div>
<div class="flex justify-between items-center">
<label for="connect_guest_teacher">{{_('connect_guest_teacher')}}</label>
<input type="checkbox" id="connect_guest_teacher" name="connect_guest_teacher"
_="on click toggle .hidden on #phone_number">
Annelein marked this conversation as resolved.
Show resolved Hide resolved
</div>
{% endif %}
<div class="flex justify-between items-center">
<label for="agree_terms">{{_('agree_with')}} <a href="/privacy" target="_blank">{{_('privacy_terms')}}</a></label>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import {goToRegisterTeacher} from '../tools/navigation/nav.js'

describe('Check connect with guest teacher', () => {
it('passes', () => {

goToRegisterTeacher();

cy.get('#connect_guest_teacher').check()
.should('be.visible')

cy.get('#phone_number')
.should('be.visible')
})
})
9 changes: 9 additions & 0 deletions translations/ar/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -450,6 +450,9 @@ msgstr "Common errors"
msgid "congrats_message"
msgstr "Congratulations, {username}, you have completed Hedy!"

msgid "connect_guest_teacher"
msgstr ""

msgid "content_invalid"
msgstr "هذه المغامرة غير صالحة"

Expand Down Expand Up @@ -999,6 +1002,9 @@ msgstr "Waiting for a button press..."
msgid "keyword_language_invalid"
msgstr "الرجاء اختيار لغة صحيحة للكلمات المفتاحية (الأوامر البرمجية). اختر اللغة الإنجليزية أو لغتك الخاصة."

msgid "landcode_phone_number"
msgstr ""

#, fuzzy
msgid "language"
msgstr "Language"
Expand Down Expand Up @@ -1432,6 +1438,9 @@ msgstr "النص الشخصي"
msgid "personal_text_invalid"
msgstr "النص الشخصي غير صالح."

msgid "phone_number"
msgstr ""

#, fuzzy
msgid "postfix_classname"
msgstr "Postfix classname"
Expand Down
9 changes: 9 additions & 0 deletions translations/bg/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -491,6 +491,9 @@ msgstr "Common errors"
msgid "congrats_message"
msgstr "Congratulations, {username}, you have completed Hedy!"

msgid "connect_guest_teacher"
msgstr ""

#, fuzzy
msgid "content_invalid"
msgstr "This adventure is invalid."
Expand Down Expand Up @@ -1111,6 +1114,9 @@ msgstr "Waiting for a button press..."
msgid "keyword_language_invalid"
msgstr "Please select a valid keyword language (select English or your own language)."

msgid "landcode_phone_number"
msgstr ""

#, fuzzy
msgid "language"
msgstr "Language"
Expand Down Expand Up @@ -1596,6 +1602,9 @@ msgstr "Personal text"
msgid "personal_text_invalid"
msgstr "Your personal text is invalid."

msgid "phone_number"
msgstr ""

#, fuzzy
msgid "postfix_classname"
msgstr "Postfix classname"
Expand Down
9 changes: 9 additions & 0 deletions translations/bn/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -509,6 +509,9 @@ msgstr "Common errors"
msgid "congrats_message"
msgstr "Congratulations, {username}, you have completed Hedy!"

msgid "connect_guest_teacher"
msgstr ""

#, fuzzy
msgid "content_invalid"
msgstr "This adventure is invalid."
Expand Down Expand Up @@ -1145,6 +1148,9 @@ msgstr "Waiting for a button press..."
msgid "keyword_language_invalid"
msgstr "Please select a valid keyword language (select English or your own language)."

msgid "landcode_phone_number"
msgstr ""

#, fuzzy
msgid "language"
msgstr "Language"
Expand Down Expand Up @@ -1659,6 +1665,9 @@ msgstr "Personal text"
msgid "personal_text_invalid"
msgstr "Your personal text is invalid."

msgid "phone_number"
msgstr ""

#, fuzzy
msgid "postfix_classname"
msgstr "Postfix classname"
Expand Down
9 changes: 9 additions & 0 deletions translations/ca/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -422,6 +422,9 @@ msgstr "Errors freqüents"
msgid "congrats_message"
msgstr "Felicitats, {username}, has completat Hedy!"

msgid "connect_guest_teacher"
msgstr ""

msgid "content_invalid"
msgstr "Aquesta aventura no és vàlida."

Expand Down Expand Up @@ -940,6 +943,9 @@ msgstr "Waiting for a button press..."
msgid "keyword_language_invalid"
msgstr "Please select a valid keyword language (select English or your own language)."

msgid "landcode_phone_number"
msgstr ""

#, fuzzy
msgid "language"
msgstr "Language"
Expand Down Expand Up @@ -1451,6 +1457,9 @@ msgstr "Personal text"
msgid "personal_text_invalid"
msgstr "Your personal text is invalid."

msgid "phone_number"
msgstr ""

msgid "postfix_classname"
msgstr "Afegir sufix classe"

Expand Down
9 changes: 9 additions & 0 deletions translations/cs/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -494,6 +494,9 @@ msgstr "Common errors"
msgid "congrats_message"
msgstr "Congratulations, {username}, you have completed Hedy!"

msgid "connect_guest_teacher"
msgstr ""

#, fuzzy
msgid "content_invalid"
msgstr "This adventure is invalid."
Expand Down Expand Up @@ -1111,6 +1114,9 @@ msgstr "Waiting for a button press..."
msgid "keyword_language_invalid"
msgstr "Please select a valid keyword language (select English or your own language)."

msgid "landcode_phone_number"
msgstr ""

#, fuzzy
msgid "language"
msgstr "Language"
Expand Down Expand Up @@ -1592,6 +1598,9 @@ msgstr "Personal text"
msgid "personal_text_invalid"
msgstr "Your personal text is invalid."

msgid "phone_number"
msgstr ""

#, fuzzy
msgid "postfix_classname"
msgstr "Postfix classname"
Expand Down
9 changes: 9 additions & 0 deletions translations/cy/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -510,6 +510,9 @@ msgstr "Common errors"
msgid "congrats_message"
msgstr "Congratulations, {username}, you have completed Hedy!"

msgid "connect_guest_teacher"
msgstr ""

#, fuzzy
msgid "content_invalid"
msgstr "This adventure is invalid."
Expand Down Expand Up @@ -1146,6 +1149,9 @@ msgstr "Waiting for a button press..."
msgid "keyword_language_invalid"
msgstr "Please select a valid keyword language (select English or your own language)."

msgid "landcode_phone_number"
msgstr ""

#, fuzzy
msgid "language"
msgstr "Language"
Expand Down Expand Up @@ -1673,6 +1679,9 @@ msgstr "Personal text"
msgid "personal_text_invalid"
msgstr "Your personal text is invalid."

msgid "phone_number"
msgstr ""

#, fuzzy
msgid "postfix_classname"
msgstr "Postfix classname"
Expand Down
9 changes: 9 additions & 0 deletions translations/da/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -509,6 +509,9 @@ msgstr "Common errors"
msgid "congrats_message"
msgstr "Congratulations, {username}, you have completed Hedy!"

msgid "connect_guest_teacher"
msgstr ""

#, fuzzy
msgid "content_invalid"
msgstr "This adventure is invalid."
Expand Down Expand Up @@ -1145,6 +1148,9 @@ msgstr "Waiting for a button press..."
msgid "keyword_language_invalid"
msgstr "Please select a valid keyword language (select English or your own language)."

msgid "landcode_phone_number"
msgstr ""

#, fuzzy
msgid "language"
msgstr "Language"
Expand Down Expand Up @@ -1672,6 +1678,9 @@ msgstr "Personal text"
msgid "personal_text_invalid"
msgstr "Your personal text is invalid."

msgid "phone_number"
msgstr ""

#, fuzzy
msgid "postfix_classname"
msgstr "Postfix classname"
Expand Down
9 changes: 9 additions & 0 deletions translations/de/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -422,6 +422,9 @@ msgstr "Häufige Fehler"
msgid "congrats_message"
msgstr "Herzlichen Glückwunsch, {username}, Du hast Hedy abgeschlossen!"

msgid "connect_guest_teacher"
msgstr ""

msgid "content_invalid"
msgstr "Dieses Abenteuer ist ungültig."

Expand Down Expand Up @@ -924,6 +927,9 @@ msgstr "Warte auf Knopfdruck..."
msgid "keyword_language_invalid"
msgstr "Bitte wähle eine gültige Schlüsselwortsprache (wähle Englisch oder deine eigene Sprache)."

msgid "landcode_phone_number"
msgstr ""

msgid "language"
msgstr "Sprache"

Expand Down Expand Up @@ -1337,6 +1343,9 @@ msgstr "Persönlicher Text"
msgid "personal_text_invalid"
msgstr "Dein persönlicher Text ist ungültig."

msgid "phone_number"
msgstr ""

msgid "postfix_classname"
msgstr "Postfix Klassenname"

Expand Down
9 changes: 9 additions & 0 deletions translations/el/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -464,6 +464,9 @@ msgstr "Common errors"
msgid "congrats_message"
msgstr "Congratulations, {username}, you have completed Hedy!"

msgid "connect_guest_teacher"
msgstr ""

msgid "content_invalid"
msgstr "Αυτή η περιπέτεια δεν είναι έγκυρη"

Expand Down Expand Up @@ -1029,6 +1032,9 @@ msgstr "Waiting for a button press..."
msgid "keyword_language_invalid"
msgstr "Επίλεξε μια έγκυρη γλώσσα λέξεων-κλειδιών (επιλέξτε Αγγλικά ή τη δική σας γλώσσα)"

msgid "landcode_phone_number"
msgstr ""

#, fuzzy
msgid "language"
msgstr "Language"
Expand Down Expand Up @@ -1472,6 +1478,9 @@ msgstr "Προσωπικό κείμενο"
msgid "personal_text_invalid"
msgstr "Το προσωπικό σου κείμενο δεν είναι έγκυρο"

msgid "phone_number"
msgstr ""

#, fuzzy
msgid "postfix_classname"
msgstr "Postfix classname"
Expand Down
9 changes: 9 additions & 0 deletions translations/en/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,9 @@ msgstr "Common errors"
msgid "congrats_message"
msgstr "Congratulations, {username}, you have reached the following results with Hedy!"

msgid "connect_guest_teacher"
msgstr "I would like to be connected with a guest teacher who can give a few lessons"

msgid "content_invalid"
msgstr "This adventure is invalid."

Expand Down Expand Up @@ -864,6 +867,9 @@ msgstr "Waiting for a button press..."
msgid "keyword_language_invalid"
msgstr "Please select a valid keyword language (select English or your own language)."

msgid "landcode_phone_number"
msgstr "Please also add your country's landcode"

msgid "language"
msgstr "Language"

Expand Down Expand Up @@ -1267,6 +1273,9 @@ msgstr "Personal text"
msgid "personal_text_invalid"
msgstr "Your personal text is invalid."

msgid "phone_number"
msgstr "Phone number"

msgid "postfix_classname"
msgstr "Postfix classname"

Expand Down
9 changes: 9 additions & 0 deletions translations/eo/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -467,6 +467,9 @@ msgstr "Common errors"
msgid "congrats_message"
msgstr "Congratulations, {username}, you have completed Hedy!"

msgid "connect_guest_teacher"
msgstr ""

msgid "content_invalid"
msgstr "Jen nevalida aventuro."

Expand Down Expand Up @@ -1035,6 +1038,9 @@ msgstr "Waiting for a button press..."
msgid "keyword_language_invalid"
msgstr "Please select a valid keyword language (select English or your own language)."

msgid "landcode_phone_number"
msgstr ""

#, fuzzy
msgid "language"
msgstr "Language"
Expand Down Expand Up @@ -1490,6 +1496,9 @@ msgstr "Persona teksto"
msgid "personal_text_invalid"
msgstr "Via persona teksto ne validas."

msgid "phone_number"
msgstr ""

#, fuzzy
msgid "postfix_classname"
msgstr "Postfix classname"
Expand Down
Loading
Loading