forked from tangled.org/core
this repo has no description
1{{ define "fragments/pullResubmit" }} 2 <div 3 id="resubmit-pull-card" 4 class="rounded relative border bg-amber-50 dark:bg-amber-900 border-amber-200 dark:border-amber-500 px-6 py-2"> 5 6 <div class="flex items-center gap-2 text-amber-500 dark:text-amber-50"> 7 {{ i "pencil" "w-4 h-4" }} 8 <span class="font-medium">resubmit your patch</span> 9 </div> 10 11 <div class="mt-2 text-sm text-gray-700 dark:text-gray-200"> 12 You can update this patch to address any reviews. 13 This will begin a new round of reviews, 14 but you'll still be able to view your previous submissions and feedback. 15 </div> 16 17 <div class="mt-4 flex flex-col"> 18 <form 19 hx-post="/{{ .RepoInfo.FullName }}/pulls/{{ .Pull.PullId }}/resubmit" 20 hx-swap="none" 21 class="w-full flex flex-wrap gap-2"> 22 <textarea 23 name="patch" 24 class="w-full p-2 mb-2" 25 placeholder="Paste your updated patch here." 26 rows="15" 27 >{{.Pull.LatestPatch}}</textarea> 28 <button 29 type="submit" 30 class="btn flex items-center gap-2" 31 {{ if or .Pull.State.IsClosed }} 32 disabled 33 {{ end }}> 34 {{ i "rotate-ccw" "w-4 h-4" }} 35 <span>resubmit</span> 36 </button> 37 <button 38 type="button" 39 class="btn flex items-center gap-2" 40 hx-get="/{{ .RepoInfo.FullName }}/pulls/{{ .Pull.PullId }}/round/{{ .Pull.LastRoundNumber }}/actions" 41 hx-swap="outerHTML" 42 hx-target="#resubmit-pull-card"> 43 {{ i "x" "w-4 h-4" }} 44 <span>cancel</span> 45 </button> 46 </form> 47 48 <div id="resubmit-error" class="error"></div> 49 <div id="resubmit-success" class="success"></div> 50 </div> 51 </div> 52{{ end }}