Skip to content

Commit

Permalink
Merge pull request #8 from glhd/summary-styling
Browse files Browse the repository at this point in the history
Summary Styling
  • Loading branch information
bogdankharchenko authored Jan 22, 2021
2 parents e313df7 + e7807b8 commit 307e713
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/AireBootstrapServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function boot()
'radio_group' => 'custom-control-input',
'radio_group_label' => 'custom-control-label',
'radio_group_label_wrapper' => 'custom-control custom-radio',
'summary' => '',
'summary' => 'alert alert-warning',
'button' => 'btn btn-primary',
'select' => 'form-control',
'textarea' => 'form-control',
Expand Down
16 changes: 8 additions & 8 deletions views/summary.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,21 @@
<?php /** @var \Illuminate\Support\ViewErrorBag $errors */ ?>

@if (isset($errors) && $errors->any())

<div {{ $attributes }}>

{{ trans_choice('aire::common.summary', $errors->count()) }}

@if($verbose)
<ul class="pt-4">

<ul class="pt-1">
@foreach ($errors->all() as $error)
<li>{{ $error }}</li>
@endforeach
</ul>

@endif

</div>

@endif

0 comments on commit 307e713

Please sign in to comment.