-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Link project view page and create project edit page
- Loading branch information
Showing
5 changed files
with
104 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,44 @@ | ||
@props(['project', 'checklists' => []]) | ||
<x-layout> | ||
<h1 class="text-4xl font-boldt text-primary">{{$project->projname}}</h1> | ||
{{-- Todo Add Edit and when to show mapping button logic --}} | ||
<div> | ||
<span class="font-bold">Projects Mangers:</span> | ||
{{$project->managers }} | ||
<div class="mb-4"> | ||
<x-breadcrumbs :items="[ | ||
['title' => 'Home', 'href' => url('') ], | ||
['title' => 'Species Inventories', 'href' => url('/checklists') ], | ||
$project->projname | ||
]" /> | ||
</div> | ||
<div class="text-lg font-bold">Research checklists</div> | ||
|
||
<div class="flex items-center mb-4"> | ||
<h1 class="text-4xl font-bold text-primary">{{ $project->projname }}</h1> | ||
<div class="flex flex-grow justify-end gap-4"> | ||
<a href="{{ url('projects/' . $project->pid . '/edit') }}"> | ||
<i class="flex-end fas fa-edit"></i> | ||
Edit | ||
</a> | ||
</div> | ||
</div> | ||
{{-- Todo Add Edit and when to show mapping button logic --}} | ||
<div> | ||
@foreach ($checklists as $checklist) | ||
<li> | ||
<x-link href="{{url(config('portal.name') . '/checklists/checklist.php?clid=' . $checklist->clid . '&pid=' . $project->pid) }}">{{$checklist->name}}</x-link> | ||
| | ||
{{-- Todo find conditions for when this would not exist if any --}} | ||
<x-link href="{{url(config('portal.name') . '/ident/key.php?clid=' . $checklist->clid . '&pid=' . $project->pid . '&taxon=All+Species')}}"> | ||
Key<i class="pl-1 text-base-content fa-solid fa-key"></i></x-link> | ||
</li> | ||
@endforeach | ||
@if(isset($project->managers) && $project->managers) | ||
<div> | ||
<span class="text-lg font-bold">Projects Mangers:</span> | ||
{{$project->managers }} | ||
</div> | ||
@endif | ||
<div class="text-lg font-bold">Research checklists</div> | ||
|
||
<div class="flex flex-col gap-2"> | ||
@foreach ($checklists as $checklist) | ||
<li> | ||
<x-link | ||
href="{{url(config('portal.name') . '/checklists/checklist.php?clid=' . $checklist->clid . '&pid=' . $project->pid) }}">{{$checklist->name}}</x-link> | ||
| | ||
{{-- Todo find conditions for when this would not exist if any --}} | ||
<x-link | ||
href="{{url(config('portal.name') . '/ident/key.php?clid=' . $checklist->clid . '&pid=' . $project->pid . '&taxon=All+Species')}}"> | ||
Key<i class="pl-1 text-base-content fa-solid fa-key"></i></x-link> | ||
</li> | ||
@endforeach | ||
</div> | ||
</div> | ||
</x-layout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
@props(['project']) | ||
<x-layout> | ||
<div class="mb-4"> | ||
<x-breadcrumbs :items="[ | ||
['title' => 'Home', 'href' => url('') ], | ||
['title' => 'Species Inventories', 'href' => url('/checklists') ], | ||
$project->projname | ||
]" /> | ||
</div> | ||
|
||
<div class="flex items-center mb-4"> | ||
<h1 class="text-4xl font-bold text-primary">{{ $project->projname }}</h1> | ||
<div class="flex flex-grow justify-end gap-4"> | ||
<a href="{{ url('projects/' . $project->pid) }}"> | ||
<i class="flex-end fas fa-edit"></i> | ||
Public View | ||
</a> | ||
</div> | ||
</div> | ||
|
||
<x-tabs :tabs="['Metadata', 'Inventory Managers', 'Checklist Management']"> | ||
<div> | ||
TODO metadata | ||
</div> | ||
<div> | ||
TODO Inventory Managers | ||
</div> | ||
<div> | ||
Checklist Management | ||
</div> | ||
</x-tabs> | ||
|
||
|
||
{{-- Todo Add Edit and when to show mapping button logic --}} | ||
<div> | ||
@if(isset($project->managers) && $project->managers) | ||
<div> | ||
<span class="text-lg font-bold">Projects Mangers:</span> | ||
{{$project->managers }} | ||
</div> | ||
@endif | ||
<div class="text-lg font-bold">Research checklists</div> | ||
|
||
<div class="flex flex-col gap-2"> | ||
@foreach ($checklists as $checklist) | ||
<li> | ||
<x-link | ||
href="{{url(config('portal.name') . '/checklists/checklist.php?clid=' . $checklist->clid . '&pid=' . $project->pid) }}">{{$checklist->name}}</x-link> | ||
| | ||
{{-- Todo find conditions for when this would not exist if any --}} | ||
<x-link | ||
href="{{url(config('portal.name') . '/ident/key.php?clid=' . $checklist->clid . '&pid=' . $project->pid . '&taxon=All+Species')}}"> | ||
Key<i class="pl-1 text-base-content fa-solid fa-key"></i></x-link> | ||
</li> | ||
@endforeach | ||
</div> | ||
</div> | ||
</x-layout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters