Skip to content

Commit

Permalink
Summary Styling
Browse files Browse the repository at this point in the history
  • Loading branch information
bogdankharchenko committed Jan 22, 2021
1 parent e313df7 commit e7807b8
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 e7807b8

Please sign in to comment.