Skip to content

Commit 6c66cb9

Browse files
committed
Renamed several files and directories to improve code organization and consistency.
1 parent 5936596 commit 6c66cb9

15 files changed

+57
-50
lines changed

resources/views/components/modal/form/collapsible-text-area.blade.php renamed to resources/views/components/collapsible-text-area.blade.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
<div class="mt-2">
1+
<div>
22
<a href="#" @click="open = !open"
33
class="text-blue-500 hover:text-blue-700 cursor-pointer hover:underline">
44
{{ $toggleText }}
55
</a>
6-
<div class="flex flex-col pt-2"
6+
<div class="flex flex-col py-2"
77
x-show="open"
88
x-transition:enter="transition ease-out duration-300"
99
x-transition:enter-start="opacity-0 scale-95"
@@ -24,6 +24,6 @@ class="text-blue-500 hover:text-blue-700 cursor-pointer hover:underline">
2424
class="mt-2 block w-full rounded-md border-0 px-3.5 py-2 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-gray-600 sm:sm:leading-6">
2525
{{ old($name) }}
2626
</textarea>
27-
@include('laravel-form::components.modal.form.error', ['errorKey' => 'message'])
27+
<x-laravel-form::error :errorKey="$name" />
2828
</div>
2929
</div>

resources/views/components/modal/modal.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ class="fixed inset-0 bg-white bg-opacity-75 flex justify-center items-center fle
1616
<div class="bg-white rounded-lg p-4 shadow-lg max-w-lg w-full border" @click.stop>
1717
<x-laravel-form::modal.title :title="'Your Project Info'" />
1818
@if(isset($step) && $step === 1)
19-
<x-laravel-form::modal.steps.step-one :title="'Where do you need painting?'" />
19+
<x-laravel-form::steps.step-one :title="'Where do you need painting?'" />
2020
@endif
2121
@if(isset($step) && $step === 2)
22-
<x-laravel-form::modal.steps.step-two />
22+
<x-laravel-form::steps.step-two />
2323
@endisset
2424
</div>
2525

resources/views/components/modal/steps/step-one.blade.php

Lines changed: 0 additions & 29 deletions
This file was deleted.
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
<form method="POST" action="{{ route('form.handle.step') }}">
2+
@csrf
3+
<div class="grid grid-cols-1 gap-x-6 gap-y-4 sm:grid-cols-2 py-6">
4+
@isset($title)
5+
<div class="col-span-2">
6+
<h3 class="my-1 text-gray-900 lg:text-2xl font-extrabold">{{ $title }}</h3>
7+
</div>
8+
@endisset
9+
10+
<input type="text" name="gotcha" style="display:none"/>
11+
12+
<div class="sm:col-span-1">
13+
<div class="flex space-x-2 pt-4">
14+
<div>
15+
<x-laravel-form::buttons.location-button :location="'inside'" />
16+
</div>
17+
<div>
18+
<x-laravel-form::buttons.location-button :location="'outside'" />
19+
</div>
20+
<div>
21+
<x-laravel-form::buttons.location-button :location="'cabinets'" />
22+
</div>
23+
</div>
24+
</div>
25+
26+
<div class="sm:col-span-2">
27+
<x-laravel-form::error :errorKey="'location'" />
28+
</div>
29+
</div>
30+
31+
<x-laravel-form::divider />
32+
33+
<div class="flex justify-between items-center text-center">
34+
<x-laravel-form::buttons.submit-button :buttonText="'Next'" />
35+
<x-laravel-form::modal.optional-div />
36+
</div>
37+
</form>

0 commit comments

Comments
 (0)