Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
 into development
  • Loading branch information
ketan404 committed Apr 3, 2024
2 parents 77a2bed + bbdcc78 commit 534cc1e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Controllers/CollectionController.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public function __construct()
}

public function index(){
$collections = Collection::where('parent_id', null)->get();
$collections = Collection::all();
return view('collectionmanagement', ['collections'=>$collections, 'activePage'=>'Collections','titlePage'=>'Collections']);
}

Expand Down
2 changes: 2 additions & 0 deletions resources/views/collectionmanagement.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ function randomString(length) {
<tr>
<th>Name</th>
<th>Type</th>
<th>Parent collection</th>
<th>Created</th>
<th class="text-right">Actions</th>
</tr>
Expand All @@ -80,6 +81,7 @@ function randomString(length) {
<tr>
<td>{{ $c->name }}</td>
<td>{{ $c->type }}</td>
<td>{{ @$c->parent->name }}</td>
<td>{{ $c->created_at }}</td>
<td class="td-actions text-right">
<a rel="tooltip" class="btn btn-success btn-link" href="/admin/collection-form/{{$c->id}}">
Expand Down
6 changes: 6 additions & 0 deletions resources/views/document-details.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,11 @@ function showDeleteDialog(){
<br />

@if($c->content_type == 'Uploaded documents')
@if ($document->related_documents->count() > 0)
<div class="col-md-9 row">
@else
<div class="col-md-12 row">
@endif
@foreach($document->collection->meta_fields as $meta_field)

@php
Expand Down Expand Up @@ -317,6 +321,7 @@ function showDeleteDialog(){
@endif {{-- display document status and comment section only for logged in user --}}

</div>
@if ($document->related_documents->count() > 0)
<div class="col-md-3">
<h5>Related Documents</h5>
<ul>
Expand All @@ -325,6 +330,7 @@ function showDeleteDialog(){
@endforeach
</ul>
</div>
@endif
</div><!-- row ends -->
@endif

Expand Down

0 comments on commit 534cc1e

Please sign in to comment.