Skip to content

Commit

Permalink
IP-345: In the sign up prompt for the questionnaire response, add a b…
Browse files Browse the repository at this point in the history
…etter text that will explain why it is important to (optionally) login
  • Loading branch information
PavlosIsaris committed Dec 23, 2024
1 parent 5b50cfd commit f3c70ef
Show file tree
Hide file tree
Showing 18 changed files with 26 additions and 34 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<div v-if="displayLoginPrompt" class="container-fluid p-0">
<div class="row mb-5 pt-3">
<div class="col text-center">
<h3 v-sane-html="getQuestionnaireLoginPromptMessage()"></h3>
<h4 class="login-message" v-sane-html="getQuestionnaireLoginPromptMessage()"></h4>
</div>
</div>
<div class="row justify-content-center d-none d-md-flex">
Expand Down Expand Up @@ -153,6 +153,7 @@ export default {
if (!this.userLoggedIn()) {
const response = await this.getAnonymousUserResponse();
this.userResponse = response.data.questionnaire_response ?? null;
console.log(this.userResponse);
this.displayLoginPrompt = !this.userResponse;
}
this.initQuestionnaireDisplay();
Expand All @@ -170,10 +171,11 @@ export default {
}, 1000);
},
getQuestionnaireLoginPromptMessage() {
let message = "";
if (this.questionnaire.respondent_auth_required) {
return trans("questionnaire.must_be_logged_in_prompt");
message += trans("questionnaire.must_be_logged_in_prompt") + "<br><br>";
}
return trans("questionnaire.create_account_prompt");
return (message + trans("questionnaire.create_account_prompt"));
},
initQuestionnaireDisplay() {
Survey.StylesManager.applyTheme("modern");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
@import "survey-jquery/survey.min.css";

#questionnaire-display {

.login-message {
line-height: 1.5;
}

.survey-container {
.sv-title {
color: $brand-primary;
Expand Down
3 changes: 1 addition & 2 deletions resources/lang/bg/questionnaire.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,4 @@
'answer_to_feedback_questionnaire' => 'Отговорете на анкетата за обратна връзка',
'user_feedback_given_message' => 'Благодарим Ви за обратната връзка!',
'must_be_logged_in_prompt' => 'Трябва да сте влезли в профила си, за да отговорите на въпросника.',
'create_account_prompt' => 'Можете да създадете профил, за да участвате повече в платформата и да получите значки!',
];
'create_account_prompt' => 'Създайте акаунт, за да допринесете повече за платформата, да печелите значки и да ни помогнете да подобрим качеството на нашите решения. Създавайки акаунт, можете да участвате в дискусии, да гласувате за решения и да бъдете информирани за последните новини. Присъединете се към нашата общност и направете разлика!', ];
3 changes: 1 addition & 2 deletions resources/lang/de/questionnaire.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,4 @@
'answer_to_feedback_questionnaire' => 'Antworten Sie auf den Feedback-Fragebogen',
'user_feedback_given_message' => 'Vielen Dank für Ihr Feedback!',
'must_be_logged_in_prompt' => 'Sie müssen angemeldet sein, um den Fragebogen zu beantworten.',
'create_account_prompt' => 'Sie können ein Konto erstellen, um mehr zur Plattform beizutragen und Abzeichen zu erhalten!',
];
'create_account_prompt' => 'Erstellen Sie ein Konto, um mehr zur Plattform beizutragen, Abzeichen zu verdienen und uns zu helfen, die Qualität unserer Lösungen zu verbessern. Durch die Erstellung eines Kontos können Sie an Diskussionen teilnehmen, für Lösungen abstimmen und über die neuesten Entwicklungen informiert bleiben. Treten Sie unserer Gemeinschaft bei und machen Sie einen Unterschied!', ];
3 changes: 1 addition & 2 deletions resources/lang/el/questionnaire.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,4 @@
'answer_to_feedback_questionnaire' => 'Απάντησε στο ερωτηματολόγιο ανατροφοδότησης',
'user_feedback_given_message' => 'Σας ευχαριστούμε για την ανατροφοδότησή σας!',
'must_be_logged_in_prompt' => 'Πρέπει να είστε συνδεδεμένοι για να απαντήσετε στο ερωτηματολόγιο.',
'create_account_prompt' => 'Μπορείτε να δημιουργήσετε ένα λογαριασμό για να συνεισφέρετε περισσότερο στην πλατφόρμα και να κερδίσετε badges!',
];
'create_account_prompt' => 'Δημιουργήστε έναν λογαριασμό για να συμβάλετε περισσότερο στην πλατφόρμα, να κερδίσετε σήματα και να μας βοηθήσετε να βελτιώσουμε την ποιότητα των λύσεών μας. Δημιουργώντας έναν λογαριασμό, μπορείτε να συμμετέχετε σε συζητήσεις, να ψηφίζετε για λύσεις και να ενημερώνεστε για τις τελευταίες εξελίξεις. Εγγραφείτε στην κοινότητά μας και κάντε τη διαφορά!', ];
2 changes: 1 addition & 1 deletion resources/lang/en/questionnaire.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,5 @@
'answer_to_feedback_questionnaire' => 'Answer the feedback questionnaire',
'user_feedback_given_message' => 'Thank you for your feedback!',
'must_be_logged_in_prompt' => 'You must be logged in to answer the questionnaire.',
'create_account_prompt' => 'You can create an account in order to contribute more to the platform, and gain badges!',
'create_account_prompt' => 'Create an account to contribute more to the platform, earn badges, and help us improve the quality of our solutions. By creating an account, you can participate in discussions, vote on solutions, and stay updated with the latest developments. Join our community and make a difference!',
];
3 changes: 1 addition & 2 deletions resources/lang/es/questionnaire.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,4 @@
'answer_to_feedback_questionnaire' => 'Responde al cuestionario de retroalimentación',
'user_feedback_given_message' => '¡Gracias por tu retroalimentación!',
'must_be_logged_in_prompt' => 'Debes iniciar sesión para responder el cuestionario.',
'create_account_prompt' => '¡Puedes crear una cuenta para contribuir más a la plataforma y obtener insignias!',
];
'create_account_prompt' => 'Cree una cuenta para contribuir más a la plataforma, ganar insignias y ayudarnos a mejorar la calidad de nuestras soluciones. Al crear una cuenta, puede participar en discusiones, votar por soluciones y mantenerse informado sobre los últimos desarrollos. ¡Únase a nuestra comunidad y marque la diferencia!', ];
3 changes: 1 addition & 2 deletions resources/lang/et/questionnaire.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,4 @@
'answer_to_feedback_questionnaire' => 'Vasta tagasiside küsimustikule',
'user_feedback_given_message' => 'Täname tagasiside eest!',
'must_be_logged_in_prompt' => 'Küsimustikule vastamiseks pead olema sisse logitud.',
'create_account_prompt' => 'Saad luua konto, et platvormile rohkem kaasa aidata ja saada märke!',
];
'create_account_prompt' => 'Loo konto, et panustada rohkem platvormile, teenida märke ja aidata meil parandada oma lahenduste kvaliteeti. Konto loomisega saate osaleda aruteludes, hääletada lahenduste poolt ja olla kursis viimaste arengutega. Liitu meie kogukonnaga ja tee vahet!', ];
3 changes: 1 addition & 2 deletions resources/lang/fr/questionnaire.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,4 @@
'answer_to_feedback_questionnaire' => 'Répondez au questionnaire de rétroaction',
'user_feedback_given_message' => 'Merci pour votre rétroaction!',
'must_be_logged_in_prompt' => 'Vous devez être connecté pour répondre au questionnaire.',
'create_account_prompt' => 'Vous pouvez créer un compte pour contribuer davantage à la plateforme et obtenir des badges!',
];
'create_account_prompt' => 'Créez un compte pour contribuer davantage à la plateforme, gagner des badges et nous aider à améliorer la qualité de nos solutions. En créant un compte, vous pouvez participer aux discussions, voter pour des solutions et rester informé des derniers développements. Rejoignez notre communauté et faites la différence!', ];
3 changes: 1 addition & 2 deletions resources/lang/hr/questionnaire.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,4 @@
'answer_to_feedback_questionnaire' => 'Odgovorite na upitnik za povratne informacije',
'user_feedback_given_message' => 'Hvala na vašem povratnom mišljenju!',
'must_be_logged_in_prompt' => 'Morate biti prijavljeni za odgovaranje na upitnik.',
'create_account_prompt' => 'Možete napraviti račun kako biste doprinosili platformi i dobili značke!',
];
'create_account_prompt' => 'Kreirajte račun kako biste više doprinijeli platformi, zaradili značke i pomogli nam poboljšati kvalitetu naših rješenja. Kreiranjem računa možete sudjelovati u raspravama, glasati za rješenja i biti informirani o najnovijim razvojnim događajima. Pridružite se našoj zajednici i napravite razliku!', ];
3 changes: 1 addition & 2 deletions resources/lang/hu/questionnaire.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,4 @@
'answer_to_feedback_questionnaire' => 'Válaszoljon a visszajelzési kérdőívünkre',
'user_feedback_given_message' => 'Köszönjük a visszajelzését!',
'must_be_logged_in_prompt' => 'A kérdőív kitöltéséhez be kell jelentkeznie.',
'create_account_prompt' => 'Hozzon létre egy fiókot, hogy még többet hozzájárulhasson a platformhoz, és jelvényeket szerezzen!',
];
'create_account_prompt' => 'Hozzon létre egy fiókot, hogy többet hozzájáruljon a platformhoz, jelvényeket szerezzen, és segítsen nekünk javítani megoldásaink minőségét. Fiók létrehozásával részt vehet a vitákban, szavazhat a megoldásokra, és naprakész maradhat a legújabb fejleményekkel kapcsolatban. Csatlakozzon közösségünkhöz, és tegyen különbséget!', ];
3 changes: 1 addition & 2 deletions resources/lang/it/questionnaire.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,4 @@
'answer_to_feedback_questionnaire' => 'Rispondi al questionario di feedback',
'user_feedback_given_message' => 'Grazie per il tuo feedback!',
'must_be_logged_in_prompt' => 'Devi essere loggato per rispondere al questionario.',
'create_account_prompt' => 'Puoi creare un account per contribuire di più alla piattaforma e ottenere badge!',
];
'create_account_prompt' => 'Crea un account per contribuire di più alla piattaforma, guadagnare badge e aiutarci a migliorare la qualità delle nostre soluzioni. Creando un account, puoi partecipare alle discussioni, votare per le soluzioni e rimanere aggiornato sugli ultimi sviluppi. Unisciti alla nostra comunità e fai la differenza!', ];
3 changes: 1 addition & 2 deletions resources/lang/lv/questionnaire.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,4 @@
'answer_to_feedback_questionnaire' => 'Atbildi uz atsauksmju anketu',
'user_feedback_given_message' => 'Paldies par atsauksmēm!',
'must_be_logged_in_prompt' => 'Lai atbildētu uz anketu, jābūt pierakstītam sistēmā.',
'create_account_prompt' => 'Tu vari izveidot kontu, lai vairāk piedalītos platformā un iegūtu zīmes!',
];
'create_account_prompt' => 'Izveidojiet kontu, lai vairāk ieguldītu platformā, nopelnītu nozīmītes un palīdzētu mums uzlabot mūsu risinājumu kvalitāti. Izveidojot kontu, jūs varat piedalīties diskusijās, balsot par risinājumiem un būt informēts par jaunākajiem notikumiem. Pievienojieties mūsu kopienai un veiciet izmaiņas!', ];
3 changes: 1 addition & 2 deletions resources/lang/nl/questionnaire.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,4 @@
'answer_to_feedback_questionnaire' => 'Beantwoord de feedback vragenlijst',
'user_feedback_given_message' => 'Dank je wel voor je feedback!',
'must_be_logged_in_prompt' => 'Je moet ingelogd zijn om de vragenlijst te beantwoorden.',
'create_account_prompt' => 'Je kan een account aanmaken om meer bij te dragen aan het platform en badges te verdienen!',
];
'create_account_prompt' => 'Maak een account aan om meer bij te dragen aan het platform, badges te verdienen en ons te helpen de kwaliteit van onze oplossingen te verbeteren. Door een account aan te maken, kunt u deelnemen aan discussies, stemmen op oplossingen en op de hoogte blijven van de laatste ontwikkelingen. Sluit u aan bij onze gemeenschap en maak een verschil!', ];
3 changes: 1 addition & 2 deletions resources/lang/pt/questionnaire.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,4 @@
'answer_to_feedback_questionnaire' => 'Responda ao questionário de feedback',
'user_feedback_given_message' => 'Obrigado pelo seu feedback!',
'must_be_logged_in_prompt' => 'Deve estar logado para responder ao questionário.',
'create_account_prompt' => 'Pode criar uma conta para contribuir mais para a plataforma e ganhar distintivos!',
];
'create_account_prompt' => 'Crie uma conta para contribuir mais com a plataforma, ganhar emblemas e nos ajudar a melhorar a qualidade de nossas soluções. Ao criar uma conta, você pode participar de discussões, votar em soluções e ficar atualizado com os últimos desenvolvimentos. Junte-se à nossa comunidade e faça a diferença!', ];
3 changes: 1 addition & 2 deletions resources/lang/ro/questionnaire.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,4 @@
'answer_to_feedback_questionnaire' => 'Răspunde la chestionarul de feedback',
'user_feedback_given_message' => 'Mulțumim pentru feedback-ul tău!',
'must_be_logged_in_prompt' => 'Trebuie să fii autentificat pentru a răspunde la chestionar.',
'create_account_prompt' => 'Poți crea un cont pentru a contribui mai mult la platformă și pentru a câștiga insigne!',
];
'create_account_prompt' => 'Creați un cont pentru a contribui mai mult la platformă, a câștiga insigne și a ne ajuta să îmbunătățim calitatea soluțiilor noastre. Prin crearea unui cont, puteți participa la discuții, vota pentru soluții și rămâneți la curent cu cele mai recente dezvoltări. Alăturați-vă comunității noastre și faceți o diferență!', ];
3 changes: 1 addition & 2 deletions resources/lang/sk/questionnaire.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,4 @@
'answer_to_feedback_questionnaire' => 'Odpovedzte na dotazník o spätných väzbách',
'user_feedback_given_message' => 'Ďakujeme za Vašu spätnú väzbu!',
'must_be_logged_in_prompt' => 'Pre zodpovedanie dotazníka musíte byť prihlásení.',
'create_account_prompt' => 'Môžete si vytvoriť účet, aby ste prispeli viac na platformu a získali odznaky!',
];
'create_account_prompt' => 'Vytvorte si účet, aby ste mohli viac prispievať na platformu, získavať odznaky a pomôcť nám zlepšiť kvalitu našich riešení. Vytvorením účtu sa môžete zúčastňovať diskusií, hlasovať za riešenia a byť informovaní o najnovších udalostiach. Pripojte sa k našej komunite a urobte rozdiel!', ];
3 changes: 1 addition & 2 deletions resources/lang/sr/questionnaire.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,4 @@
'answer_to_feedback_questionnaire' => 'Odgovorite na upitnik o povratnim informacijama',
'user_feedback_given_message' => 'Hvala Vam na povratnoj informaciji!',
'must_be_logged_in_prompt' => 'Morate biti prijavljeni da biste odgovorili na upitnik.',
'create_account_prompt' => 'Možete kreirati nalog kako biste više doprineli platformi i stekli značke!',
];
'create_account_prompt' => 'Kreirajte nalog kako biste više doprineli platformi, zaradili značke i pomogli nam da poboljšamo kvalitet naših rešenja. Kreiranjem naloga možete učestvovati u diskusijama, glasati za rešenja i biti informisani o najnovijim dešavanjima. Pridružite se našoj zajednici i napravite razliku!', ];

0 comments on commit f3c70ef

Please sign in to comment.