|
1 | 1 | <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> |
2 | 5 | <div class="flex gap-2">
|
3 | 6 | <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)" /> |
5 | 9 | </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> |
13 | 41 | </div>
|
| 42 | + |
14 | 43 | @if (!isCloud())
|
15 | 44 | <x-forms.checkbox id="is_system_wide" label="System Wide" />
|
16 | 45 | @endif
|
|
0 commit comments