Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

persons view page avatar and organization edit button. #1619

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions packages/Webkul/Admin/src/Resources/lang/ar/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -539,8 +539,9 @@
],

'view' => [
'title' => ':name',
'about-person' => 'عن الشخص',
'title' => ':name',
'about-person' => 'عن الشخص',
'about-organization' => 'حول المؤسسة',

'activities' => [
'index' => [
Expand Down
5 changes: 3 additions & 2 deletions packages/Webkul/Admin/src/Resources/lang/en/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -543,8 +543,9 @@
],

'view' => [
'title' => ':name',
'about-person' => 'About Person',
'title' => ':name',
'about-person' => 'About Person',
'about-organization' => 'About Organization',

'activities' => [
'index' => [
Expand Down
5 changes: 3 additions & 2 deletions packages/Webkul/Admin/src/Resources/lang/es/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -539,8 +539,9 @@
],

'view' => [
'title' => ':name',
'about-person' => 'Sobre la Persona',
'title' => ':name',
'about-person' => 'Sobre la Persona',
'about-organization' => 'Acerca de la organización',

'activities' => [
'index' => [
Expand Down
5 changes: 3 additions & 2 deletions packages/Webkul/Admin/src/Resources/lang/fa/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -539,8 +539,9 @@
],

'view' => [
'title' => ':name',
'about-person' => 'درباره شخص',
'title' => ':name',
'about-person' => 'درباره شخص',
'about-organization' => 'درباره سازمان',

'activities' => [
'index' => [
Expand Down
5 changes: 3 additions & 2 deletions packages/Webkul/Admin/src/Resources/lang/tr/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -539,8 +539,9 @@
],

'view' => [
'title' => ':name',
'about-person' => 'Kişi Hakkında',
'title' => ':name',
'about-person' => 'Kişi Hakkında',
'about-organization' => 'Kuruluş Hakkında',

'activities' => [
'index' => [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<v-avatar {{ $attributes }}>
<div class="flex h-9 w-9 rounded-full text-xs shimmer"></div>
<div class="shimmer h-9 w-9 rounded-full"></div>
</v-avatar>

@pushOnce('scripts')
Expand All @@ -8,10 +8,10 @@
id="v-avatar-template"
>
<div
class="flex h-9 w-9 items-center justify-center rounded-full text-xs font-medium"
class="flex h-9 min-w-9 items-center justify-center rounded-full text-xs font-medium"
:class="colorClasses()"
>
@{{ name.split(' ').map(word => word[0].toUpperCase()).join('') }}
@{{ name.split(' ').slice(0, 2).map(word => word[0].toUpperCase()).join('') }}
</div>
</script>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,13 @@
@if ($person?->organization)
<div class="flex w-full flex-col gap-4 border-b border-gray-200 p-4 dark:border-gray-800">
<h4 class="flex items-center justify-between font-semibold dark:text-white">
About Organization
@lang('admin::app.contacts.persons.view.about-organization')

<button class="icon-edit rounded-md p-1 text-2xl transition-all hover:bg-gray-100 dark:hover:bg-gray-950"></button>
<a
href="{{ route('admin.contacts.organizations.edit', $person->organization->id) }}"
class="icon-edit rounded-md p-1 text-2xl transition-all hover:bg-gray-100 dark:hover:bg-gray-950"
target="_blank"
></a>
</h4>

<div class="flex gap-2">
Expand Down
Loading