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 20, 2023
1 parent 943f9f1 commit c223b4f
Show file tree
Hide file tree
Showing 56 changed files with 1,191 additions and 1,696 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
87 changes: 27 additions & 60 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 @@ -235,7 +245,7 @@
"path": "footers-en.html"
},
{
"title": "Pied de page complète",
"title": "Pied de page complet",
"language": "fr",
"path": "footers-fr.html"
}
Expand All @@ -247,7 +257,7 @@
"path": "footers-en.html"
},
{
"title": "Pied de page complète",
"title": "Pied de page complet",
"language": "fr",
"path": "footers-fr.html"
},
Expand All @@ -257,7 +267,7 @@
"path": "no-footer-contextual-en.html"
},
{
"title": "Bande principale et la bande sous pied de page",
"title": "Bande principale et bande sous pied de page",
"language": "fr",
"path": "no-footer-contextual-fr.html"
},
Expand All @@ -267,7 +277,7 @@
"path": "no-footer-main-en.html"
},
{
"title": "Bande contextuelle et la bande sous pied de page",
"title": "Bande contextuelle et bande sous pied de page",
"language": "fr",
"path": "no-footer-main-fr.html"
},
Expand All @@ -287,12 +297,12 @@
"path": "only-footer-contextual-en.html"
},
{
"title": "Bande contextuelle et la bande sous pied de page sans les liens facultatifs",
"title": "Bande contextuelle et bande sous pied de page sans les liens facultatifs",
"language": "fr",
"path": "only-footer-contextual-fr.html"
},
{
"title": "Bande principale et la bande sous pied de page sans les liens facultatifs",
"title": "Bande principale et bande sous pied de page sans les liens facultatifs",
"language": "en",
"path": "only-footer-main-en.html"
},
Expand Down Expand Up @@ -333,49 +343,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": {
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.

File renamed without changes.
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>
Loading

0 comments on commit c223b4f

Please sign in to comment.