85fa954a38
Don't really know a better name for this. I've gone through some Forms and added missing HTML attributes (mostly `maxlength`). I tried to fill the Forms with dummy Data and see if Gitea throws a Error (e.g. maximum length). If yes, I added the missing HTML attribute. While working on this, I discovered that the Form to add OAuth2 Apps just silently fails when filled with invalid data, so I fixed that too.
17 lines
1,010 B
Handlebars
17 lines
1,010 B
Handlebars
<form class="list-header-search ui form ignore-dirty">
|
|
<div class="ui small search fluid action input">
|
|
<input type="hidden" name="type" value="{{$.ViewType}}">
|
|
<input type="hidden" name="state" value="{{$.State}}">
|
|
<input type="hidden" name="labels" value="{{.SelectLabels}}">
|
|
<input type="hidden" name="milestone" value="{{$.MilestoneID}}">
|
|
<input type="hidden" name="project" value="{{$.ProjectID}}">
|
|
<input type="hidden" name="assignee" value="{{$.AssigneeID}}">
|
|
<input type="hidden" name="poster" value="{{$.PosterID}}">
|
|
<input name="q" value="{{.Keyword}}" placeholder="{{.locale.Tr "explore.search"}}..." maxlength="255">
|
|
{{if .PageIsIssueList}}
|
|
<button id="issue-list-quick-goto" class="ui small icon button gt-hidden" data-tooltip-content="{{.locale.Tr "explore.go_to"}}" data-repo-link="{{.RepoLink}}">{{svg "octicon-hash"}}</button>
|
|
{{end}}
|
|
<button class="ui small icon button" aria-label="{{.locale.Tr "explore.search"}}">{{svg "octicon-search"}}</button>
|
|
</div>
|
|
</form>
|