Skip to content

Commit

Permalink
persons view page avatar and oranization edit button.
Browse files Browse the repository at this point in the history
  • Loading branch information
suraj-webkul committed Sep 19, 2024
1 parent a797a3e commit 5e52289
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 15 deletions.
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

0 comments on commit 5e52289

Please sign in to comment.