Skip to content

Commit

Permalink
Page feedback: moving ajaxed-in PFT file to /assets
Browse files Browse the repository at this point in the history
  • Loading branch information
Garneauma committed Aug 22, 2023
1 parent fc030f9 commit 5e64576
Show file tree
Hide file tree
Showing 9 changed files with 30 additions and 24 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/page-feedback-en.html"
fr: "/sites/feedback/ajax/page-feedback-fr.html"
en: "https://wet-boew.github.io/themes-dist/GCWeb/GCWeb/assets/feedback/page-feedback-en.html"
fr: "https://wet-boew.github.io/themes-dist/GCWeb/GCWeb/assets/feedback/page-feedback-fr.html"
# contextualFooter: # Contextual footer settings
# title:
# fr: "Référence d'implémentation de Canada.ca"
Expand Down
File renamed without changes.
File renamed without changes.
15 changes: 8 additions & 7 deletions sites/feedback/feedback-docs-en.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"altLangPage": "feedback-docs-fr.html",
"secondlevel": false,
"dateModified": "2023-01-10",
"share": true
"share": true,
"feedbackPath": "assets/page-feedback-en.html"
}
---
<span class="wb-prettify all-pre hide"></span>
Expand Down Expand Up @@ -59,7 +60,7 @@ <h4>How to implement</h4>
<ul>
<li>To show the page feedback form, create a <code>&lt;div class="wb-disable-allow"&gt;</code> with the following data attributes:
<ul>
<li>Mandatory: <code>data-ajax-replace="ajax/page-feedback-en.html"</code></li>
<li>Mandatory: <code>data-ajax-replace="assets/page-feedback-en.html"</code></li>
<li>Optional: <code>data-feedback-theme="[Text defining the theme of your page]"</code></li>
<li>Optional: <code>data-feedback-section="[Text defining the section where your page resides]"</code></li>
</ul>
Expand All @@ -86,14 +87,14 @@ <h5>GCWeb Jekyll specific</h5>

<h4>Code sample</h4>
{%- highlight html -%}
<div class="wb-disable-allow" data-ajax-replace="ajax/page-feedback-en.html"
<div class="wb-disable-allow" data-ajax-replace="assets/page-feedback-en.html"
data-feedback-section="[Text defining the theme of your page]"
data-feedback-theme="[Text defining the section where your page resides]"></div>
{%- endhighlight -%}
<details>
<summary>Ajaxed-in content</summary>
{%- highlight html -%}
{%- include_relative ajax/page-feedback-en.html -%}
{%- include_relative assets/page-feedback-en.html -%}
{%- endhighlight -%}
</details>

Expand All @@ -109,7 +110,7 @@ <h4>How to implement</h4>
<ul>
<li>To show the page feedback form, create a <code>&lt;div class="wb-disable-allow"&gt;</code> with the following data attributes:
<ul>
<li>Mandatory: <code>data-ajax-replace="ajax/page-feedback-en.html"</code></li>
<li>Mandatory: <code>data-ajax-replace="assets/page-feedback-en.html"</code></li>
<li>Mandatory: <code>data-feedback-link="[Contact link text]"</code></li>
<li>Mandatory: <code>data-feedback-url="[Contact link URL]"</code></li>
<li>Optional: <code>data-feedback-theme="[Text defining the theme of your page]"</code></li>
Expand Down Expand Up @@ -149,7 +150,7 @@ <h5>GCWeb Jekyll specific</h5>

<h4>Code sample</h4>
{%- highlight html -%}
<div class="wb-disable-allow" data-ajax-replace="ajax/page-feedback-en.html"
<div class="wb-disable-allow" data-ajax-replace="assets/page-feedback-en.html"
data-feedback-link="[Contact link text]"
data-feedback-url="[Contact link URL]"
data-feedback-section="[Text defining the theme of your page]"
Expand All @@ -158,7 +159,7 @@ <h4>Code sample</h4>
<details>
<summary>Ajaxed-in content</summary>
{%- highlight html -%}
{%- include_relative ajax/page-feedback-en.html -%}
{%- include_relative assets/page-feedback-en.html -%}
{%- endhighlight -%}
</details>

Expand Down
15 changes: 8 additions & 7 deletions sites/feedback/feedback-docs-fr.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"altLangPage": "feedback-docs-en.html",
"secondlevel": false,
"dateModified": "2023-01-10",
"share": "true"
"share": "true",
"feedbackPath": "assets/page-feedback-fr.html"
}
---
<span class="wb-prettify all-pre hide"></span>
Expand Down Expand Up @@ -59,7 +60,7 @@ <h4>Comment mettre en œuvre</h4>
<ul>
<li>Pour afficher le formulaire de rétroaction sur la page, créez un <code>&lt;div&gt;</code> avec les attributs suivants&nbsp;:
<ul>
<li>Obligatoire&nbsp;: <code>data-ajax-replace="ajax/page-feedback-en.html"</code></li>
<li>Obligatoire&nbsp;: <code>data-ajax-replace="assets/page-feedback-en.html"</code></li>
<li>Optionnel&nbsp;: <code>data-feedback-theme="[Texte définissant le thème de votre page]"</code></li>
<li>Optionnel&nbsp;: <code>data-feedback-section="[Texte définissant la section où réside votre page]"</code></li>
</ul>
Expand Down Expand Up @@ -87,14 +88,14 @@ <h5>Spécifique à GCWeb Jekyll</h5>

<h4>Exemple de code</h4>
{%- highlight html -%}
<div class="wb-disable-allow" data-ajax-replace="ajax/page-feedback-fr.html"
<div class="wb-disable-allow" data-ajax-replace="assets/page-feedback-fr.html"
data-feedback-section="[Texte définissant le thème de votre page]"
data-feedback-theme="[Texte définissant la section où réside votre page]"></div>
{%- endhighlight -%}
<details>
<summary>Contenu ajouté via Ajax</summary>
{%- highlight html -%}
{%- include_relative ajax/page-feedback-fr.html -%}
{%- include_relative assets/page-feedback-fr.html -%}
{%- endhighlight -%}
</details>

Expand All @@ -110,7 +111,7 @@ <h4>Comment mettre en œuvre</h4>
<ul>
<li>Pour afficher le formulaire de rétroaction sur la page, créez un <code>&lt;div&gt;</code> avec les attributs suivants&nbsp;:
<ul>
<li>Obligatoire&nbsp;: <code>data-ajax-replace="ajax/page-feedback-en.html"</code></li>
<li>Obligatoire&nbsp;: <code>data-ajax-replace="assets/page-feedback-en.html"</code></li>
<li>Obligatoire&nbsp;: <code>data-feedback-link="[Texte du lien de contact]"</code></li>
<li>Obligatoire&nbsp;: <code>data-feedback-url="[URL du lien de contact]"</code></li>
<li>Optionnel&nbsp;: <code>data-feedback-theme="[Texte définissant le thème de votre page]"</code></li>
Expand Down Expand Up @@ -150,7 +151,7 @@ <h5>Spécifique à GCWeb Jekyll</h5>

<h4>Exemple de code</h4>
{%- highlight html -%}
<div class="wb-disable-allow" data-ajax-replace="ajax/page-feedback-fr.html"
<div class="wb-disable-allow" data-ajax-replace="assets/page-feedback-fr.html"
data-feedback-link="[Texte du lien de contact]"
data-feedback-url="[URL du lien de contact]"
data-feedback-section="[Texte définissant le thème de votre page]"
Expand All @@ -159,7 +160,7 @@ <h4>Exemple de code</h4>
<details>
<summary>Contenu ajouté via Ajax</summary>
{%- highlight html -%}
{%- include_relative ajax/page-feedback-fr.html -%}
{%- include_relative assets/page-feedback-fr.html -%}
{%- endhighlight -%}
</details>

Expand Down
5 changes: 3 additions & 2 deletions sites/feedback/page-feedback-contact-en.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
"feedbackData": {
"theme": "Theme",
"section": "Section"
}
},
"feedbackPath": "assets/page-feedback-en.html"
}
---

Expand All @@ -27,5 +28,5 @@

<h2>HTML code</h2>
{% highlight text %}
{% include_relative ajax/page-feedback-en.html %}
{% include_relative assets/page-feedback-en.html %}
{% endhighlight %}
5 changes: 3 additions & 2 deletions sites/feedback/page-feedback-contact-fr.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
"feedbackData": {
"theme": "Thème",
"section": "Section"
}
},
"feedbackPath": "assets/page-feedback-fr.html"
}
---

Expand All @@ -27,5 +28,5 @@

<h2>Code HTML</h2>
{% highlight text %}
{% include_relative ajax/page-feedback-fr.html %}
{% include_relative assets/page-feedback-fr.html %}
{% endhighlight %}
5 changes: 3 additions & 2 deletions sites/feedback/page-feedback-en.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"feedbackData": {
"theme": "Theme",
"section": "Section"
}
},
"feedbackPath": "assets/page-feedback-en.html"
}
---

Expand All @@ -23,5 +24,5 @@

<h2>HTML code</h2>
{% highlight text %}
{% include_relative ajax/page-feedback-en.html %}
{% include_relative assets/page-feedback-en.html %}
{% endhighlight %}
5 changes: 3 additions & 2 deletions sites/feedback/page-feedback-fr.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"feedbackData": {
"theme": "Thème",
"section": "Section"
}
},
"feedbackPath": "assets/page-feedback-fr.html"
}
---

Expand All @@ -23,5 +24,5 @@

<h2>Code HTML</h2>
{% highlight text %}
{% include_relative ajax/page-feedback-fr.html %}
{% include_relative assets/page-feedback-fr.html %}
{% endhighlight %}

0 comments on commit 5e64576

Please sign in to comment.