Skip to content

Commit

Permalink
Merge pull request #4 from trippo/main
Browse files Browse the repository at this point in the history
Fix Custom Attribute Values Validation + errors UI refactor
  • Loading branch information
vildanbina authored Apr 6, 2022
2 parents 157ff97 + 7602253 commit e126415
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ class General extends Step
'state.name' => ['required', Rule::unique('users', 'name')->ignoreModel($this->model)],
'state.email' => ['required', Rule::unique('users', 'email')->ignoreModel($this->model)],
],
[],
[
'state.name' => __('Name'),
'state.email' => __('Email'),
Expand Down
2 changes: 1 addition & 1 deletion resources/views/steps-header.blade.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div class="w-full pb-6 pt-2">
<div class="w-full py-2">
<div class="flex">
@foreach($stepInstances as $stepInstance)
@include('livewire-wizard::step-header')
Expand Down
2 changes: 1 addition & 1 deletion resources/views/wizard.blade.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<div>
<form wire:submit.prevent="save">
@include('livewire-wizard::steps-header')
<x-errors/>
<div class="container p-4 mx-auto">
<x-errors class="mb-4"/>
{{ $this->getCurrentStep() }}
</div>

Expand Down

0 comments on commit e126415

Please sign in to comment.