diff --git a/Gruntfile.coffee b/Gruntfile.coffee index b8444e205..4eae805d8 100644 --- a/Gruntfile.coffee +++ b/Gruntfile.coffee @@ -557,12 +557,12 @@ module.exports = (grunt) -> # src: "_includes/settings.liquid" jekyllRunLocal: options: - banner: """{%- assign setting-resourcesBasePathTheme = "/<%= distFolder %>/GCWeb" -%}{%- assign setting-resourcesBasePathWetboew = "/<%= distFolder %>/wet-boew" -%}""" + banner: """{%- assign setting-resourcesBasePathTheme = "/<%= distFolder %>/GCWeb" -%}{%- assign setting-resourcesBasePathWetboew = "/<%= distFolder %>/wet-boew" -%}{%- assign setting-root = "" -%}""" position: "bottom" src: "<%= jekyllDist %>/_includes/settings.liquid" jekyllRunDemo: options: - banner: """{%- assign setting-resourcesBasePathTheme = "/wet-boew-demos/""" + grunt.option('branch') + """/<%= distFolder %>/GCWeb" -%}{%- assign setting-resourcesBasePathWetboew = "/wet-boew-demos/""" + grunt.option('branch') + """/<%= distFolder %>/wet-boew" -%}""" + banner: """{%- assign setting-resourcesBasePathTheme = "/wet-boew-demos/""" + grunt.option('branch') + """/<%= distFolder %>/GCWeb" -%}{%- assign setting-resourcesBasePathWetboew = "/wet-boew-demos/""" + grunt.option('branch') + """/<%= distFolder %>/wet-boew" -%}{%- assign setting-root = "/wet-boew-demos/""" + grunt.option('branch') + """ -%}""" position: "bottom" src: "<%= jekyllDist %>/_includes/settings.liquid" jekyllRunUnminified: diff --git a/_config.yml b/_config.yml index b80c3f89c..8709fd314 100644 --- a/_config.yml +++ b/_config.yml @@ -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: "/sites/feedback/ajax/page-feedback-en.html" + fr: "/sites/feedback/ajax/page-feedback-fr.html" # contextualFooter: # Contextual footer settings # title: # fr: "Référence d'implémentation de Canada.ca" diff --git a/_data/sites.json b/_data/sites.json index 1936294d9..fb980658a 100644 --- a/_data/sites.json +++ b/_data/sites.json @@ -181,39 +181,59 @@ "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": "Page feedback tool", "language": "en", - "path": "feedback-en.html" + "path": "page-feedback-en.html" }, { - "title": "Formulaire de commentaire de page", + "title": "Outil de rétroaction sur la page", "language": "fr", - "path": "feedback-fr.html" + "path": "page-feedback-fr.html" + }, + { + "title": "Page feedback tool with contact link", + "language": "en", + "path": "page-feedback-contact-en.html" + }, + { + "title": "Outil de rétroaction sur la page avec lien de contact", + "language": "fr", + "path": "page-feedback-contact-fr.html" + }, + { + "title": "Report a problem", + "language": "en", + "path": "report-problem-en.html" + }, + { + "title": "Signaler un problème", + "language": "fr", + "path": "report-problem-fr.html" } ] } diff --git a/components/provisional-en.html b/components/provisional-en.html index 60511cbec..6ee0430af 100644 --- a/components/provisional-en.html +++ b/components/provisional-en.html @@ -7,7 +7,7 @@ { "title": "GCWeb home", "link": "https://wet-boew.github.io/themes-dist/GCWeb/index-en.html" } ], "secondlevel": false, - "dateModified": "2021-01-19", + "dateModified": "2022-12-06", "share": "true" } --- @@ -93,9 +93,16 @@
.gc-pg-hlpfl
"Page success widget" design pattern to let users share their experience on the page.
+Feature has been revised and renamed to "page feedback tool" (.gc-pft
):
.wb-chtwzrd
Planned to eventually replace Report a problem. Uses multiple features: wb-postback
and data-wb-doaction
plugins, as well as nojs-*
styles and Font Awesome.
.gc-pg-hlpfl
"Widget succès de page" configuration de conception pour laisser les utilisateurs partager leur expérience sur la page.
+Cette fonctionnalité a été révisée et renommée « outil de rétroaction sur la page » (.gc-pft
) :
.wb-chtwzrd
Est prévu pour remplacer Signaler un problème ou une erreur sur cette page éventuellement. Utilises plusieurs fonctionnalités : les plugiciels wb-postback
et data-wb-doaction
, ainsi que les styles nojs-*
puis Font Awesome.
This page feedback form is using analytics data attributes.
-<div data-ajax-replace="ajax/report-problem-aa-en.html">
- <div class="row row-no-gutters">
- <div class="col-sm-9 col-md-6 col-lg-5">
- <a class="btn btn-default btn-block" href="https://www.canada.ca/en/report-problem.html">Report a problem on this page</a>
- </div>
- </div>
-</div>
diff --git a/sites/feedback/feedback-aa-fr.html b/sites/feedback/feedback-aa-fr.html
deleted file mode 100644
index 0de3a1b7d..000000000
--- a/sites/feedback/feedback-aa-fr.html
+++ /dev/null
@@ -1,24 +0,0 @@
----
-{
- "title": "Formulaire de commentaires de page utilisant les attributs de données analytiques",
- "language": "fr",
- "altLangPage": "feedback-aa-en.html",
- "breadcrumbs": [
- { "title": "Canada.ca", "link": "https://www.canada.ca/en.html" }
- ],
- "secondlevel": false,
- "dateModified": "2022-04-26",
- "share": "true",
- "feedbackPath": "ajax/report-problem-aa-fr.html"
-}
----
-
-Ce formulaire de commentaires de page utilise des attributs de données analytiques.
-<div data-ajax-replace="ajax/report-problem-aa-fr.html">
- <div class="row row-no-gutters">
- <div class="col-sm-11 col-md-7 col-lg-6">
- <a class="btn btn-default btn-block" href="https://www.canada.ca/fr/signaler-probleme.html">Signaler un problème ou une erreur sur cette page </a>
- </div>
- </div>
-</div>
diff --git a/sites/feedback/feedback-docs-en.html b/sites/feedback/feedback-docs-en.html
index 3b2176c3d..e697ce38e 100644
--- a/sites/feedback/feedback-docs-en.html
+++ b/sites/feedback/feedback-docs-en.html
@@ -1,397 +1,379 @@
---
{
- "title": "Page feedback (RAP) - Documentation",
+ "title": "Feedback area - Documentation",
"language": "en",
"altLangPage": "feedback-docs-fr.html",
- "breadcrumbs": [
- { "title": "Canada.ca", "link": "https://www.canada.ca/en.html" }
- ],
"secondlevel": false,
- "dateModified": "2022-04-26",
- "share": true,
- "feedbackPath": "ajax/report-problem-en.html"
+ "dateModified": "2023-01-10",
+ "share": true
}
---
Displays the Page feedback form
+Provide feedback on any given page through a form.
+There is no evaluation and report available for this component.
+ +This component supports the following variants:
All variants are comprised of two sub-components:
+To show the page feedback form, create a <div>
with the following data attribute: data-ajax-replace="ajax/report-problem-en.html"
.
For the basic HTML version, a link element should be created inside a <div>
that points to the report a problem form page: <div><a class="btn btn-default btn-block" href="https://www.canada.ca/en/report-problem.html">Report a problem on this page</a></div>
For more information about Data Ajax plugin, please visit Data Ajax documentation page
+<div class="wb-disable-allow">
with the following data attributes:
+ data-ajax-replace="ajax/page-feedback-en.html"
data-feedback-theme="[Text defining the theme of your page]"
data-feedback-section="[Text defining the section where your page resides]"
<meta name="dcterms.creator" content="[Department name]">
For more information about Data Ajax plugin, please visit Data Ajax documentation page.
-There is no evaluation and report available for this component.
+To apply this variant's optional attributes on any given page, you will need to do the following in the page's front-matter:
+feedbackData
to an object containing the following customizable strings:
+ section
: to define the section where your page resides.theme
: to define the theme of your page.For example:
+"feedbackData": {
+ "theme": "Theme",
+ "section": "Section"
+}
+
+<div class="wb-disable-allow">
with the following data attributes:
+ data-ajax-replace="ajax/page-feedback-en.html"
data-feedback-link="[Contact link text]"
data-feedback-url="[Contact link URL]"
data-feedback-theme="[Text defining the theme of your page]"
data-feedback-section="[Text defining the section where your page resides]"
<div>
that points to the report a problem form page: <div><a class="btn btn-default btn-block" href="https://www.canada.ca/en/report-problem.html">Report a problem on this page</a></div>
.<meta name="dcterms.creator" content="[Department name]">
For more information about Data Ajax plugin, please visit Data Ajax documentation page.
+ +To apply this variant on any given page, you will need to do the following in the page's front-matter:
+feedbackContact
to an object containing the following customizable strings:
+ link
: to define the contact link's text.url
: to define the contact link's URL.feedbackData
to an object containing the following customizable strings:
+ section
: to define the section where your page resides.theme
: to define the theme of your page.For example:
+"feedbackContact": {
+ "link": "Contact link",
+ "url": "https://canada.ca"
+},
+"feedbackData": {
+ "theme": "Theme",
+ "section": "Section"
+}
+
+Here is a list of changes that happened since the previous iteration:
CSS Class | -Template | -Visual rendering | -Schema | +Breaking | +
+
|
+
---|---|---|---|---|---|
Additions | +
+
|
||||
n.a. | -Version 2.0 | -n.a. | -n.a. | +Fixes | +n/a |
Template migration notes
-The html inserted by the Data Ajax plugin can be found on the following page: https://github.com/wet-boew/GCWeb/blob/master/sites/feedback/ajax/report-problem-en.html.
-<div data-ajax-replace="ajax/report-problem-en.html">
- <div class="row row-no-gutters">
- <div class="col-sm-9 col-md-6 col-lg-5">
- <a class="btn btn-default btn-block" href="https://www.canada.ca/en/report-problem.html">Report a problem on this page</a>
- </div>
- </div>
-</div>
- <details class="brdr-0">
- <summary class="btn btn-default text-center">Report a problem on this page</summary>
- <div class="well row">
- <div class="gc-rprt-prblm">
- <div class="gc-rprt-prblm-frm gc-rprt-prblm-tggl" id="wb-auto-4">
- { feedback form }
- </div>
- <div class="gc-rprt-prblm-thnk gc-rprt-prblm-tggl hide" id="wb-auto-5">
- <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>
- </div>
-</details>
- Implemented ajax files reference
+<div>
with the following data attribute: data-ajax-replace="ajax/report-problem-en.html"
.<div>
that points to the report a problem form page: <div><a class="btn btn-default btn-block" href="https://www.canada.ca/en/report-problem.html">Report a problem on this page</a></div>
.<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="well row"> - <div class="gc-rprt-prblm"> - <div class="gc-rprt-prblm-frm gc-rprt-prblm-tggl"> - <form action="/sites/feedback/feedback-form-destination.html" id="gc-rprt-prblm-form" class="wb-postback" - data-wb-postback='{ - "success": ".success-message", - "failure": ".failure-message"}' - data-wb-jsonmanager='{ - "name": "rap", - "extractor": [ - { "interface": "referer", "path": "externalReferer" }, - { "selector": "title", "path": "pageTitle" }, - { "interface": "locationHref", "path": "submissionPage" }, - { "selector": "html", "attr": "lang", "path": "lang" }, - { "selector": "meta[name=\"dcterms.creator\"]", "attr": "content", "path": "pageOwner" }, - { "selector": "meta[name=\"dcterms.subject\"]", "attr": "content", "path": "subject" } - ] - }'> - <div data-wb-json='{ - "url": "#[rap]", - "mapping": [ - { "selector": "input", "attr": "name", "value": "/@id" }, - { "selector": "input", "attr": "value", "value": "/@value" } - ] - }'> - <template> - <input type="hidden" name=" value=" /> - </template> - </div> - <fieldset> - <legend> - <span class="field-name">Please select all that apply:</span> - </legend> - <div class="checkbox"> - <label for="problem1"> - <input name="problem1" id="problem1" type="checkbox" value="Yes" >A link, button or video is not working - </label> - <input name="problem1" type="hidden" value="> - </div> - <div class="checkbox"> - <label for="problem2"> - <input name="problem2" id="problem2" type="checkbox" value="Yes" >It has a spelling mistake - </label> - <input name="problem2" type="hidden" value="> - </div> - <div class="checkbox"> - <label for="problem3"> - <input name="problem3" id="problem3" type="checkbox" value="Yes" >Information is missing - </label> - <input name="problem3" type="hidden" value="> - </div> - <div class="checkbox"> - <label for="problem4"> - <input name="problem4" id="problem4" type="checkbox" value="Yes" >Information is outdated or wrong - </label> - <input name="problem4" type="hidden" value="> - </div> - <div class="checkbox"> - <label for="problem5"> - <input name="problem5" id="problem5" type="checkbox" value="Yes" >Login error when trying to access an account - </label> - <input name="problem5" type="hidden" value="> - </div> - <div class="checkbox"> - <label for="problem11"> - <input name="problem11" id="problem11" type="checkbox" value="Yes" >I can't find what I'm looking for - </label> - <input name="problem11" type="hidden" value="> - </div> - <div class="checkbox"> - <label for="problem12"> - <input name="problem12" id="problem12" type="checkbox" value="Yes" >Other issue not in this list - </label> - <input name="problem12" type="hidden" value="> - </div> - </fieldset> - <button type="submit" class="btn btn-primary">Submit</button> - </form> - </div> - <div class="success-message 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> - <p class="failure-message hide">Something went wrong. Please submit your information via an alternative method.</p> - </div> - </div> - </details> - </div> +
avec l'attribut de données suivant :For more information about Data Ajax plugin, please visit Data Ajax documentation page.
+++ +Adobe Analytics implementation
+To implement Adobe Analytics in the Report a problem form, simply add the attribute
+data-gc-analytics-rap
to every checkbox with the value being the same as the current language's label, followed by a dash and followed by the other language's label.For example:
++<div class="checkbox"> + <label for="problem2"> + <input name="problem2" id="problem2" type="checkbox" value="Yes" data-gc-analytics-rap="It has a spelling mistake-Il y a une erreur d'orthographe ou de grammaire">It has a spelling mistake + </label> + <input name="problem2" type="hidden" value=""> </div>
Hidden input fields
+The Report a problem variant leverages JSON Manager and Data JSON to get information about the page and generate hidden input fields in the form.
+
The following tag needs to be present in the page:
+ +<meta name="dcterms.creator" content="[Department name]">
Where [Department name] is a department name from canada.ca controlled vocabulary, for example:gc:institutions/service-canada
GCWeb Jekyll specific
+To apply this variant on any given page, you will need to do the following in the page's front-matter or in the site configurations (
+_config.yml
):+
+ +- set the variable
+feedbackPath
to"ajax/report-problem-en.html"
.- set the variable
+feedbackFallback
totrue
.Code sample
+{%- highlight html -%} +++{%- endhighlight -%} ++ ++++ +Ajaxed-in content
+ {%- highlight html -%} + {%- include_relative ajax/report-problem-en.html -%} + {%- endhighlight -%} +Previous iterations
-Previous versions
-+Version 3.0
-+<form action="/sites/feedback/feedback-form-destination.html" id="gc-rprt-prblm-form" class="wb-postback" data-wb-postback="{"success":".success-message","failure":".failure-message","content":".form-content"}" > - <fieldset> - <legend> - <span class="field-name">Please select all that apply:</span> - </legend> - <div class="checkbox"> - <label for="problem1"> - <input name="problem1" id="problem1" type="checkbox" value="Yes" >A link, button or video is not working - </label> - <input name="problem1" type="hidden" value=""> - </div> - <div class="checkbox"> - <label for="problem2"> - <input name="problem2" id="problem2" type="checkbox" value="Yes" >It has a spelling mistake - </label> - <input name="problem2" type="hidden" value=""> - </div> - <div class="checkbox"> - <label for="problem3"> - <input name="problem3" id="problem3" type="checkbox" value="Yes" >Information is missing - </label> - <input name="problem3" type="hidden" value=""> - </div> - <div class="checkbox"> - <label for="problem4"> - <input name="problem4" id="problem4" type="checkbox" value="Yes" >Information is outdated or wrong - </label> - <input name="problem4" type="hidden" value=""> - </div> - <div class="checkbox"> - <label for="problem5"> - <input name="problem5" id="problem5" type="checkbox" value="Yes" >Login error when trying to access an account - </label> - <input name="problem5" type="hidden" value=""> - </div> - <div class="checkbox"> - <label for="problem11"> - <input name="problem11" id="problem11" type="checkbox" value="Yes" >I can't find what I'm looking for - </label> - <input name="problem11" type="hidden" value=""> - </div> - <div class="checkbox"> - <label for="problem12"> - <input name="problem12" id="problem12" type="checkbox" value="Yes" >Other issue not in this list - </label> - <input name="problem12" type="hidden" value=""> - </div> - </fieldset> - <strong><button type="submit" class="btn btn-primary">Submit</button></strong> - </form> - <div class="success-message 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> - <p class="failure-message hide">Something went wrong. Please submit your information via an alternative method.</p>
Iteration 4
+Here is a list of changes that happened since the previous iteration:
++
+ ++ +Breaking ++ ++
+- Leveraging JSON Manager Extractor and Data JSON to generate hidden input fields
++ +Additions +n/a ++ +Fixes +n/a +Code sample
+ {%- highlight html -%} +++ {%- endhighlight -%} ++ +++Ajaxed-in content
+ {%- highlight html -%} + {%- include_relative ajax/deprecated/report-problem-v4-en.html -%} + {%- endhighlight -%} +-+ +Version 2.0
-+<form action="/sites/feedback/feedback-form-destination.html" id="gc-rprt-prblm-form" class="wb-postback" data-wb-postback="{"success":".success-message","failure":".failure-message","content":".form-content"}" > - <fieldset> - <legend> - <span class="field-name">Please select all that apply:</span> - </legend> - <div class="checkbox"> - <label for="problem1"> - <input name="problem1" id="problem1" type="checkbox" value="Yes" >A link, button or video is not working - </label> - <input name="problem1" type="hidden" value=""> - </div> - <div class="checkbox"> - <label for="problem2"> - <input name="problem2" id="problem2" type="checkbox" value="Yes" >It has a spelling mistake - </label> - <input name="problem2" type="hidden" value=""> - </div> - <div class="checkbox"> - <label for="problem3"> - <input name="problem3" id="problem3" type="checkbox" value="Yes" >Information is missing - </label> - <input name="problem3" type="hidden" value=""> - </div> - <div class="checkbox"> - <label for="problem4"> - <input name="problem4" id="problem4" type="checkbox" value="Yes" >Information is outdated or wrong - </label> - <input name="problem4" type="hidden" value=""> - </div> - <div class="checkbox"> - <label for="problem5"> - <input name="problem5" id="problem5" type="checkbox" value="Yes" >Login error when trying to access an account (e.g. My Service Canada Account) - </label> - <input name="problem5" type="hidden" value=""> - </div> - <ul> - <li class="checkbox"> - <label for="problem6a"> - <input name="problem6" id="problem6a" type="checkbox" value="Yes" >GC Key access - </label> - <input name="problem6" type="hidden" value=""> - </li> - <li class="checkbox"> - <label for="problem7"> - <input name="problem7" id="problem7" type="checkbox" value="Yes" >SecureKey Concierge (Banking Credential) access - </label> - <input name="problem7" type="hidden" value=""> - </li> - <li class="checkbox"> - <label for="problem8"> - <input name="problem8" id="problem8" type="checkbox" value="Yes" >Personal Access Code (PAC) problems or EI Access Code (AC) problems - </label> - <input name="problem8" type="hidden" value=""> - </li> - <li class="checkbox"> - <label for="problem9"> - <input name="problem9" id="problem9" type="checkbox" value="Yes" >Social Insurance Number (SIN) validation problems - </label> - <input name="problem9" type="hidden" value=""> - </li> - <li class="checkbox"> - <label for="problem10"> - <input name="problem10" id="problem10" type="checkbox" value="Yes" >Other login error not in this list - </label> - <input name="problem10" type="hidden" value=""> - </li> - </ul> - <div class="checkbox"> - <label for="problem11"> - <input name="problem11" id="problem11" type="checkbox" value="Yes" >I can't find what I'm looking for - </label> - <input name="problem11" type="hidden" value=""> - </div> - <div class="checkbox"> - <label for="problem12"> - <input name="problem12" id="problem12" type="checkbox" value="Yes" >Other issue not in this list - </label> - <input name="problem12" type="hidden" value=""> - </div> - </fieldset> - <strong><button type="submit" class="btn btn-primary">Submit</button></strong> - </form> - <div class="success-message 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> - <p class="failure-message hide">Something went wrong. Please submit your information via an alternative method.</p>
Iteration 3
+Here is a list of changes that happened since the previous iteration:
++
+ ++ +Breaking ++ ++
+- Removed login error sub-options.
+- Renamed login error option.
++ +Additions +n/a ++ +Fixes +n/a +Code sample
+ {%- highlight html -%} +++ {%- endhighlight -%} ++ +++Ajaxed-in content
+ {%- highlight html -%} + {%- include_relative ajax/deprecated/report-problem-v3-en.html -%} + {%- endhighlight -%} +-+Version 1.0
-+<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>
Iteration 2
+Here is a list of changes that happened since the previous iteration:
++
+ ++ +Breaking ++ ++
+- Rework of the template to use data-ajax. Includes fallback for basic HTML version.
+- Updated form: +
++
+- Now implements wb-postback for form validation and no longer uses data-toggle on submit.
+- Added login error options (problem 5 to problem 10).
+- Added error and success messages.
++ +Additions +n/a ++ +Fixes +n/a +Code sample
+ {%- highlight html -%} +++ {%- endhighlight -%} ++ +++Ajaxed-in content
+ {%- highlight html -%} + {%- include_relative ajax/deprecated/report-problem-v2-en.html -%} + {%- endhighlight -%} ++diff --git a/sites/feedback/feedback-docs-fr.html b/sites/feedback/feedback-docs-fr.html index e2f445223..d80d1d531 100644 --- a/sites/feedback/feedback-docs-fr.html +++ b/sites/feedback/feedback-docs-fr.html @@ -1,396 +1,377 @@ --- { - "title": "Commentaires de page (SUP) - Documentation", + "title": "Zone de rétroaction - Documentation", "language": "fr", "altLangPage": "feedback-docs-en.html", - "breadcrumbs": [ - { "title": "Canada.ca", "link": "https://www.canada.ca/en.html" } - ], "secondlevel": false, - "dateModified": "2022-04-26", - "share": "true", - "feedbackPath": "ajax/report-problem-fr.html" - + "dateModified": "2023-01-10", + "share": "true" } --- -Iteration 1
+Code sample
+ {%- highlight html -%} + {%- include_relative ajax/deprecated/report-problem-v1-en.html -%} + {%- endhighlight -%}-
- Statut
- Stable
+- Version
+- 5.0.0
- Type
-- Fonctionnalité du site Canada.ca
-- Dernière révision
-- 2022-04-26
+- Fonctionnalité globale de site de Canada.ca
Objectif
-Affiche le formulaire de commentaires sur la page
+Introduction
+Objectif
+Obtenir une rétroaction des utilisateurs sur une page donnée via un formulaire.
+ +Évaluation et rapport
+Il n'y a pas d'évaluation ni de rapport disponible pour cette composante.
+ +Orientation
+ + +Variantes
+Ce composant prend en charge les variantes suivantes :
++
+- Outil de rétroaction sur la page (par défaut)
+- Outil de rétroaction sur la page avec lien de contact
+- Signaler un problème sur cette page (SUP)
+++ +Note
+Toutes les variantes sont composées de deux sous-composants :
++
+- Le premier est utilisé pour l'intégration sur la page.
+- Le second est le formulaire qui est inséré dynamiquement via un appel Ajax. Ce sous-composant est par contre hors de portée de l'API.
+Variante 1: Outil de rétroaction sur la page (par défaut) Provisoire
+Itération 1
+ +Exemple(s) pratique(s)
+ + +Comment mettre en œuvre
++
+- Pour afficher le formulaire de rétroaction sur la page, créez un
+<div>
avec les attributs suivants : ++
+- Obligatoire :
+data-ajax-replace="ajax/page-feedback-en.html"
- Optionnel :
+data-feedback-theme="[Texte définissant le thème de votre page]"
- Optionnel :
+data-feedback-section="[Texte définissant la section où réside votre page]"
- Pour la version HTML de base, un lien doit être créé dans un
+<div>
qui pointe vers la page du formulaire de signalement d'un problème :<div><a class="btn btn-default btn-block" href="https://www.canada.ca/fr/signaler-probleme.html">Signaler un problème sur cette page</a></div>
.- De plus, vous pouvez définir les métadonnées suivantes:
+<meta name="dcterms.creator" content="[Nom du département]">
Pour plus d'informations sur le plugin Data Ajax, veuillez visiter la page de documentation Data Ajax.
-Exemple pratique
+Spécifique à GCWeb Jekyll
+Pour appliquer les attributs facultatifs de cette variante sur une page donnée, vous devrez procéder comme suit dans le front-matter de la page :
-
+- Exemple de formulaire de commentaires de page
-- Exemple de formulaire de commentaires de page en utilisant les attributs de données analytiques
-- Exemple de formulaire de commentaires de page version 1
+- Définissez la variable
+feedbackData
à un objet contenant les chaînes de caractères suivantes : ++
+- +
section
: pour définir la section où réside votre page.- +
theme
: pour définir le thème de votre page.Par exemple :
++ +"feedbackData": { + "theme": "Thème", + "section": "Section" +}
Exemple de code
+{%- highlight html -%} + +{%- endhighlight -%} +++Contenu ajouté via Ajax
+ {%- highlight html -%} + {%- include_relative ajax/page-feedback-fr.html -%} + {%- endhighlight -%} +Variante 2: Outil de rétroaction sur la page avec lien de contact Provisoire
+Itération 1
+ +Exemple(s) pratique(s)
+ -Comment mettre en œuvre
+Comment mettre en œuvre
-
- -
Pour afficher le formulaire de commentaires de page, créez une code><div>
data-ajax-replace="ajax/report-problem-fr.html"
. -Pour la version HTML simplifiée, un élément de lien doit être créé qui pointe vers la page du formulaire de signalement d'un problème :
-<a class="btn btn-default btn-block" href="https://www.canada.ca/fr/signaler-probleme.html">Signaler un problème sur cette page</a>
Pour plus d'informations sur le plugiciel Data Ajax, veuillez visiter Page de documentation Data Ajax
+
<div>
avec les attributs suivants :
+ data-ajax-replace="ajax/page-feedback-en.html"
data-feedback-link="[Texte du lien de contact]"
data-feedback-url="[URL du lien de contact]"
data-feedback-theme="[Texte définissant le thème de votre page]"
data-feedback-section="[Texte définissant la section où réside votre page]"
<div>
qui pointe vers la page du formulaire de signalement d'un problème : <div><a class="btn btn-default btn-block" href="https://www.canada.ca/fr/signaler-probleme.html">Signaler un problème sur cette page</a></div>
.<meta name="dcterms.creator" content="[Nom du département]">
Pour plus d'informations sur le plugin Data Ajax, veuillez visiter la page de documentation Data Ajax.
-Il n'y a pas d'évaluation ni de rapport disponible pour ce composant.
+Pour appliquer cette variante sur une page donnée, vous devrez faire ce qui suit dans l'en-tête de la page :
+feedbackContact
à un objet contenant les chaînes personnalisables suivantes:
+ link
: pour définir le texte du lien de contact.url
: pour définir l'URL du lien de contact.feedbackData
à un objet contenant les chaînes de caractères suivantes:
+ section
: pour définir la section où réside votre page.theme
: pour définir le thème de votre page.Par exemple :
+"feedbackContact": {
+ "link": "Lien de contact",
+ "url": "https://canada.ca/fr"
+},
+"feedbackData": {
+ "theme": "Thème",
+ "section": "Section"
+}
-Majeurs | +
+
|
+ ||||
---|---|---|---|---|---|
Classe CSS | -Gabarit | -Rendu visuel | -Schéma | +Additions | +
+
|
n.d. | -Version 2.0 | -n.d. | -n.d. | +Correctifs | +n/a |
Notes sur la migration du gabarit
-Le html inséré par le plugiciel Data Ajax se trouve sur la page suivante : https://github.com/wet-boew/GCWeb/blob/master/sites/feedback/ajax/report-problem-fr.html.
-<div data-ajax-replace="ajax/report-problem-fr.html">
- <div class="row row-no-gutters">
- <div class="col-sm-11 col-md-7 col-lg-6">
- <a class="btn btn-default btn-block" href="https://www.canada.ca/fr/signaler-probleme.html">Signaler un problème ou une erreur sur cette page </a>
- </div>
- </div>
-</div>
- <details class="brdr-0">
- <summary class="btn btn-default text-center">Signaler un problème sur cette page</summary>
- <div class="well row">
- <div class="gc-rprt-prblm">
- <div class="gc-rprt-prblm-frm gc-rprt-prblm-tggl" >
- { formulaire de commentaires }
- </div>
- <div class="gc-rprt-prblm-thnk gc-rprt-prblm-tggl hide" >
- <h3>Merci pour votre aide !</h3>
- <p>Vous ne recevrez pas de réponse. Pour toute demande, veuillez <a href="https://www.canada.ca/fr/contact.html">nous contacter</a>.</p>
- </div>
- </div>
- </div>
-</details>
- Référence des fichiers ajax implémentés
+<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="well row">
- <div class="gc-rprt-prblm">
- <div class="gc-rprt-prblm-frm gc-rprt-prblm-tggl">
- <form action="/sites/feedback/feedback-form-destination.html" id="gc-rprt-prblm-form" class="wb-postback"
- data-wb-postback='{
- "success": ".success-message",
- "failure": ".failure-message"}'
- data-wb-jsonmanager='{
- "name": "rap",
- "extractor": [
- { "interface": "referer", "path": "externalReferer" },
- { "selector": "title", "path": "pageTitle" },
- { "interface": "locationHref", "path": "submissionPage" },
- { "selector": "html", "attr": "lang", "path": "lang" },
- { "selector": "meta[name=\"dcterms.creator\"]", "attr": "content", "path": "pageOwner" },
- { "selector": "meta[name=\"dcterms.subject\"]", "attr": "content", "path": "subject" }
- ]
- }'>
- <div data-wb-json='{
- "url": "#[rap]",
- "mapping": [
- { "selector": "input", "attr": "name", "value": "/@id" },
- { "selector": "input", "attr": "value", "value": "/@value" }
- ]
- }'>
- <template>
- <input type="hidden" name=" value=" />
- </template>
- </div>
- <fieldset>
- <legend>
- <span class="field-name">Veuillez sélectionner toutes les cases qui s'appliquent :</span>
- </legend>
- <div class="checkbox">
- <label for="problem1">
- <input name="problem1" id="problem1" type="checkbox" value="Yes" >Un lien, un bouton ou une vidéo ne fonctionne pas
- </label>
- <input name="problem1" type="hidden" value=">
- </div>
- <div class="checkbox">
- <label for="problem2">
- <input name="problem2" id="problem2" type="checkbox" value="Yes" >Il y a une erreur d'orthographe ou de grammaire
- </label>
- <input name="problem2" type="hidden" value=">
- </div>
- <div class="checkbox">
- <label for="problem3">
- <input name="problem3" id="problem3" type="checkbox" value="Yes" >Les renseignements sont incomplets
- </label>
- <input name="problem3" type="hidden" value=">
- </div>
- <div class="checkbox">
- <label for="problem4">
- <input name="problem4" id="problem4" type="checkbox" value="Yes" >L'information n'est plus à jour ou est erronée
- </label>
- <input name="problem4" type="hidden" value=">
- </div>
- <div class="checkbox">
- <label for="problem5">
- <input name="problem5" id="problem5" type="checkbox" value="Yes" >Message d'erreur à l'ouverture de la session lorsque je tente d'accéder à un compte
- </label>
- <input name="problem5" type="hidden" value=">
- </div>
- <div class="checkbox">
- <label for="problem11">
- <input name="problem11" id="problem11" type="checkbox" value="Yes" >Je n'arrive pas à trouver ce que je cherche
- </label>
- <input name="problem11" type="hidden" value=">
- </div>
- <div class="checkbox">
- <label for="problem12">
- <input name="problem12" id="problem12" type="checkbox" value="Yes" >Autre problème qui ne figure pas sur cette liste
- </label>
- <input name="problem12" type="hidden" value=">
- </div>
- </fieldset>
- <button type="submit" class="btn btn-primary">Soumettre</button>
- </form>
- </div>
- <div class="success-message 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>
- <p class="failure-message hide">Nous somme désolé, un problème est survenu lors de la soumission de votre formulaire. Veuillez nous envoyer l'information via une méthode alternative.</p>
- </div>
- </div>
- </details>
- </div>
-</div>
-
+<div>
avec l'attribut suivant : data-ajax-replace="ajax/report-problem-fr.html"
.<div>
qui pointe vers la page du formulaire de signalement d'un problème : <div><a class="btn btn-default btn-block" href="https://www.canada.ca/fr/signaler-probleme.html">Signaler un problème sur cette page</a></div>
.Pour plus d'informations sur le plugin Data Ajax, veuillez visiter la page de documentation Data Ajax.
+Pour implémenter Adobe Analytics dans le formulaire Signaler un problème, ajoutez simplement l'attribut data-gc-analytics-rap
à chaque case à cocher avec la valeur étant la même que le "label" de la langue actuelle, suivie d'un tiret et suivi par le "label" de l'autre langue.
Par exemple :
+<div class="checkbox">
+ <label for="problem2">
+ <input name="problem2" id="problem2" type="checkbox" value="Yes" data-gc-analytics-rap="Il y a une erreur d'orthographe ou de grammaire-It has a spelling mistake">Il y a une erreur d'orthographe ou de grammaire
+ </label>
+ <input name="problem2" type="hidden" value="">
+</div>
+La variante Signaler un problème utilise JSON Manager et Data JSON pour obtenir des informations sur la page et générer des champs de saisie masqués dans le formulaire.
+
La balise suivante doit être présente dans la page : <meta name="author" content="[Nom du service]">
Où [Nom du ministère] est un nom de ministère du vocabulaire contrôlé de canada.ca, par exemple : gc:institutions/service-canada
Pour appliquer cette variante sur une page donnée, vous devrez faire ce qui suit dans l'en-tête de la page ou dans les configurations du site (_config.yml
).
feedbackPath
à "ajax/report-problem-fr.html"
.feedbackFallback
à true
.<form action="/sites/feedback/feedback-form-destination.html" id="gc-rprt-prblm-form" class="wb-postback" data-wb-postback="{"success":".success-message","failure":".failure-message","content":".form-content"}">
- <fieldset>
- <legend>
- <span class="field-name">Veuillez sélectionner toutes les cases qui s'appliquent :</span>
- </legend>
- <div class="checkbox">
- <label for="problem1">
- <input name="problem1" id="problem1" type="checkbox" value="Yes" >Un lien, un bouton ou une vidéo ne fonctionne pas
- </label>
- <input name="problem1" type="hidden" value="">
- </div>
- <div class="checkbox">
- <label for="problem2">
- <input name="problem2" id="problem2" type="checkbox" value="Yes" >Il y a une erreur d'orthographe ou de grammaire
- </label>
- <input name="problem2" type="hidden" value="">
- </div>
- <div class="checkbox">
- <label for="problem3">
- <input name="problem3" id="problem3" type="checkbox" value="Yes" >Les renseignements sont incomplets
- </label>
- <input name="problem3" type="hidden" value="">
- </div>
- <div class="checkbox">
- <label for="problem4">
- <input name="problem4" id="problem4" type="checkbox" value="Yes" >L'information n'est plus à jour ou est erronée
- </label>
- <input name="problem4" type="hidden" value="">
- </div>
- <div class="checkbox">
- <label for="problem5">
- <input name="problem5" id="problem5" type="checkbox" value="Yes" >Message d'erreur à l'ouverture de la session lorsque je tente d'accéder à un compte
- </label>
- <input name="problem5" type="hidden" value="">
- </div>
- <div class="checkbox">
- <label for="problem11">
- <input name="problem11" id="problem11" type="checkbox" value="Yes" >Je n'arrive pas à trouver ce que je cherche
- </label>
- <input name="problem11" type="hidden" value="">
- </div>
- <div class="checkbox">
- <label for="problem12">
- <input name="problem12" id="problem12" type="checkbox" value="Yes" >Autre problème qui ne figure pas sur cette liste
- </label>
- <input name="problem12" type="hidden" value="">
- </div>
- </fieldset>
- <strong><button type="submit" class="btn btn-primary">Soumettre</button></strong>
-</form><div class="success-message 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>
-<p class="failure-message hide">Nous somme désolé, un problème est survenu lors de la soumission de votre formulaire. Veuillez nous envoyer l'information via une méthode alternative.</p>
+ Voici une liste des changements qui se sont produits depuis l'itération précédente :
+Majeurs | +
+
|
+
---|---|
Additions | +n/a | +
Correctifs | +n/a | +
<form action="/sites/feedback/feedback-form-destination.html" id="gc-rprt-prblm-form" class="wb-postback" data-wb-postback="{"success":".success-message","failure":".failure-message","content":".form-content"}" >
- <fieldset>
- <legend>
- <span class="field-name">Veuillez sélectionner toutes les cases qui s'appliquent :</span>
- </legend>
- <div class="checkbox">
- <label for="problem1">
- <input name="problem1" id="problem1" type="checkbox" value="Yes" >Un lien, un bouton ou une vidéo ne fonctionne pas
- </label>
- <input name="problem1" type="hidden" value="">
- </div>
- <div class="checkbox">
- <label for="problem2">
- <input name="problem2" id="problem2" type="checkbox" value="Yes" >Il y a une erreur d'orthographe ou de grammaire
- </label>
- <input name="problem2" type="hidden" value="">
- </div>
- <div class="checkbox">
- <label for="problem3">
- <input name="problem3" id="problem3" type="checkbox" value="Yes" >Les renseignements sont incomplets
- </label>
- <input name="problem3" type="hidden" value="">
- </div>
- <div class="checkbox">
- <label for="problem4">
- <input name="problem4" id="problem4" type="checkbox" value="Yes" >L'information n'est plus à jour ou est erronée
- </label>
- <input name="problem4" type="hidden" value="">
- </div>
- <div class="checkbox">
- <label for="problem5">
- <input name="problem5" id="problem5" type="checkbox" value="Yes" >Message d'erreur à l'ouverture de la session lorsque je tente d'accéder à un compte (ex. Mon dossier Service Canada)
- </label>
- <input name="problem5" type="hidden" value="">
- </div>
- <ul>
- <li class="checkbox">
- <label for="problem6a">
- <input name="problem6" id="problem6a" type="checkbox" value="Yes" >Accès CléGC
- </label>
- <input name="problem6" type="hidden" value="">
- </li>
- <li class="checkbox">
- <label for="problem7">
- <input name="problem7" id="problem7" type="checkbox" value="Yes" >Accès SecureKey Service de Concierge (justificatifs d'identité bancaires)
- </label>
- <input name="problem7" type="hidden" value="">
- </li>
- <li class="checkbox">
- <label for="problem8">
- <input name="problem8" id="problem8" type="checkbox" value="Yes" >Problème avec le Code d'accès personnel (CAP) ou avec le Code d'accès (CA) de l'assurance emploi
- </label>
- <input name="problem8" type="hidden" value="">
- </li>
- <li class="checkbox">
- <label for="problem9">
- <input name="problem9" id="problem9" type="checkbox" value="Yes" >Problème lié à la validation du numéro d'assurance sociale (NAS)
- </label>
- <input name="problem9" type="hidden" value="">
- </li>
- <li class="checkbox">
- <label for="problem10">
- <input name="problem10" id="problem10" type="checkbox" value="Yes" >Autre erreur lors de l'ouverture de session qui ne figure pas sur cette liste
- </label>
- <input name="problem10" type="hidden" value="">
- </li>
- </ul>
- <div class="checkbox">
- <label for="problem11">
- <input name="problem11" id="problem11" type="checkbox" value="Yes" >Je n'arrive pas à trouver ce que je cherche
- </label>
- <input name="problem11" type="hidden" value="">
- </div>
- <div class="checkbox">
- <label for="problem12">
- <input name="problem12" id="problem12" type="checkbox" value="Yes" >Autre problème qui ne figure pas sur cette liste
- </label>
- <input name="problem12" type="hidden" value="">
- </div>
- </fieldset>
- <strong><button type="submit" class="btn btn-primary">Soumettre</button></strong>
-</form><div class="success-message 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>
-<p class="failure-message hide">Nous somme désolé, un problème est survenu lors de la soumission de votre formulaire. Veuillez nous envoyer l'information via une méthode alternative.</p>
+ Voici une liste des changements qui se sont produits depuis l'itération précédente :
+Majeurs | +
+
|
+
---|---|
Additions | +n/a | +
Correctifs | +n/a | +
<form action="#">
- <fieldset>
- <legend><span class="field-name">Veuillez cocher toutes les réponses pertinentes :</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>
+ Here is a list of changes that happened since the previous itération:
+Majeurs | +
+
|
+
---|---|
Additions | +n/a | +
Correctifs | +n/a | +
This page feedback form leverage the version 2 of the page-details container which leverage the data ajax plugin.
-Data ajax replace links:
-The version 2 of the page-details container leverage a progressive enhancement design and that is why a link element need be created to point at the report a problem form page: <a class="btn btn-default btn-block" href="https://www.canada.ca/en/report-problem.html">Report a problem on this page</a>
. You can experience that fallback through the basic HTML version mode.
<div data-ajax-replace="ajax/report-problem-en.html">
- <div class="row row-no-gutters">
- <div class="col-sm-9 col-md-6 col-lg-5">
- <a class="btn btn-default btn-block" href="https://www.canada.ca/en/report-problem.html">Report a problem on this page</a>
- </div>
- </div>
-</div>
diff --git a/sites/feedback/feedback-fr.html b/sites/feedback/feedback-fr.html
deleted file mode 100644
index fe2f3c9ba..000000000
--- a/sites/feedback/feedback-fr.html
+++ /dev/null
@@ -1,31 +0,0 @@
----
-{
- "title": "Formulaire de commentaires de la page",
- "language": "fr",
- "altLangPage": "feedback-en.html",
- "breadcrumbs": [
- { "title": "Canada.ca", "link": "https://www.canada.ca/en.html" }
- ],
- "secondlevel": false,
- "dateModified": "2022-04-26",
- "share": "true",
- "feedbackPath": "ajax/report-problem-fr.html"
-}
----
-
-Ce formulaire de commentaires de page exploite la version 2 du conteneur page-details qui exploite le plugiciel data ajax.
-Data ajax remplace les liens :
-La version 2 du conteneur page-details implique une conception d'amélioration progressive et c'est pourquoi un lien doit être créé pour pointer vers la page du formulaire de signalement d'un problème : <a class="btn btn-default btn-block" href="https://www.canada.ca/fr/signaler-probleme.html">Signaler un problème sur cette page</a>
. Vous pouvez faire l'expérience de ce repli via le mode de version HTML de base.
<div data-ajax-replace="ajax/report-problem-fr.html">
- <div class="row row-no-gutters">
- <div class="col-sm-11 col-md-7 col-lg-6">
- <a class="btn btn-default btn-block" href="https://www.canada.ca/fr/signaler-probleme.html">Signaler un problème ou une erreur sur cette page </a>
- </div>
- </div>
-</div>
diff --git a/sites/feedback/includes/feedback.html b/sites/feedback/includes/feedback.html
index 7d15638f0..13d38aa4b 100644
--- a/sites/feedback/includes/feedback.html
+++ b/sites/feedback/includes/feedback.html
@@ -2,21 +2,38 @@
{%- if page.feedbackPath -%}
{{ page.feedbackPath }}
{%- elsif site.global.feedbackPath and site.global.feedbackPath.first -%}
- {{ site.global.feedbackPath[ i18nText-lang ] | relative_url }}
+ {{ setting-root }}{{ site.global.feedbackPath[ i18nText-lang ] }}
+ {%- endif -%}
+{%- endcapture -%}
+{%- capture feedbackFallback -%}
+ {%- if page.feedbackFallback -%}
+ {{ page.feedbackFallback }}
+ {%- elsif site.global.feedbackFallback -%}
+ {{ site.global.feedbackFallback }}
{%- endif -%}
{%- endcapture -%}
-