Skip to content

Commit

Permalink
Improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
PavlosIsaris committed Dec 16, 2024
1 parent 5713802 commit ed96279
Show file tree
Hide file tree
Showing 30 changed files with 53 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -169,9 +169,9 @@ export default {
},
getQuestionnaireLoginPromptMessage() {
if (this.questionnaire.respondent_auth_required) {
return "You must be logged in in order to respond to this questionnaire";
return trans("questionnaire.must_be_logged_in_prompt");
}
return "You can create an account in order to see more questionnaires that need answering";
return trans("questionnaire.create_account_prompt");
},
initQuestionnaireDisplay() {
Survey.StylesManager.applyTheme("modern");
Expand Down Expand Up @@ -218,14 +218,15 @@ export default {
}
this.survey.onAfterRenderSurvey.add(() => {
this.loading = false;
$(".sv_complete_btn").after(
"<p class='questionnaire-disclaimer'>Your personal information (email address) will never be publicly displayed.</p>",
);
setTimeout(() => {
$("textarea").each(function () {
$(this).attr("spellcheck", true);
});
}, 3000);
$(".sv-components-container-contentBottom").after(
"<p class='questionnaire-disclaimer d-block mb-0 px-1 text-center py-3'>" + trans('common.personal_information_disclaimer') + "</p>",
);
}, 2000);
});
},
prepareQuestionnaireForViewingResponse() {
Expand Down
1 change: 1 addition & 0 deletions resources/lang/bg/common.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@
'terms_privacy' => 'Условия и Политика за поверителност',
'code_of_conduct' => 'Кодекс на поведение',
'form_fields_required' => 'Полетата, маркирани с *, са задължителни',
'personal_information_disclaimer' => 'Вашата лична информация (имейл адрес) никога няма да бъде публично показана.',
];
2 changes: 2 additions & 0 deletions resources/lang/bg/questionnaire.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,6 @@
'go_to_homepage' => 'Да! Отидете в началната страница',
'answer_to_feedback_questionnaire' => 'Отговорете на анкетата за обратна връзка',
'user_feedback_given_message' => 'Благодарим Ви за обратната връзка!',
'must_be_logged_in_prompt' => 'Трябва да сте влезли в профила си, за да отговорите на въпросника.',
'create_account_prompt' => 'Можете да създадете профил, за да участвате повече в платформата и да получите значки!',
];
1 change: 1 addition & 0 deletions resources/lang/de/common.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@
'terms_privacy' => 'Nutzungsbedingungen und Datenschutzrichtlinie',
'code_of_conduct' => 'Verhaltenskodex',
'form_fields_required' => 'Felder, die mit * markiert sind, sind erforderlich',
'personal_information_disclaimer' => 'Ihre persönlichen Informationen (E-Mail-Adresse) werden niemals öffentlich angezeigt.',
];
2 changes: 2 additions & 0 deletions resources/lang/de/questionnaire.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,6 @@
'go_to_homepage' => 'Ja! Gehen Sie zur Homepage',
'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!',
];
1 change: 1 addition & 0 deletions resources/lang/el/common.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@
'terms_privacy' => 'Όροι και Πολιτική Απορρήτου',
'code_of_conduct' => 'Κώδικας Συμπεριφοράς',
'form_fields_required' => 'Τα πεδία που σημειώνονται με * είναι υποχρεωτικά',
'personal_information_disclaimer' => 'Οι προσωπικές σας πληροφορίες (διεύθυνση email) δεν θα εμφανιστούν ποτέ δημόσια.',
];
2 changes: 2 additions & 0 deletions resources/lang/el/questionnaire.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,6 @@
'go_to_homepage' => 'Ναι! Πήγαινε στη homepage',
'answer_to_feedback_questionnaire' => 'Απάντησε στο ερωτηματολόγιο ανατροφοδότησης',
'user_feedback_given_message' => 'Σας ευχαριστούμε για την ανατροφοδότησή σας!',
'must_be_logged_in_prompt' => 'Πρέπει να είστε συνδεδεμένοι για να απαντήσετε στο ερωτηματολόγιο.',
'create_account_prompt' => 'Μπορείτε να δημιουργήσετε ένα λογαριασμό για να συνεισφέρετε περισσότερο στην πλατφόρμα και να κερδίσετε badges!',
];
1 change: 1 addition & 0 deletions resources/lang/en/common.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,5 @@
'terms_privacy' => 'Terms and Privacy Policy',
'code_of_conduct' => 'Code of Conduct',
'form_fields_required' => 'Fields marked with * are required',
'personal_information_disclaimer' => 'Your personal information (email address) will never be publicly displayed.',
];
2 changes: 2 additions & 0 deletions resources/lang/en/questionnaire.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,6 @@
'go_to_homepage' => 'Yes! Go to homepage',
'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!',
];
1 change: 1 addition & 0 deletions resources/lang/es/common.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@
'terms_privacy' => 'Términos y Política de Privacidad',
'code_of_conduct' => 'Código de Conducta',
'form_fields_required' => 'Los campos marcados con * son obligatorios',
'personal_information_disclaimer' => 'Su información personal (dirección de correo electrónico) nunca se mostrará públicamente.',
];
2 changes: 2 additions & 0 deletions resources/lang/es/questionnaire.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,6 @@
'go_to_homepage' => 'Yes! Go to homepage',
'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!',
];
1 change: 1 addition & 0 deletions resources/lang/et/common.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@
'terms_privacy' => 'Kasutustingimused ja Privaatsuspoliitika',
'code_of_conduct' => 'Käitumisjuhend',
'form_fields_required' => 'Väljad, mis on märgitud *, on kohustuslikud',
'personal_information_disclaimer' => 'Teie isiklikku teavet (e-posti aadress) ei kuvata kunagi avalikult.',
];
2 changes: 2 additions & 0 deletions resources/lang/et/questionnaire.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,6 @@
'go_to_homepage' => 'Jah! Mine avalehele',
'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!',
];
1 change: 1 addition & 0 deletions resources/lang/fr/common.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@
'terms_privacy' => 'Conditions d\'utilisation et Politique de confidentialité',
'code_of_conduct' => 'Code de conduite',
'form_fields_required' => 'Les champs marqués d\'un * sont obligatoires',
'personal_information_disclaimer' => 'Vos informations personnelles (adresse e-mail) ne seront jamais affichées publiquement.',
];
2 changes: 2 additions & 0 deletions resources/lang/fr/questionnaire.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,6 @@
'go_to_homepage' => "Oui! Aller à la page d'accueil",
'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!',
];
1 change: 1 addition & 0 deletions resources/lang/hu/common.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@
'terms_privacy' => 'Felhasználási feltételek és Adatvédelmi irányelvek',
'code_of_conduct' => 'Magatartási kódex',
'form_fields_required' => 'A *-gal jelölt mezők kötelezőek',
'personal_information_disclaimer' => 'Az Ön személyes adatait (e-mail cím) soha nem jelenítjük meg nyilvánosan.',
];
2 changes: 2 additions & 0 deletions resources/lang/hu/questionnaire.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,6 @@
'go_to_homepage' => 'Igen! Menj a főoldalra',
'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!',
];
1 change: 1 addition & 0 deletions resources/lang/it/common.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@
'terms_privacy' => 'Termini e Privacy Policy',
'code_of_conduct' => 'Codice di condotta',
'form_fields_required' => 'I campi contrassegnati con * sono obbligatori',
'personal_information_disclaimer' => 'Le tue informazioni personali (indirizzo email) non verranno mai visualizzate pubblicamente.',
];
2 changes: 2 additions & 0 deletions resources/lang/it/questionnaire.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,6 @@
'go_to_homepage' => 'Yes! Go to homepage',
'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!',
];
1 change: 1 addition & 0 deletions resources/lang/lv/common.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@
'terms_privacy' => 'Lietošanas noteikumi un Konfidencialitātes politika',
'code_of_conduct' => 'Uzvedības kodekss',
'form_fields_required' => 'Lauki, kas ir atzīmēti ar *, ir obligāti',
'personal_information_disclaimer' => 'Jūsu personīgā informācija (e-pasta adrese) nekad netiks publiski rādīta.',
];
2 changes: 2 additions & 0 deletions resources/lang/lv/questionnaire.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,6 @@
'go_to_homepage' => 'Jā! Dodieties uz mājaslapu',
'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!',
];
1 change: 1 addition & 0 deletions resources/lang/nl/common.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@
'terms_privacy' => 'Gebruiksvoorwaarden en Privacybeleid',
'code_of_conduct' => 'Gedragscode',
'form_fields_required' => 'Velden gemarkeerd met * zijn verplicht',
'personal_information_disclaimer' => 'Uw persoonlijke informatie (e-mailadres) wordt nooit openbaar weergegeven.',
];
2 changes: 2 additions & 0 deletions resources/lang/nl/questionnaire.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,6 @@
'go_to_homepage' => 'Ja! Ga naar homepagina',
'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!',
];
1 change: 1 addition & 0 deletions resources/lang/pt/common.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@
'terms_privacy' => 'Termos e Política de Privacidade',
'code_of_conduct' => 'Código de Conduta',
'form_fields_required' => 'Os campos marcados com * são obrigatórios',
'personal_information_disclaimer' => 'Suas informações pessoais (endereço de e-mail) nunca serão exibidas publicamente.',
];
2 changes: 2 additions & 0 deletions resources/lang/pt/questionnaire.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,6 @@
'go_to_homepage' => 'Sim! Vá para a página inicial',
'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!',
];
1 change: 1 addition & 0 deletions resources/lang/sk/common.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@
'terms_privacy' => 'Podmienky a ochrana osobných údajov',
'code_of_conduct' => 'Kódex správania',
'form_fields_required' => 'Pole označené * sú povinné',
'personal_information_disclaimer' => 'Vaše osobné údaje (e-mailová adresa) nikdy nebudú verejne zobrazené.',
];
2 changes: 2 additions & 0 deletions resources/lang/sk/questionnaire.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,6 @@
'go_to_homepage' => 'Yes! Go to homepage',
'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!',
];
1 change: 1 addition & 0 deletions resources/lang/sr/common.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@
'terms_privacy' => 'Uslovi korišćenja i Politika privatnosti',
'code_of_conduct' => 'Kodeks ponašanja',
'form_fields_required' => 'Polja označena sa * su obavezna',
'personal_information_disclaimer' => 'Vaši lični podaci (e-mail adresa) nikada neće biti javno prikazani.',
];
2 changes: 2 additions & 0 deletions resources/lang/sr/questionnaire.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,6 @@
'go_to_homepage' => 'Yes! Go to homepage',
'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!',
];
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
<div class="container-fluid">
<div class="row">
<div class="col-12">
<button class="btn btn-outline-primary response-btn w-100"
<button class="btn btn-outline-primary btn-slim response-btn w-100"
data-respondent-user-data="{{ $response->respondent_email . ' / ' . $response->respondent_nickname }}"
data-respondent-user-id="{{ $response->respondent_user_id }}">View
Response
Expand All @@ -94,7 +94,7 @@
</td>
@can("manage-platform-content")
<td class="text-center">
<button class="btn btn-outline-danger delete-response-btn"
<button class="btn btn-outline-danger btn-slim delete-response-btn"
data-questionnaire-response-id="{{ $response->id }}">Delete
</button>
</td>
Expand Down Expand Up @@ -181,8 +181,8 @@
<form role="form" novalidate>
<input type="hidden" name="_token" value="{{ csrf_token() }}">
<input type="hidden" name="questionnaire_response_id">
<button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
<button id="delete-response-form-btn" type="button" class="btn btn-danger">
<button type="button" class="btn btn-default btn-slim" data-dismiss="modal">Cancel</button>
<button id="delete-response-form-btn" type="button" class="btn btn-danger btn-slim">
Delete<span id="delete-response-loader" class="spinner-border spinner-border-sm ml-2 d-none"
role="status"
aria-hidden="true"></span>
Expand Down

0 comments on commit ed96279

Please sign in to comment.