Commit 4adf1a85 authored by Mahmoud Aglan's avatar Mahmoud Aglan

Final form mobile polish (assignment, warehouse, person, pricing, settings)

Co-Authored-By: 's avatarClaude Opus 4.6 <noreply@anthropic.com>
parent 1b69367d
...@@ -198,13 +198,13 @@ class="w-full px-4 py-2.5 text-sm border border-gray-300 rounded-lg focus:ring-2 ...@@ -198,13 +198,13 @@ class="w-full px-4 py-2.5 text-sm border border-gray-300 rounded-lg focus:ring-2
{{-- Submit --}} {{-- Submit --}}
<div class="flex flex-col-reverse sm:flex-row items-stretch sm:items-center justify-end gap-3"> <div class="flex flex-col-reverse sm:flex-row items-stretch sm:items-center justify-end gap-3">
<a href="{{ route('assignments.list') }}" wire:navigate <a href="{{ route('assignments.list') }}" wire:navigate
class="px-6 py-2.5 sm:py-2 w-full sm:w-auto text-center text-gray-700 bg-gray-100 rounded-lg hover:bg-gray-200 text-sm font-medium"> class="text-center px-4 sm:px-6 py-2.5 text-gray-700 bg-gray-100 rounded-lg hover:bg-gray-200 text-sm font-medium">
{{ __('إلغاء') }} {{ __('إلغاء') }}
</a> </a>
<button type="submit" <button type="submit"
wire:loading.attr="disabled" wire:loading.attr="disabled"
wire:target="save" wire:target="save"
class="px-6 py-2.5 sm:py-2 w-full sm:w-auto text-center bg-blue-600 text-white rounded-lg hover:bg-blue-700 text-sm font-medium disabled:opacity-50"> class="text-center px-4 sm:px-6 py-2.5 bg-blue-600 text-white rounded-lg hover:bg-blue-700 text-sm font-medium disabled:opacity-50">
<span wire:loading.remove wire:target="save">{{ __('حفظ التكليف') }}</span> <span wire:loading.remove wire:target="save">{{ __('حفظ التكليف') }}</span>
<span wire:loading wire:target="save">{{ __('جارٍ الحفظ...') }}</span> <span wire:loading wire:target="save">{{ __('جارٍ الحفظ...') }}</span>
</button> </button>
......
...@@ -98,9 +98,9 @@ class="w-4 h-4 rounded border-gray-300 text-blue-600 focus:ring-blue-500"> ...@@ -98,9 +98,9 @@ class="w-4 h-4 rounded border-gray-300 text-blue-600 focus:ring-blue-500">
{{-- Actions --}} {{-- Actions --}}
<div class="flex flex-col-reverse sm:flex-row items-stretch sm:items-center justify-end gap-3"> <div class="flex flex-col-reverse sm:flex-row items-stretch sm:items-center justify-end gap-3">
<a href="{{ route('inventory.warehouses') }}" wire:navigate <a href="{{ route('inventory.warehouses') }}" wire:navigate
class="px-6 py-2.5 sm:py-2 w-full sm:w-auto text-center border border-gray-300 text-gray-700 rounded-lg hover:bg-gray-50 transition-colors">{{ __('إلغاء') }}</a> class="text-center px-4 sm:px-6 py-2.5 border border-gray-300 text-gray-700 rounded-lg hover:bg-gray-50 transition-colors">{{ __('إلغاء') }}</a>
<button type="submit" wire:loading.attr="disabled" wire:target="save" <button type="submit" wire:loading.attr="disabled" wire:target="save"
class="px-6 py-2.5 sm:py-2 w-full sm:w-auto text-center bg-blue-600 text-white font-medium rounded-lg hover:bg-blue-700 disabled:bg-blue-400 transition-colors"> class="text-center px-4 sm:px-6 py-2.5 bg-blue-600 text-white font-medium rounded-lg hover:bg-blue-700 disabled:bg-blue-400 transition-colors">
<span wire:loading.remove wire:target="save">{{ $editing ? __('حفظ التعديلات') : __('إنشاء المستودع') }}</span> <span wire:loading.remove wire:target="save">{{ $editing ? __('حفظ التعديلات') : __('إنشاء المستودع') }}</span>
<span wire:loading wire:target="save">{{ __('جارٍ الحفظ...') }}</span> <span wire:loading wire:target="save">{{ __('جارٍ الحفظ...') }}</span>
</button> </button>
......
...@@ -66,7 +66,7 @@ class="w-full px-4 py-2.5 text-sm border border-gray-300 rounded-lg focus:ring-2 ...@@ -66,7 +66,7 @@ class="w-full px-4 py-2.5 text-sm border border-gray-300 rounded-lg focus:ring-2
<div> <div>
<label class="block text-sm font-medium text-gray-700 mb-1">{{ __('الهاتف') }}</label> <label class="block text-sm font-medium text-gray-700 mb-1">{{ __('الهاتف') }}</label>
<input type="text" wire:model="phone" dir="ltr" <input type="text" wire:model="phone" dir="ltr"
class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-blue-500" class="w-full px-4 py-2.5 text-sm border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-blue-500"
placeholder="01xxxxxxxxx"> placeholder="01xxxxxxxxx">
</div> </div>
<div> <div>
...@@ -116,7 +116,7 @@ class="w-full px-4 py-2.5 text-sm border border-gray-300 rounded-lg focus:ring-2 ...@@ -116,7 +116,7 @@ class="w-full px-4 py-2.5 text-sm border border-gray-300 rounded-lg focus:ring-2
<div> <div>
<label class="block text-sm font-medium text-gray-700 mb-1">{{ __('صلة القرابة') }}</label> <label class="block text-sm font-medium text-gray-700 mb-1">{{ __('صلة القرابة') }}</label>
<input type="text" wire:model="emergency_contact_relation" <input type="text" wire:model="emergency_contact_relation"
class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-blue-500" class="w-full px-4 py-2.5 text-sm border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-blue-500"
placeholder="{{ __('أب، أم، أخ...') }}"> placeholder="{{ __('أب، أم، أخ...') }}">
</div> </div>
</div> </div>
...@@ -160,7 +160,7 @@ class="w-full px-4 py-2.5 text-sm border border-gray-300 rounded-lg focus:ring-2 ...@@ -160,7 +160,7 @@ class="w-full px-4 py-2.5 text-sm border border-gray-300 rounded-lg focus:ring-2
<div> <div>
<label class="block text-sm font-medium text-gray-700 mb-1">{{ __('المصدر') }}</label> <label class="block text-sm font-medium text-gray-700 mb-1">{{ __('المصدر') }}</label>
<input type="text" wire:model="source" <input type="text" wire:model="source"
class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-blue-500" class="w-full px-4 py-2.5 text-sm border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-blue-500"
placeholder="{{ __('كيف عرف عنا') }}"> placeholder="{{ __('كيف عرف عنا') }}">
</div> </div>
</div> </div>
......
...@@ -123,13 +123,13 @@ class="w-full px-4 py-2.5 text-sm border border-gray-300 rounded-lg focus:ring-2 ...@@ -123,13 +123,13 @@ class="w-full px-4 py-2.5 text-sm border border-gray-300 rounded-lg focus:ring-2
{{-- Submit --}} {{-- Submit --}}
<div class="mt-6 flex flex-col-reverse sm:flex-row items-stretch sm:items-center justify-end gap-3"> <div class="mt-6 flex flex-col-reverse sm:flex-row items-stretch sm:items-center justify-end gap-3">
<a href="{{ route('pricing.base-prices') }}" wire:navigate <a href="{{ route('pricing.base-prices') }}" wire:navigate
class="px-6 py-2.5 sm:py-2 w-full sm:w-auto text-center border border-gray-300 text-gray-700 rounded-lg hover:bg-gray-50 font-medium text-sm"> class="text-center px-4 sm:px-6 py-2.5 border border-gray-300 text-gray-700 rounded-lg hover:bg-gray-50 font-medium text-sm">
{{ __('إلغاء') }} {{ __('إلغاء') }}
</a> </a>
<button type="submit" <button type="submit"
wire:loading.attr="disabled" wire:loading.attr="disabled"
wire:target="save" wire:target="save"
class="px-6 py-2.5 sm:py-2 w-full sm:w-auto text-center bg-blue-600 text-white rounded-lg hover:bg-blue-700 font-medium text-sm disabled:opacity-50"> class="text-center px-4 sm:px-6 py-2.5 bg-blue-600 text-white rounded-lg hover:bg-blue-700 font-medium text-sm disabled:opacity-50">
<span wire:loading.remove wire:target="save">{{ $editing ? __('تحديث') : __('حفظ') }}</span> <span wire:loading.remove wire:target="save">{{ $editing ? __('تحديث') : __('حفظ') }}</span>
<span wire:loading wire:target="save">{{ __('جارٍ الحفظ...') }}</span> <span wire:loading wire:target="save">{{ __('جارٍ الحفظ...') }}</span>
</button> </button>
......
...@@ -112,7 +112,7 @@ class="w-full max-w-md rounded-lg border-gray-300 shadow-sm focus:border-blue-50 ...@@ -112,7 +112,7 @@ class="w-full max-w-md rounded-lg border-gray-300 shadow-sm focus:border-blue-50
@if(!empty($settings)) @if(!empty($settings))
<div class="mt-4 flex flex-col-reverse sm:flex-row items-stretch sm:items-center justify-end gap-3"> <div class="mt-4 flex flex-col-reverse sm:flex-row items-stretch sm:items-center justify-end gap-3">
<button type="submit" wire:loading.attr="disabled" wire:target="save" <button type="submit" wire:loading.attr="disabled" wire:target="save"
class="px-6 py-2.5 sm:py-2 w-full sm:w-auto bg-blue-600 text-white font-medium rounded-lg hover:bg-blue-700 disabled:bg-blue-400 transition-colors"> class="text-center px-4 sm:px-6 py-2.5 bg-blue-600 text-white font-medium rounded-lg hover:bg-blue-700 disabled:bg-blue-400 transition-colors">
<span wire:loading.remove wire:target="save">{{ __('حفظ الإعدادات') }}</span> <span wire:loading.remove wire:target="save">{{ __('حفظ الإعدادات') }}</span>
<span wire:loading wire:target="save">{{ __('جارٍ الحفظ...') }}</span> <span wire:loading wire:target="save">{{ __('جارٍ الحفظ...') }}</span>
</button> </button>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment