coolify/resources/views/project/new.blade.php

27 lines
955 B
PHP
Raw Normal View History

2023-04-25 11:01:56 +02:00
<x-layout>
2023-04-26 13:25:41 +02:00
@if ($type === 'project')
<h1>New Project</h1>
@elseif ($type === 'resource')
<h1>New Resource</h1>
@endif
<div x-data="{ activeTab: 'choose' }">
2023-04-25 14:43:35 +02:00
<div class="flex flex-col w-64 gap-2 mb-10">
<button @click.prevent="activeTab = 'public-repo'">Public Repository</button>
<button @click.prevent="activeTab = 'github-private-repo'">Private Repository (GitHub App)</button>
2023-04-26 13:25:41 +02:00
@if ($type === 'project')
<livewire:project.new.empty-project />
2023-04-26 13:25:41 +02:00
@endif
2023-04-25 14:43:35 +02:00
</div>
<div x-cloak x-show="activeTab === 'public-repo'">
2023-04-26 13:25:41 +02:00
<livewire:project.new.public-git-repository :type="$type" />
2023-04-25 14:43:35 +02:00
</div>
<div x-cloak x-show="activeTab === 'github-private-repo'">
2023-04-25 14:43:35 +02:00
github-private-repo
</div>
<div x-cloak x-show="activeTab === 'choose'">
2023-04-25 14:43:35 +02:00
Choose any option
</div>
</div>
2023-04-25 11:01:56 +02:00
</x-layout>