|
| 1 | +<div data-wb-jsonmanager='{ |
| 2 | + "url": "pft-test.json", |
| 3 | + "name": "service", |
| 4 | + "patches": [ |
| 5 | + { "op": "test", "path": "/isPFTActive", "value": false }, |
| 6 | + { "op": "add", "path": "/unhideme", "value": "hidden" } |
| 7 | + ] |
| 8 | +}'></div> |
| 9 | + |
| 10 | +<div id="gc-pft" class="row wb-disable-allow" data-wb-jsonmanager='{ |
| 11 | + "name": "gc-pft", |
| 12 | + "extractor": [ |
| 13 | + { "selector": "title", "path": "pageData/pageTitle" }, |
| 14 | + { "selector": "html", "attr": "lang", "path": "pageData/language" }, |
| 15 | + { "interface": "locationHref", "path": "pageData/submissionPage" }, |
| 16 | + { "selector": "#wb-lng ul li:first-child a[lang]", "attr": "href", "path": "pageData/oppositelang" }, |
| 17 | + { "selector": "[data-feedback-theme]", "attr": "data-feedback-theme", "path": "pageData/themeopt" }, |
| 18 | + { "selector": "[data-feedback-section]", "attr": "data-feedback-section", "path": "pageData/sectionopt" }, |
| 19 | + { "selector": "meta[name=\"dcterms.creator\"]", "attr": "content", "path": "pageData/institutionopt" }, |
| 20 | + { "selector": "[data-feedback-link]", "attr": "data-feedback-link", "path": "contact/link" }, |
| 21 | + { "selector": "[data-feedback-url]", "attr": "data-feedback-url", "path": "contact/url" } |
| 22 | + ] |
| 23 | +}'> |
| 24 | + <div class="col-sm-10 col-md-9 col-lg-8 hidden" data-wb-json='{ |
| 25 | + "url": "#[service]/unhideme", |
| 26 | + "type": "removeclass" |
| 27 | + }'> |
| 28 | + <section class="well mrgn-bttm-0"> |
| 29 | + <h3 class="wb-inv">Give feedback about this page</h3> |
| 30 | + <form action="https://feedback-retroaction.canada.ca/api/QueueProblemForm" method="post" class="wb-postback wb-disable-allow" data-wb-postback='{"success":".gc-pft-thnk"}'> |
| 31 | + <div class="wb-disable-allow" data-wb-json='{ |
| 32 | + "url": "#[gc-pft]/pageData", |
| 33 | + "mapping": [ |
| 34 | + { "selector": "input", "attr": "name", "value": "/@id" }, |
| 35 | + { "selector": "input", "attr": "value", "value": "/@value" } |
| 36 | + ] |
| 37 | + }'> |
| 38 | + <template> |
| 39 | + <input type="hidden" name="" value="" /> |
| 40 | + </template> |
| 41 | + </div> |
| 42 | + <fieldset class="gc-pft-btns chkbxrdio-grp row row-no-gutters d-sm-flex flex-sm-wrap align-items-sm-center"> |
| 43 | + <legend class="col-xs-12 col-sm-7 nojs-col-sm-12 col-md-9 col-lg-8 text-center text-sm-left nojs-text-left mrgn-tp-sm pr-sm-3"><span class="field-name">Did you find what you were looking for?</span></legend> |
| 44 | + <div class="col-xs-12 nojs-show"> |
| 45 | + <button name="helpful" value="Yes-Oui" class="btn btn-primary" aria-describedby="gc-pft-why">Yes</button> |
| 46 | + </div> |
| 47 | + <div class="col-xs-12 col-sm-5 col-md-3 col-lg-4 text-center text-sm-right nojs-hide"> |
| 48 | + <button name="helpful" value="Yes-Oui" class="btn btn-primary">Yes</button> |
| 49 | + <button class="btn btn-primary mrgn-lft-sm" data-wb-doaction='[ |
| 50 | + {"action":"removeClass","source":".gc-pft-no","class":"nojs-show"}, |
| 51 | + {"action":"addClass","source":".gc-pft-btns","class":"hide"} |
| 52 | + ]'>No</button> |
| 53 | + </div> |
| 54 | + </fieldset> |
| 55 | + <div class="gc-pft-no nojs-show"> |
| 56 | + <p id="gc-pft-why" class="nojs-show mrgn-tp-lg mrgn-bttm-md">If not, tell us why below:</p> |
| 57 | + <p class="nojs-hide wb-inv" aria-live="polite">Tell us why below:</p> |
| 58 | + <div class="wb-disable-allow" data-wb-json='{ |
| 59 | + "url": "#[gc-pft]/contact", |
| 60 | + "streamline": "true", |
| 61 | + "mapping": [ |
| 62 | + { |
| 63 | + "template": "[data-contact-template]", |
| 64 | + "test": "fn:isLiteral", |
| 65 | + "assess": "/url", |
| 66 | + "mapping": [ |
| 67 | + { "selector": "a", "type": "attr", "attr": "href", "value": "/url" }, |
| 68 | + { "selector": "a", "value": "/link" } |
| 69 | + ] |
| 70 | + } |
| 71 | + ] |
| 72 | + }'> |
| 73 | + <template data-contact-template> |
| 74 | + <details> |
| 75 | + <summary>Need urgent help with a problem? Contact us</summary> |
| 76 | + <p class="mrgn-bttm-0 mrgn-tp-md fnt-nrml"> |
| 77 | + <a href="#"></a> |
| 78 | + </p> |
| 79 | + </details> |
| 80 | + </template> |
| 81 | + </div> |
| 82 | + <div class="form-group"> |
| 83 | + <label id="gc-pft-prblm-label" for="gc-pft-prblm" class="mrgn-bttm-0"><span class="field-name">Please provide more details</span></label> |
| 84 | + <p id="gc-pft-prblm-note" class="mrgn-bttm-sm"><small>You will not receive a reply. Don't include personal information (telephone, email, SIN, financial, medical, or work details).</small></p> |
| 85 | + <p id="gc-pft-prblm-instruction" class="fnt-nrml small">Maximum 300 characters</p> |
| 86 | + <textarea id="gc-pft-prblm" aria-describedby="gc-pft-prblm-note gc-pft-prblm-instruction" name="details" class="form-control full-width" maxlength="300"></textarea> |
| 87 | + </div> |
| 88 | + <button name="helpful" value="No-Non" class="btn btn-primary">Submit</button> |
| 89 | + </div> |
| 90 | + </form> |
| 91 | + <div class="gc-pft-thnk hide"> |
| 92 | + <p class="mrgn-tp-sm mrgn-bttm-0" role="status"><span class="glyphicon glyphicon-ok text-success mrgn-rght-sm" aria-hidden="true"></span> Thank you for your feedback.</p> |
| 93 | + </div> |
| 94 | + </section> |
| 95 | + </div> |
| 96 | +</div> |
0 commit comments