Skip to content

Commit

Permalink
Improve fieldset template
Browse files Browse the repository at this point in the history
  • Loading branch information
tabuna committed May 31, 2024
1 parent a0a02e7 commit 8e58f59
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 17 deletions.
28 changes: 13 additions & 15 deletions resources/views/layouts/legend.blade.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<fieldset class="mb-3" data-async>
<fieldset class="mb-3">

@empty(!$title)
<div class="col p-0 px-3">
Expand All @@ -8,18 +8,16 @@
</div>
@endempty

<div class="bg-white rounded shadow-sm p-4 py-4 d-flex flex-column">
<dl class="d-block m-0">
@foreach($columns as $column)
<div class="d2-grid py-3 {{ $loop->first ? '' : 'border-top' }}">
<dt class="text-muted fw-normal me-3">
{!! $column->buildDt($repository) !!}
</dt>
<dd class="text-black">
{!! $column->buildDd($repository) !!}
</dd>
</div>
@endforeach
</dl>
</div>
<dl class="bg-white rounded shadow-sm p-4 py-4 d-flex flex-column">
@foreach($columns as $column)
<div class="d2-grid py-3 {{ $loop->first ? '' : 'border-top' }}">
<dt class="text-muted fw-normal me-3">
{!! $column->buildDt($repository) !!}
</dt>
<dd class="text-black">
{!! $column->buildDd($repository) !!}
</dd>
</div>
@endforeach
</dl>
</fieldset>
4 changes: 2 additions & 2 deletions resources/views/layouts/row.blade.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<fieldset class="mb-3" data-async>
<fieldset class="mb-3">

@empty(!$title)
<div class="col p-0 px-3">
Expand All @@ -8,7 +8,7 @@
</div>
@endempty

<div class="bg-white rounded shadow-sm p-4 py-4 d-flex flex-column">
<div class="bg-white rounded shadow-sm p-4 py-4 d-flex flex-column gap-3">
{!! $form ?? '' !!}
</div>
</fieldset>

0 comments on commit 8e58f59

Please sign in to comment.