Skip to content

Commit 4ee1f1a

Browse files
committed
fix: improve github source creation
1 parent 7d64df6 commit 4ee1f1a

File tree

1 file changed

+37
-8
lines changed

1 file changed

+37
-8
lines changed

resources/views/livewire/source/github/create.blade.php

Lines changed: 37 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,45 @@
11
<form wire:submit='createGitHubApp' class="flex flex-col w-full gap-2">
2+
<div class="pb-2">This is required, if you would like to get full integration (commit / pull request
3+
deployments, etc)
4+
with GitHub.</div>
25
<div class="flex gap-2">
36
<x-forms.input id="name" label="Name" required />
4-
<x-forms.input helper="If empty, your GitHub user will be used." id="organization" label="Organization" />
7+
<x-forms.input helper="If empty, your GitHub user will be used."
8+
placeholder="If empty, your GitHub user will be used." id="organization" label="Organization (on GitHub)" />
59
</div>
6-
<div class="flex gap-2">
7-
<x-forms.input id="html_url" label="HTML Url" required />
8-
<x-forms.input id="api_url" label="API Url" required />
9-
</div>
10-
<div class="flex gap-2">
11-
<x-forms.input id="custom_user" label="Custom Git User" required />
12-
<x-forms.input id="custom_port" type="number" label="Custom Git Port" required />
10+
<div x-data="{
11+
activeAccordion: '',
12+
setActiveAccordion(id) {
13+
this.activeAccordion = (this.activeAccordion == id) ? '' : id
14+
}
15+
}" class="relative w-full py-2 mx-auto overflow-hidden text-sm font-normal rounded-md">
16+
<div x-data="{ id: $id('accordion') }" class="cursor-pointer group">
17+
<button @click="setActiveAccordion(id)"
18+
class="flex items-center justify-between w-full px-1 py-2 text-left select-none hover:dark:text-white hover:bg-white/5"
19+
type="button">
20+
<h4>Advanced</h4>
21+
<svg class="w-4 h-4 duration-200 ease-out" :class="{ 'rotate-180': activeAccordion == id }"
22+
viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" fill="none" stroke="currentColor"
23+
stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
24+
<polyline points="6 9 12 15 18 9"></polyline>
25+
</svg>
26+
</button>
27+
<div x-show="activeAccordion==id" x-collapse x-cloak class="px-2">
28+
<div class="py-2">Self-hosted / Enterprise GitHub details.</div>
29+
<div class="flex flex-col gap-2 pt-0 opacity-70">
30+
<div class="flex gap-2">
31+
<x-forms.input id="html_url" label="HTML Url" required />
32+
<x-forms.input id="api_url" label="API Url" required />
33+
</div>
34+
<div class="flex gap-2">
35+
<x-forms.input id="custom_user" label="Custom Git User" required />
36+
<x-forms.input id="custom_port" type="number" label="Custom Git Port" required />
37+
</div>
38+
</div>
39+
</div>
40+
</div>
1341
</div>
42+
1443
@if (!isCloud())
1544
<x-forms.checkbox id="is_system_wide" label="System Wide" />
1645
@endif

0 commit comments

Comments
 (0)