From d7552c27d38f5ad342fe1c17cedfb6e22ba4d5d8 Mon Sep 17 00:00:00 2001 From: silverwind Date: Mon, 10 Apr 2023 17:56:57 +0200 Subject: Add placeholder and aria attributes to release and wiki edit page (#24031) - Add placeholders and aria-label all input fields on these two pages - Add margin before wiki change message - Remove labels from release page, replacing them with aria-label --- templates/repo/release/new.tmpl | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'templates/repo/release/new.tmpl') diff --git a/templates/repo/release/new.tmpl b/templates/repo/release/new.tmpl index cd702d6aa6..7a4e28cffa 100644 --- a/templates/repo/release/new.tmpl +++ b/templates/repo/release/new.tmpl @@ -19,7 +19,7 @@ {{if .PageIsEditRelease}} {{.tag_name}}@{{.tag_target}} {{else}} - +
@ @@ -39,25 +39,24 @@
- {{.locale.Tr "repo.release.tag_helper"}} + {{.locale.Tr "repo.release.tag_helper"}}
{{end}} -
+
- - +
- - {{template "shared/combomarkdowneditor" (dict "locale" $.locale "MarkdownPreviewUrl" (print .Repository.Link "/markup") "MarkdownPreviewContext" .RepoLink "TextareaName" "content" "TextareaContent" .content + "TextareaPlaceholder" (.locale.Tr "repo.release.message") + "TextareaAriaLabel" (.locale.Tr "repo.release.message") "DropzoneParentContainer" "form" )}}
-- cgit v1.2.3