Merge pull request #2951 from EnesSacid-Buker/sizing-style-issue

Sizing style issue on contact page
This commit is contained in:
Cüneyt Şentürk 2023-03-24 10:12:19 +03:00 committed by GitHub
commit cbbe2056d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,34 +11,36 @@
<x-form.group.text name="name" label="{{ trans($textName) }}" form-group-class="{{ $classNameFromGroupClass }}" /> <x-form.group.text name="name" label="{{ trans($textName) }}" form-group-class="{{ $classNameFromGroupClass }}" />
@endif @endif
<div class="sm:col-span-3 grid gap-x-8 gap-y-6"> <div class="sm:col-span-3">
<div class="relative sm:col-span-6 grid gap-x-8 gap-y-6">
@if (! $hideEmail) @if (! $hideEmail)
<x-form.group.text name="email" label="{{ trans($textEmail) }}" not-required /> <x-form.group.text name="email" label="{{ trans($textEmail) }}" form-group-class="sm:col-span-6" not-required />
@endif @endif
@if (! $hidePhone) @if (! $hidePhone)
<x-form.group.text name="phone" label="{{ trans($textPhone) }}" not-required /> <x-form.group.text name="phone" label="{{ trans($textPhone) }}" form-group-class="sm:col-span-6" not-required />
@endif @endif
@if (! $hideWebsite) @if (! $hideWebsite)
<x-form.group.text name="website" label="{{ trans($textWebsite) }}" not-required /> <x-form.group.text name="website" label="{{ trans($textWebsite) }}" form-group-class="sm:col-span-6" not-required />
@endif @endif
@if (! $hideReference) @if (! $hideReference)
<x-form.group.text name="reference" label="{{ trans($textReference) }}" not-required /> <x-form.group.text name="reference" label="{{ trans($textReference) }}" form-group-class="sm:col-span-6" not-required />
@endif @endif
</div> </div>
</div>
<div class="sm:col-span-3"> <div class="sm:col-span-3">
<div class="relative sm:col-span-6 grid gap-x-8 gap-y-6">
@if (! $hideCanLogin) @if (! $hideCanLogin)
<div class="mt-9"> <div class="sm:col-span-6 mt-9 mb-2">
@if (empty($contact)) @if (empty($contact))
<x-tooltip id="tooltip-client_portal-text" placement="bottom" message="{{ trans('customers.can_login_description') }}"> <x-tooltip id="tooltip-client_portal-text" placement="bottom" message="{{ trans('customers.can_login_description') }}">
<x-form.group.checkbox <x-form.group.checkbox
name="create_user" name="create_user"
:options="['1' => trans('customers.can_login')]" :options="['1' => trans('customers.can_login')]"
@input="onCanLogin($event)" @input="onCanLogin($event)"
checkbox-class="sm:col-span-6"
/> />
</x-tooltip> </x-tooltip>
@else @else
@ -46,7 +48,6 @@
<x-form.group.checkbox <x-form.group.checkbox
name="create_user" name="create_user"
:options="['1' => trans('customers.user_created')]" :options="['1' => trans('customers.user_created')]"
checkbox-class="sm:col-span-6"
checked checked
disabled disabled
/> />
@ -55,7 +56,6 @@
<x-form.group.checkbox <x-form.group.checkbox
name="create_user" name="create_user"
:options="['1' => trans('customers.can_login')]" :options="['1' => trans('customers.can_login')]"
checkbox-class="sm:col-span-6"
@input="onCanLogin($event)" @input="onCanLogin($event)"
/> />
</x-tooltip> </x-tooltip>
@ -65,8 +65,9 @@
@endif @endif
@if (! $hideLogo) @if (! $hideLogo)
<x-form.group.file name="logo" label="{{ trans_choice('general.pictures', 1) }}" :value="! empty($contact) ? $contact->logo : false" not-required /> <x-form.group.file name="logo" label="{{ trans_choice('general.pictures', 1) }}" :value="! empty($contact) ? $contact->logo : false" form-group-class="sm:col-span-6" not-required />
@endif @endif
</div> </div>
</div>
</x-slot> </x-slot>
</x-form.section> </x-form.section>