|
19 | 19 | {{if .PageIsEditRelease}}
|
20 | 20 | <b>{{.tag_name}}</b><span class="at">@</span><strong>{{.tag_target}}</strong>
|
21 | 21 | {{else}}
|
22 |
| - <input id="tag-name" name="tag_name" value="{{.tag_name}}" placeholder="{{.locale.Tr "repo.release.tag_name"}}" autofocus required maxlength="255"> |
| 22 | + <input id="tag-name" name="tag_name" value="{{.tag_name}}" aria-label="{{.locale.Tr "repo.release.tag_name"}}" placeholder="{{.locale.Tr "repo.release.tag_name"}}" autofocus required maxlength="255"> |
23 | 23 | <input id="tag-name-editor" type="hidden" data-existing-tags={{Json .Tags}} data-tag-helper={{.locale.Tr "repo.release.tag_helper"}} data-tag-helper-new={{.locale.Tr "repo.release.tag_helper_new"}} data-tag-helper-existing={{.locale.Tr "repo.release.tag_helper_existing"}}>
|
24 | 24 | <div id="tag-target-selector" class="gt-dib">
|
25 | 25 | <span class="at">@</span>
|
|
39 | 39 | </div>
|
40 | 40 | </div>
|
41 | 41 | <div>
|
42 |
| - <span id="tag-helper" class="help gt-mt-2">{{.locale.Tr "repo.release.tag_helper"}}</span> |
| 42 | + <span id="tag-helper" class="help gt-mt-3 gt-pb-0">{{.locale.Tr "repo.release.tag_helper"}}</span> |
43 | 43 | </div>
|
44 | 44 | {{end}}
|
45 | 45 | </div>
|
46 | 46 | </div>
|
47 |
| - <div class="eleven wide column"> |
| 47 | + <div class="eleven wide column gt-pt-0"> |
48 | 48 | <div class="field {{if .Err_Title}}error{{end}}">
|
49 |
| - <label>{{.locale.Tr "repo.release.title"}}</label> |
50 |
| - <input name="title" placeholder="{{.locale.Tr "repo.release.title"}}" value="{{.title}}" autofocus maxlength="255"> |
| 49 | + <input name="title" aria-label="{{.locale.Tr "repo.release.title"}}" placeholder="{{.locale.Tr "repo.release.title"}}" value="{{.title}}" autofocus maxlength="255"> |
51 | 50 | </div>
|
52 | 51 | <div class="field">
|
53 |
| - <label>{{.locale.Tr "repo.release.content"}}</label> |
54 |
| - |
55 | 52 | {{template "shared/combomarkdowneditor" (dict
|
56 | 53 | "locale" $.locale
|
57 | 54 | "MarkdownPreviewUrl" (print .Repository.Link "/markup")
|
58 | 55 | "MarkdownPreviewContext" .RepoLink
|
59 | 56 | "TextareaName" "content"
|
60 | 57 | "TextareaContent" .content
|
| 58 | + "TextareaPlaceholder" (.locale.Tr "repo.release.message") |
| 59 | + "TextareaAriaLabel" (.locale.Tr "repo.release.message") |
61 | 60 | "DropzoneParentContainer" "form"
|
62 | 61 | )}}
|
63 | 62 | </div>
|
|
0 commit comments