Merge pull request #2916 from mervekaraman/master

Cursor style changed
This commit is contained in:
Cüneyt Şentürk 2023-03-03 09:26:00 +03:00 committed by GitHub
commit a71ecb70ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 83 additions and 79 deletions

View File

@ -61,54 +61,56 @@
</br> </br>
@if (! empty($transaction->contact) && $transaction->contact->email) <div class="flex flex-row">
<x-button id="show-slider-actions-transaction-send-email-{{ $document->type }}-{{ $transaction->id }}" class="text-purple mt-1" override="class" @click="onEmailViaTemplate('{{ route($transactionEmailRoute, $transaction->id) }}', '{{ $transactionEmailTemplate }}')"> @if (! empty($transaction->contact) && $transaction->contact->email)
<x-button.hover color="to-purple"> <x-button id="show-slider-actions-transaction-send-email-{{ $document->type }}-{{ $transaction->id }}" class="text-purple mt-1" override="class" @click="onEmailViaTemplate('{{ route($transactionEmailRoute, $transaction->id) }}', '{{ $transactionEmailTemplate }}')">
{{ trans('general.title.send', ['type' => trans_choice('general.receipts', 1)]) }}
</x-button.hover>
</x-button>
@else
<x-tooltip message="{{ trans('invoices.messages.email_required') }}" placement="top">
<x-button class="text-purple mt-1" override="class" disabled="disabled">
<x-button.hover color="to-purple"> <x-button.hover color="to-purple">
{{ trans('general.title.send', ['type' => trans_choice('general.receipts', 1)]) }} {{ trans('general.title.send', ['type' => trans_choice('general.receipts', 1)]) }}
</x-button.hover> </x-button.hover>
</x-button> </x-button>
</x-tooltip> @else
@endif <x-tooltip message="{{ trans('invoices.messages.email_required') }}" placement="top">
<x-button class="text-purple mt-1" override="class" disabled="disabled">
<x-button.hover color="to-purple">
{{ trans('general.title.send', ['type' => trans_choice('general.receipts', 1)]) }}
</x-button.hover>
</x-button>
</x-tooltip>
@endif
<span> - </span> <span class="mt-1 mr-2 ml-2"> - </span>
<x-button <x-button
@click="onEditPayment('{{ route('modals.documents.document.transactions.edit', ['document' => $document->id, 'transaction' => $transaction->id]) }}')" @click="onEditPayment('{{ route('modals.documents.document.transactions.edit', ['document' => $document->id, 'transaction' => $transaction->id]) }}')"
id="show-slider-actions-transaction-edit-{{ $document->type }}-{{ $transaction->id }}" id="show-slider-actions-transaction-edit-{{ $document->type }}-{{ $transaction->id }}"
class="text-purple mt-1" class="text-purple mt-1"
override="class" override="class"
> >
<x-button.hover color="to-purple"> <x-button.hover color="to-purple">
{{ trans('general.title.edit', ['type' => trans_choice('general.payments', 1)]) }} {{ trans('general.title.edit', ['type' => trans_choice('general.payments', 1)]) }}
</x-button.hover> </x-button.hover>
</x-button> </x-button>
<span> - </span> <span class="mt-1 mr-2 ml-2"> - </span>
@php @php
$message = trans('general.delete_confirm', [ $message = trans('general.delete_confirm', [
'name' => '<strong>' . Date::parse($transaction->paid_at)->format(company_date_format()) . ' - ' . money($transaction->amount, $transaction->currency_code, true) . ' - ' . $transaction->account->name . '</strong>', 'name' => '<strong>' . Date::parse($transaction->paid_at)->format(company_date_format()) . ' - ' . money($transaction->amount, $transaction->currency_code, true) . ' - ' . $transaction->account->name . '</strong>',
'type' => strtolower(trans_choice('general.transactions', 1)) 'type' => strtolower(trans_choice('general.transactions', 1))
]); ]);
@endphp @endphp
<x-delete-link <x-delete-link
:model="$transaction" :model="$transaction"
:route="'transactions.destroy'" :route="'transactions.destroy'"
:title="trans('general.title.delete', ['type' => trans_choice('general.payments', 1)])" :title="trans('general.title.delete', ['type' => trans_choice('general.payments', 1)])"
:message="$message" :message="$message"
:label="trans('general.title.delete', ['type' => trans_choice('general.payments', 1)])" :label="trans('general.title.delete', ['type' => trans_choice('general.payments', 1)])"
class="text-purple mt-1" class="text-purple mt-1"
text-class="bg-no-repeat bg-0-2 bg-0-full hover:bg-full-2 bg-gradient-to-b from-transparent to-purple transition-backgroundSize" text-class="bg-no-repeat bg-0-2 bg-0-full hover:bg-full-2 bg-gradient-to-b from-transparent to-purple transition-backgroundSize"
override="class" override="class"
/> />
</div>
</div> </div>
@endforeach @endforeach
@else @else

View File

@ -44,54 +44,56 @@
</br> </br>
@if (! empty($transaction->contact) && $transaction->contact->email) <div class="flex flex-row">
<x-button id="show-slider-actions-transaction-send-email-{{ $document->type }}-{{ $transaction->id }}" class="text-purple mt-1" override="class" @click="onEmailViaTemplate('{{ route($transactionEmailRoute, $transaction->id) }}', '{{ $transactionEmailTemplate }}')"> @if (! empty($transaction->contact) && $transaction->contact->email)
<x-button.hover color="to-purple"> <x-button id="show-slider-actions-transaction-send-email-{{ $document->type }}-{{ $transaction->id }}" class="text-purple mt-1" override="class" @click="onEmailViaTemplate('{{ route($transactionEmailRoute, $transaction->id) }}', '{{ $transactionEmailTemplate }}')">
{{ trans('general.title.send', ['type' => trans_choice('general.receipts', 1)]) }}
</x-button.hover>
</x-button>
@else
<x-tooltip message="{{ trans('invoices.messages.email_required') }}" placement="top">
<x-button class="text-purple mt-1" override="class" disabled="disabled">
<x-button.hover color="to-purple"> <x-button.hover color="to-purple">
{{ trans('general.title.send', ['type' => trans_choice('general.receipts', 1)]) }} {{ trans('general.title.send', ['type' => trans_choice('general.receipts', 1)]) }}
</x-button.hover> </x-button.hover>
</x-button> </x-button>
</x-tooltip> @else
@endif <x-tooltip message="{{ trans('invoices.messages.email_required') }}" placement="top">
<x-button class="text-purple mt-1" override="class" disabled="disabled">
<x-button.hover color="to-purple">
{{ trans('general.title.send', ['type' => trans_choice('general.receipts', 1)]) }}
</x-button.hover>
</x-button>
</x-tooltip>
@endif
<span> - </span> <span class="mt-1 mr-2 ml-2"> - </span>
<x-button <x-button
@click="onEditPayment('{{ route('modals.documents.document.transactions.edit', ['document' => $document->id, 'transaction' => $transaction->id]) }}')" @click="onEditPayment('{{ route('modals.documents.document.transactions.edit', ['document' => $document->id, 'transaction' => $transaction->id]) }}')"
id="show-slider-actions-transaction-edit-{{ $document->type }}-{{ $transaction->id }}" id="show-slider-actions-transaction-edit-{{ $document->type }}-{{ $transaction->id }}"
class="text-purple mt-1" class="text-purple mt-1"
override="class" override="class"
> >
<x-button.hover color="to-purple"> <x-button.hover color="to-purple">
{{ trans('general.title.edit', ['type' => trans_choice('general.payments', 1)]) }} {{ trans('general.title.edit', ['type' => trans_choice('general.payments', 1)]) }}
</x-button.hover> </x-button.hover>
</x-button> </x-button>
<span> - </span> <span class="mt-1 mr-2 ml-2"> - </span>
@php @php
$message = trans('general.delete_confirm', [ $message = trans('general.delete_confirm', [
'name' => '<strong>' . Date::parse($transaction->paid_at)->format(company_date_format()) . ' - ' . money($transaction->amount, $transaction->currency_code, true) . ' - ' . $transaction->account->name . '</strong>', 'name' => '<strong>' . Date::parse($transaction->paid_at)->format(company_date_format()) . ' - ' . money($transaction->amount, $transaction->currency_code, true) . ' - ' . $transaction->account->name . '</strong>',
'type' => strtolower(trans_choice('general.transactions', 1)) 'type' => strtolower(trans_choice('general.transactions', 1))
]); ]);
@endphp @endphp
<x-delete-link <x-delete-link
:model="$transaction" :model="$transaction"
:route="'transactions.destroy'" :route="'transactions.destroy'"
:title="trans('general.title.delete', ['type' => trans_choice('general.payments', 1)])" :title="trans('general.title.delete', ['type' => trans_choice('general.payments', 1)])"
:message="$message" :message="$message"
:label="trans('general.title.delete', ['type' => trans_choice('general.payments', 1)])" :label="trans('general.title.delete', ['type' => trans_choice('general.payments', 1)])"
class="text-purple mt-1" class="text-purple mt-1"
text-class="bg-no-repeat bg-0-2 bg-0-full hover:bg-full-2 bg-gradient-to-b from-transparent to-purple transition-backgroundSize" text-class="bg-no-repeat bg-0-2 bg-0-full hover:bg-full-2 bg-gradient-to-b from-transparent to-purple transition-backgroundSize"
override="class" override="class"
/> />
</div>
</div> </div>
@endforeach @endforeach
@else @else

View File

@ -10,7 +10,7 @@
value="{{ $signedUrl }}" value="{{ $signedUrl }}"
ref="clone" ref="clone"
@click="onCopyLink()" @click="onCopyLink()"
style="appearance: none; background-color: whitesmoke; border: none; font-size: 16px;" style="appearance: none; background-color: whitesmoke; cursor:pointer; border: none; font-size: 16px;"
/> />
<x-form.input.hidden name="hidden-share" value="{{ $signedUrl }}" /> <x-form.input.hidden name="hidden-share" value="{{ $signedUrl }}" />