Skip to content

Commit

Permalink
Add minimum to the word and price ranges
Browse files Browse the repository at this point in the history
  • Loading branch information
Raccoon254 committed Jun 16, 2024
1 parent 174fd33 commit b3e32ed
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions resources/views/orders/create.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ class="px-3 py-2 right-16 bg-gray-100 border-none rounded-lg text-primary ring-1
<label for="words" class="block mb-2 font-semibold">Number of Words</label>
<input type="number" wire:model.live="words" id="words"
@disabled(!$isWords)
min="0"
@class(!$isWords ? 'bg-gray-100 w-full p-2 border border-gray-300 rounded-lg' : 'w-full p-2 border border-gray-300 rounded-lg')
placeholder="Number of words">
@error('words') <span class="text-red-500">{{ $message }}</span> @enderror
Expand All @@ -73,6 +74,7 @@ class="px-3 py-2 right-16 bg-gray-100 border-none rounded-lg text-primary ring-1
<label for="pages" class="block mb-2 font-semibold">Number of Pages</label>
<input type="number" wire:model.live="pages" id="pages"
@disabled($isWords)
min="0"
@class($isWords ? 'bg-gray-100 w-full p-2 border border-gray-300 rounded-lg' : 'w-full p-2 border border-gray-300 rounded-lg')
placeholder="Number of pages">
@error('pages') <span class="text-red-500">{{ $message }}</span> @enderror
Expand Down

0 comments on commit b3e32ed

Please sign in to comment.