diff --git a/app/views/examples/translated/index.njk b/app/views/examples/translated/index.njk new file mode 100644 index 0000000000..2d2954a476 --- /dev/null +++ b/app/views/examples/translated/index.njk @@ -0,0 +1,872 @@ +{% from "accordion/macro.njk" import govukAccordion %} +{% from "back-link/macro.njk" import govukBackLink %} +{% from "breadcrumbs/macro.njk" import govukBreadcrumbs %} +{% from "button/macro.njk" import govukButton %} +{% from "character-count/macro.njk" import govukCharacterCount %} +{% from "checkboxes/macro.njk" import govukCheckboxes %} +{% from "cookie-banner/macro.njk" import govukCookieBanner %} +{% from "date-input/macro.njk" import govukDateInput %} +{% from "details/macro.njk" import govukDetails %} +{% from "error-message/macro.njk" import govukErrorMessage %} +{% from "error-summary/macro.njk" import govukErrorSummary %} +{% from "file-upload/macro.njk" import govukFileUpload %} +{% from "footer/macro.njk" import govukFooter %} +{% from "header/macro.njk" import govukHeader %} +{% from "inset-text/macro.njk" import govukInsetText %} +{% from "notification-banner/macro.njk" import govukNotificationBanner %} +{% from "pagination/macro.njk" import govukPagination %} +{% from "panel/macro.njk" import govukPanel %} +{% from "phase-banner/macro.njk" import govukPhaseBanner %} +{% from "radios/macro.njk" import govukRadios %} +{% from "select/macro.njk" import govukSelect %} +{% from "skip-link/macro.njk" import govukSkipLink %} +{% from "summary-list/macro.njk" import govukSummaryList %} +{% from "table/macro.njk" import govukTable %} +{% from "tabs/macro.njk" import govukTabs %} +{% from "tag/macro.njk" import govukTag %} +{% from "input/macro.njk" import govukInput %} +{% from "textarea/macro.njk" import govukTextarea %} +{% from "warning-text/macro.njk" import govukWarningText %} + +{% extends "layout.njk" %} + +{% block beforeContent %} + {{ govukBackLink({ + "href": "/" + }) }} +{% endblock %} + +{% block content %} +
Dyma'r cynnwys ar gyfer Ysgrifennu'n Dda ar gyfer y we.
" + } + }, + { + heading: { + text: "Ysgrifennu'n dda ar gyfer arbenigwyr" + }, + content: { + html: "Dyma'r cynnwys ar gyfer Ysgrifennu'n Dda ar gyfer arbenigwyr.
" + } + }, + { + heading: { + text: "Adnabod eich cynulleidfa" + }, + content: { + html: "Dyma'r cynnwys ar gyfer Adnabod eich cynulleidfa.
" + } + }, + { + heading: { + text: "Sut mae pobl yn darllen" + }, + content: { + html: "Dyma'r cynnwys ar gyfer Sut mae pobl yn darllen.
" + } + } + ] + }) }} + + {{ govukBackLink({ + text: "Ol", + href: "#" + }) }} + + {{ govukBreadcrumbs({ + items: [ + { + text: "Cartref", + href: "#" + }, + { + text: "Pasbortau, teithio a byw dramor", + href: "#" + }, + { + text: "Teithio dramor", + href: "#" + } + ] + }) }} + + {{ govukButton({ + text: "Cadw a pharhau", + classes: "govuk-!-margin-top-4" + }) }} + + {{ govukCharacterCount({ + name: "with-hint", + id: "with-hint", + maxlength: 200, + fallbackHintText: "Gallwch ddefnyddio hyd at %{count} nod", + label: { + text: "Allwch chi roi mwy o fanylion?", + classes: "govuk-label--l", + isPageHeading: true + }, + hint: { + text: "Peidiwch â chynnwys gwybodaeth bersonol neu ariannol fel eich rhif Yswiriant Gwladol neu fanylion eich cerdyn credyd." + } + }) }} + + {{ govukCheckboxes({ + idPrefix: "waste", + name: "waste", + fieldset: { + legend: { + text: "Pa fathau o wastraff ydych chi'n eu cludo?", + isPageHeading: true, + classes: "govuk-fieldset__legend--l" + } + }, + hint: { + text: "Dewiswch bob un sy'n berthnasol." + }, + items: [ + { + value: "carcasses", + text: "Gwastraff o garcasau anifeiliaid" + }, + { + value: "mines", + text: "Gwastraff o fwyngloddiau neu chwareli" + }, + { + value: "farm", + text: "Gwastraff fferm neu amaethyddol" + } + ] + }) }} + + {% set cookieBannerHtml %} +Rydym yn defnyddio rhai cwcis hanfodol i wneud i'r gwasanaeth hwn weithio.
+Hoffem hefyd ddefnyddio cwcis dadansoddol fel y gallwn ddeall sut rydych yn defnyddio'r gwasanaeth a gwneud gwelliannau.
+ {% endset %} + + {{ govukCookieBanner({ + classes: "govuk-!-margin-bottom-4", + ariaLabel: "Cwcis ar y gwasanaeth hwn", + messages: [ + { + headingText: "Cwcis ar y gwasanaeth hwn", + html: cookieBannerHtml, + actions: [ + { + text: "Derbyn cwcis dadansoddeg", + type: "button", + name: "cookies", + value: "accept" + }, + { + text: "Gwrthod cwcis dadansoddeg", + type: "button", + name: "cookies", + value: "reject" + }, + { + text: "Gweld cwcis", + href: "#" + } + ] + } + ] + }) }} + + {% set acceptHtml %} +Rydych chi wedi derbyn cwcis ychwanegol. Gallwch newid eich gosodiadau cwci ar unrhyw adeg.
+ {% endset %} + + {{ govukCookieBanner({ + ariaLabel: "Cwcis ar y gwasanaeth hwn", + classes: "govuk-!-margin-bottom-4", + messages: [ + { + html: acceptHtml, + actions: [ + { + text: "Cuddio neges cwci", + href: "#", + type: "button" + } + ] + } + ] + }) }} + + {{ govukDateInput({ + id: "passport-issued", + namePrefix: "passport-issued", + fieldset: { + legend: { + text: "Pryd gafodd eich pasbort ei gyhoeddi?", + isPageHeading: true, + classes: "govuk-fieldset__legend--l" + } + }, + hint: { + text: "Er enghraifft, 27 3 2007" + }, + items: [ + { + name: "day", + label: "Dydd", + classes: "govuk-input--width-2", + autocomplete: "bday-day" + }, + { + name: "month", + label: "Mis", + classes: "govuk-input--width-2", + autocomplete: "bday-month" + }, + { + name: "year", + label: "Blwyddyn", + classes: "govuk-input--width-4", + autocomplete: "bday-year" + } + ] + }) }} + + {{ govukDetails({ + summaryText: "Help gyda chenedligrwydd", + text: "Mae angen i ni wybod eich cenedligrwydd fel y gallwn weithio allan pa etholiadau y mae gennych hawl i bleidleisio ynddynt. Os na allwch nodi eich cenedligrwydd, bydd yn rhaid i chi anfon copïau o ddogfennau adnabod drwy'r post." + }) }} + + {{ govukErrorSummary({ + titleText: "Mae yna broblem", + disableAutoFocus: true, + errorList: [ + { + text: "Rhaid i'r dyddiad y cyhoeddwyd eich pasbort fod yn y gorffennol", + href: "#passport-issued-day" + }, + { + text: "Rhowch god post, fel AA1 1AA", + href: "#postcode-input" + } + ] + }) }} + + {{ govukFileUpload({ + id: "file-upload-1", + name: "file-upload-1", + label: { + text: "Llwythwch ffeil i fyny" + } + }) }} + + {{ govukFooter({ + classes: "govuk-!-margin-bottom-4", + navigation: [ + { + title: "Gwasanaethau a gwybodaeth", + width: "two-thirds", + columns: 2, + items: [ + { + href: "#", + text: "Budd-daliadau" + }, + { + href: "#", + text: "Genedigaethau, marwolaethau, priodasau a gofal" + }, + { + href: "#", + text: "Busnes a hunan-gyflogedig" + } + ] + }, + { + title: "Adrannau a pholisi", + width: "one-third", + items: [ + { + href: "#", + text: "Sut mae llywodraeth yn gweithio" + }, + { + href: "#", + text: "Adrannau" + }, + { + href: "#", + text: "Ar draws y byd" + } + ] + } + ], + meta: { + visuallyHiddenTitle: "Dolenni cymorth", + items: [ + { + href: "#", + text: "Cwcis" + }, + { + href: "#", + text: "Cysylltwch" + }, + { + href: "#", + text: "Telerau ac Amodau" + } + ], + html: 'Adeiladwyd gan y Government Digital Service' + }, + contentLicence: { + html: "Mae’r holl gynnwys ar gael o dan y Drwydded Llywodraeth Agored v3.0, ac eithrio lle nodir yn wahanol" + }, + copyright: { + html: "Hawlfraint y Goron" + } + }) }} + + {{ govukHeader({ + homepageUrl: "#", + serviceName: "Enw gwasanaeth", + serviceUrl: "#", + menuButtonLabel: "Dangos neu guddio'r ddewislen", + menuButtonText: "Dewislen", + navigation: [ + { + href: "#1", + text: "Eitem llywio 1", + active: true + }, + { + href: "#2", + text: "Eitem llywio 2" + }, + { + href: "#3", + text: "Eitem llywio 3" + }, + { + href: "#4", + text: "Eitem llywio 4" + } + ] + }) }} + + {{ govukInsetText({ + text: "Gall gymryd hyd at 8 wythnos i gofrestru atwrneiaeth arhosol os nad oes unrhyw gamgymeriadau yn y cais." + }) }} + + {% set notificationBannerHtml %} + + {% endset %} + + {{ govukNotificationBanner({ + html: notificationBannerHtml, + titleText: "Pwysig" + }) }} + + {{ govukPagination({ + previous: { + text: "Blaenorol", + href: "#" + }, + next: { + text: "Nesaf", + href: "#" + }, + items: [ + { + number: 1, + href: "#", + visuallyHiddenText: "Tudalen 1" + }, + { + number: 2, + current: true, + href: "#", + visuallyHiddenText: "Tudalen 2" + }, + { + number: 3, + href: "#", + visuallyHiddenText: "Tudalen 3" + } + ] + }) }} + + {{ govukPanel({ + titleText: "Cais wedi'i gwblhau", + html: "Eich rhif cyfeirnod07700 900457
sarah.phillips@example.com
' + }, + actions: { + items: [ + { + href: "#", + text: "Newid", + visuallyHiddenText: "manylion cyswllt" + } + ] + } + } + ] + }) }} + + + + {{ govukTable({ + caption: "Dyddiadau a symiau", + captionClasses: "govuk-table__caption--m", + firstCellIsHeader: true, + head: [ + { + text: "Dyddiad" + }, + { + text: "Swm" + } + ], + rows: [ + [ + { + text: "Y 6 wythnos gyntaf" + }, + { + text: "£109.80 yr wythnos" + } + ], + [ + { + text: "33 wythnos nesaf" + }, + { + text: "£109.80 yr wythnos" + } + ], + [ + { + text: "Amcangyfrif o gyfanswm yr incwm" + }, + { + text: "£4,282.20" + } + ] + ] + }) }} + + {% set pastDayHtml %} +