fix
This commit is contained in:
@@ -100,7 +100,8 @@
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="text-white rounded-none hover:no-underline hover:bg-coollabs" href="/profile/team">
|
||||
<a class="text-white rounded-none hover:no-underline hover:bg-coollabs"
|
||||
href="{{ route('team.show') }}">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" class="icon" viewBox="0 0 24 24"
|
||||
stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round"
|
||||
stroke-linejoin="round">
|
||||
@@ -117,7 +118,7 @@
|
||||
<form action="/logout" method="POST">
|
||||
<li>
|
||||
@csrf
|
||||
<button class=" text-white rounded-none hover:bg-coollabs"> <svg
|
||||
<button class="text-white rounded-none hover:bg-coollabs"> <svg
|
||||
xmlns="http://www.w3.org/2000/svg" class="icon" viewBox="0 0 24 24"
|
||||
stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round"
|
||||
stroke-linejoin="round">
|
||||
|
||||
@@ -1,26 +1,26 @@
|
||||
<div class="pb-6">
|
||||
<h1>Team</h1>
|
||||
<nav class="flex pt-2 pb-10 ">
|
||||
<nav class="flex pt-2 pb-10">
|
||||
<ol class="inline-flex items-center">
|
||||
<li class="inline-flex items-center">
|
||||
Currently Active Team
|
||||
</li>
|
||||
<li>
|
||||
<div class="flex items-center">
|
||||
<svg aria-hidden="true" class="w-4 h-4 mx-1 font-bold text-warning" fill="currentColor"
|
||||
viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
|
||||
<path fill-rule="evenodd"
|
||||
d="M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z"
|
||||
clip-rule="evenodd"></path>
|
||||
</svg>
|
||||
<span class="font-bold text-warning">{{ session('currentTeam.name') }}</span>
|
||||
<span>Currently active team: {{ session('currentTeam.name') }}</span>
|
||||
</div>
|
||||
</li>
|
||||
<li class="inline-flex items-center">
|
||||
<svg aria-hidden="true" class="w-4 h-4 mx-1 font-bold text-warning" fill="currentColor" viewBox="0 0 20 20"
|
||||
xmlns="http://www.w3.org/2000/svg">
|
||||
<path fill-rule="evenodd"
|
||||
d="M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z"
|
||||
clip-rule="evenodd"></path>
|
||||
</svg>
|
||||
<span class="truncate">{{ Str::limit(session('currentTeam.description'), 52) }}</span>
|
||||
</li>
|
||||
</ol>
|
||||
</nav>
|
||||
<nav class="flex items-end gap-4 py-2 border-b-2 border-solid border-coolgray-200">
|
||||
<a class="{{ request()->routeIs('team.show') ? 'text-white' : '' }}" href="{{ route('team.show') }}">
|
||||
<button>Members</button>
|
||||
<button>General</button>
|
||||
</a>
|
||||
<a class="{{ request()->routeIs('team.notifications') ? 'text-white' : '' }}"
|
||||
href="{{ route('team.notifications') }}">
|
||||
|
||||
7
resources/views/livewire/team/create.blade.php
Normal file
7
resources/views/livewire/team/create.blade.php
Normal file
@@ -0,0 +1,7 @@
|
||||
<form class="flex flex-col gap-2" wire:submit.prevent='submit'>
|
||||
<x-forms.input autofocus id="name" label="Name" required />
|
||||
<x-forms.input id="description" label="Description" />
|
||||
<x-forms.button type="submit">
|
||||
Save Team
|
||||
</x-forms.button>
|
||||
</form>
|
||||
12
resources/views/livewire/team/form.blade.php
Normal file
12
resources/views/livewire/team/form.blade.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<form class="flex flex-col gap-2 pb-6" wire:submit.prevent='submit'>
|
||||
<div class="flex items-end gap-2">
|
||||
<h2>General</h2>
|
||||
<x-forms.button type="submit">
|
||||
Save
|
||||
</x-forms.button>
|
||||
</div>
|
||||
<div class="flex gap-2">
|
||||
<x-forms.input id="team.name" label="Name" required />
|
||||
<x-forms.input id="team.description" label="Description" />
|
||||
</div>
|
||||
</form>
|
||||
5
resources/views/team/create.blade.php
Normal file
5
resources/views/team/create.blade.php
Normal file
@@ -0,0 +1,5 @@
|
||||
<x-layout>
|
||||
<h1>New Team</h1>
|
||||
<div class="pt-2 pb-10">Add a new team</div>
|
||||
<livewire:team.create />
|
||||
</x-layout>
|
||||
@@ -1,7 +1,8 @@
|
||||
<x-layout>
|
||||
<x-team.navbar :team="session('currentTeam')" />
|
||||
<h2>Members</h2>
|
||||
<div class="overflow-hidden">
|
||||
<livewire:team.form />
|
||||
<h3>Members</h3>
|
||||
<div class="pt-4 overflow-hidden">
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
|
||||
Reference in New Issue
Block a user