Skip to content

Commit

Permalink
Feedback: implementing Page Feedback Tool
Browse files Browse the repository at this point in the history
  • Loading branch information
Garneauma committed Mar 31, 2023
1 parent 5916424 commit 6c4ed73
Show file tree
Hide file tree
Showing 58 changed files with 1,213 additions and 1,738 deletions.
4 changes: 2 additions & 2 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ website: "https://wet-boew.github.io/GCWeb/" # URL of your public facing website
global:
lang: fr
feedbackPath:
en: "/sites/feedback/ajax/report-problem-en.html"
fr: "/sites/feedback/ajax/report-problem-fr.html"
en: "ajax/page-feedback-en.html"
fr: "ajax/page-feedback-fr.html"
contextualFooter: # Contextual footer settings
title:
fr: "Référence d'implémentation de Canada.ca"
Expand Down
76 changes: 21 additions & 55 deletions _data/sites.json
Original file line number Diff line number Diff line change
Expand Up @@ -171,39 +171,49 @@
"modified": "dct:modified"
},
"title": {
"en": "Report a problem (RAP) - Feedback",
"fr": "Signaler un problème (SUP) - Commentaires"
"en": "Feedback area",
"fr": "Zone de rétroaction"
},
"description": {
"en": "Documentation on how to use the page feedback form.",
"fr": "Documentation sur l'utilisation de formulaire de commentaires de page."
"en": "Documentation on how to use the elements of the feedback area.",
"fr": "Documentation sur l'utilisation des éléments de la zone commentaires."
},
"modified": "2022-04-26",
"modified": "2023-01-10",
"componentName": "feedback",
"status": "stable",
"pages": {
"docs": [
{
"title": "Documentation for Page feedback form",
"title": "Documentation for the feedback area",
"language": "en",
"path": "feedback-docs-en.html"
},
{
"title": "Documentation pour formulaire de commentaire de page",
"title": "Documentation pour la zone de rétroaction",
"language": "fr",
"path": "feedback-docs-fr.html"
}
],
"examples": [
{
"title": "Page feedback form",
"title": "Report a problem",
"language": "en",
"path": "feedback-en.html"
"path": "report-problem-en.html"
},
{
"title": "Formulaire de commentaire de page",
"title": "Signaler un problème",
"language": "fr",
"path": "feedback-fr.html"
"path": "report-problem-fr.html"
},
{
"title": "Page feedback tool",
"language": "en",
"path": "page-feedback-en.html"
},
{
"title": "Outil de rétroaction sur la page",
"language": "fr",
"path": "page-feedback-fr.html"
}
]
}
Expand Down Expand Up @@ -334,50 +344,6 @@
]
}
}
,{
"@context": {
"@version": 1.1,
"dct": "http://purl.org/dc/terms/",
"title": { "@id": "dct:title", "@container": "@language" },
"description": { "@id": "dct:description", "@container": "@language" },
"modified": "dct:modified"
},
"title": {
"en": "Page feedback tool",
"fr": "Outil de rétroaction sur la page"
},
"description": {
"en": "Page feedback tool for Canada.ca",
"fr": "Outil de rétroaction sur la page pour Canada.ca"
},
"modified": "2022-12-06",
"componentName": "gc-page-feedback",
"status": "stable",
"pages": {
"examples": [
{
"title": "Page feedback tool",
"language": "en",
"path": "gc-page-feedback-en.html"
},
{
"title": "Outil de rétroaction sur la page",
"language": "fr",
"path": "gc-page-feedback-fr.html"
},
{
"title": "Page feedback tool with custom parameters",
"language": "en",
"path": "gc-page-feedback-custom-en.html"
},
{
"title": "Outil de rétroaction sur la page avec paramètres personnalisés",
"language": "fr",
"path": "gc-page-feedback-custom-fr.html"
}
]
}
}
,{
"@context": {
"@version": 2.0,
Expand Down
12 changes: 0 additions & 12 deletions _includes/gc-page-feedback/gc-page-feedback.html

This file was deleted.

45 changes: 0 additions & 45 deletions _includes/page-details/footer.html

This file was deleted.

14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,10 @@
}
}
}

.gc-pft {
details {
margin-bottom: 15px;
margin-top: 0;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
*/

.gc-pft {
@extend %gcweb-print-display-none-important;
display: none !important;
}
File renamed without changes.
57 changes: 57 additions & 0 deletions sites/feedback/ajax/deprecated/report-problem-v1-en.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
<div class="row row-no-gutters">
<div class="col-sm-9 col-md-6 col-lg-5">
<details class="brdr-0">
<summary class="btn btn-default text-center">Report a problem on this page</summary>
<div class="gc-rprt-prblm">
<div class="gc-rprt-prblm-frm gc-rprt-prblm-tggl">
<form action="#">
<fieldset>
<legend><span class="field-name">Please select all that apply:</span></legend>
<div class="checkbox">
<label for="gc-rprt-prblm-f1">
<input type="checkbox" name="problem1" value="Yes" id="gc-rprt-prblm-f1" />A link, button or video is not working
</label>
<input name="problem1" type="hidden" value="No" />
</div>
<div class="checkbox">
<label for="gc-rprt-prblm-f2">
<input type="checkbox" name="problem2" value="Yes" id="gc-rprt-prblm-f2" />It has a spelling mistake
</label>
<input name="problem2" type="hidden" value="No" />
</div>
<div class="checkbox">
<label for="gc-rprt-prblm-f3">
<input type="checkbox" name="problem3" value="Yes" id="gc-rprt-prblm-f3" />Information is missing
</label>
<input name="problem3" type="hidden" value="No" />
</div>
<div class="checkbox">
<label for="gc-rprt-prblm-f4">
<input type="checkbox" name="problem4" value="Yes" id="gc-rprt-prblm-f4" />Information is outdated or wrong
</label>
<input name="problem4" type="hidden" value="No" />
</div>
<div class="checkbox">
<label for="gc-rprt-prblm-f5">
<input type="checkbox" name="problem5" value="Yes" id="gc-rprt-prblm-f5" />I can't find what I'm looking for
</label>
<input name="problem5" type="hidden" value="No" />
</div>
<div class="checkbox">
<label for="gc-rprt-prblm-f6">
<input type="checkbox" name="problem6" value="Yes" id="gc-rprt-prblm-f6" />Other issue not in this list
</label>
<input name="problem6" type="hidden" value="No" />
</div>
</fieldset>
<button type="submit" class="btn btn-primary wb-toggle" data-toggle='{"stateOff": "hide", "stateOn": "show", "selector": ".gc-rprt-prblm-tggl"}'>Submit</button>
</form>
</div>
<div class="gc-rprt-prblm-thnk gc-rprt-prblm-tggl hide">
<h3>Thank you for your help!</h3>
<p>You will not receive a reply. For enquiries, please <a href="https://www.canada.ca/en/contact.html">contact us</a>.</p>
</div>
</div>
</details>
</div>
</div>
57 changes: 57 additions & 0 deletions sites/feedback/ajax/deprecated/report-problem-v1-fr.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
<div class="row row-no-gutters">
<div class="col-sm-11 col-md-7 col-lg-6">
<details class="brdr-0">
<summary class="btn btn-default text-center">Signaler un problème ou une erreur sur cette page</summary>
<div class="gc-rprt-prblm">
<div class="gc-rprt-prblm-frm gc-rprt-prblm-tggl">
<form action="#">
<fieldset>
<legend><span class="field-name">Veuillez cocher toutes les réponses pertinentes&nbsp;:</span></legend>
<div class="checkbox">
<label for="gc-rprt-prblm-f1">
<input type="checkbox" name="problem1" value="Oui" id="gc-rprt-prblm-f1" />Un lien, un bouton ou une vidéo ne fonctionne pas
</label>
<input name="problem1" type="hidden" value="Non" />
</div>
<div class="checkbox">
<label for="gc-rprt-prblm-f2">
<input type="checkbox" name="problem2" value="Oui" id="gc-rprt-prblm-f2" />Il y a une erreur d'orthographe ou de grammaire
</label>
<input name="problem2" type="hidden" value="Non" />
</div>
<div class="checkbox">
<label for="gc-rprt-prblm-f3">
<input type="checkbox" name="problem3" value="Oui" id="gc-rprt-prblm-f3" />Les renseignements sont incomplets
</label>
<input name="problem3" type="hidden" value="Non" />
</div>
<div class="checkbox">
<label for="gc-rprt-prblm-f4">
<input type="checkbox" name="problem4" value="Oui" id="gc-rprt-prblm-f4" />L'information n'est plus à jour ou est erronée
</label>
<input name="problem4" type="hidden" value="Non" />
</div>
<div class="checkbox">
<label for="gc-rprt-prblm-f5">
<input type="checkbox" name="problem5" value="Oui" id="gc-rprt-prblm-f5" />Je n'arrive pas à trouver ce que je cherche
</label>
<input name="problem5" type="hidden" value="Non" />
</div>
<div class="checkbox">
<label for="gc-rprt-prblm-f6">
<input type="checkbox" name="problem6" value="Oui" id="gc-rprt-prblm-f6" />Autre problème qui ne figure pas sur cette liste
</label>
<input name="problem6" type="hidden" value="Non" />
</div>
</fieldset>
<button type="submit" class="btn btn-primary wb-toggle" data-toggle='{"stateOff": "hide", "stateOn": "show", "selector": ".gc-rprt-prblm-tggl"}'>Soumettre</button>
</form>
</div>
<div class="gc-rprt-prblm-thnk gc-rprt-prblm-tggl hide">
<h3>Merci de votre aide!</h3>
<p>Vous ne recevrez pas de réponse. Pour toute question, s’il vous plaît <a href="https://www.canada.ca/fr/contact.html">contactez-nous</a>.</p>
</div>
</div>
</details>
</div>
</div>
Loading

0 comments on commit 6c4ed73

Please sign in to comment.