This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

core / appview / pages / templates / repo / pulls / fragments / pullEdit.html
1.5 kB 41 lines
1{{ define "repo/pulls/fragments/pullEdit" }} 2<form 3 hx-post="/{{ .RepoInfo.FullName }}/pulls/{{ .Pull.PullId }}/edit" 4 hx-trigger="submit, keydown[(ctrlKey || metaKey) && key=='Enter'] from:(find input[type=text],find textarea)" 5 hx-swap="none" 6 hx-indicator="find button[type=submit]" 7> 8 <div class="flex flex-col gap-2"> 9 <div> 10 <label for="title">Title</label> 11 <input type="text" name="title" id="title" class="w-full" value="{{ .Pull.Title }}" /> 12 </div> 13 <div> 14 <label for="body">Body</label> 15 {{ template "fragments/markdownEditor" 16 (dict "Name" "body" 17 "Value" .Pull.Body 18 "Rows" 15 19 "Placeholder" "Describe your pull request. Markdown is supported.") }} 20 </div> 21 <div class="flex justify-between"> 22 <div id="pulls" class="error"></div> 23 <div class="flex gap-2 items-stretch"> 24 <a 25 class="btn-flat text-red-500 dark:text-red-400 flex items-center gap-2 no-underline hover:no-underline" 26 type="button" 27 href="/{{ .RepoInfo.FullName }}/pulls/{{ .Pull.PullId }}" 28 > 29 {{ i "x" "size-4" }} 30 Cancel 31 </a> 32 <button type="submit" class="btn-create-flat group flex items-center gap-2"> 33 {{ i "loader-circle" "size-4 animate-spin hidden group-[.htmx-request]:inline" }} 34 {{ i "check" "size-4 inline group-[.htmx-request]:hidden" }} 35 Save 36 </button> 37 </div> 38 </div> 39 </div> 40</form> 41{{ end }}