Skip to content

Commit

Permalink
Update form layout in CompanyLocation, Country, Notification, and Sta…
Browse files Browse the repository at this point in the history
…te entities
  • Loading branch information
dedanirungu committed Feb 28, 2024
1 parent fe1237a commit f23951f
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions Entities/CompanyLocation.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ public function structure($structure): array
$structure['table'] = ['company_id', 'name', 'address_1', 'city', 'state', 'country', 'phone'];
$structure['form'] = [
['label' => 'Name', 'class' => 'col-span-full', 'fields' => ['name']],
['label' => 'Address', 'class' => 'col-span-full md:col-span-6', 'fields' => ['address_1', 'city', 'state', 'country']],
['label' => 'Setting', 'class' => 'col-span-full md:col-span-6', 'fields' => ['company_id', 'phone']],
['label' => 'Address', 'class' => 'col-span-full md:col-span-6 md:pr-2', 'fields' => ['address_1', 'city', 'state', 'country']],
['label' => 'Setting', 'class' => 'col-span-full md:col-span-6 md:pr-2', 'fields' => ['company_id', 'phone']],
];
$structure['filter'] = ['company_id', 'name', 'city', 'state', 'country'];

Expand Down
6 changes: 3 additions & 3 deletions Entities/Country.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,9 @@ public function structure($structure): array
$structure['table'] = ['name', 'code', 'code3', 'latitude', 'longitude', 'is_system'];
$structure['form'] = [
['label' => 'Name', 'class' => 'col-span-full', 'fields' => ['name']],
['label' => 'Code', 'class' => 'col-span-full md:col-span-6', 'fields' => ['code', 'code3']],
['label' => 'Geo-Code', 'class' => 'col-span-full md:col-span-6', 'fields' => ['latitude', 'longitude']],
['label' => 'Setting', 'class' => 'col-span-full md:col-span-6', 'fields' => ['is_system']],
['label' => 'Code', 'class' => 'col-span-full md:col-span-6 md:pr-2', 'fields' => ['code', 'code3']],
['label' => 'Geo-Code', 'class' => 'col-span-full md:col-span-6 md:pr-2', 'fields' => ['latitude', 'longitude']],
['label' => 'Setting', 'class' => 'col-span-full md:col-span-6 md:pr-2', 'fields' => ['is_system']],
];
$structure['filter'] = ['name', 'code', 'code3'];

Expand Down
4 changes: 2 additions & 2 deletions Entities/Notification.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ public function structure($structure): array
$structure['table'] = ['slug', 'enable_short', 'enable_medium', 'enable_lengthy', 'published'];
$structure['form'] = [
['label' => 'Short', 'class' => 'col-span-full', 'fields' => ['short']],
['label' => 'Medium', 'class' => 'col-span-full md:col-span-6', 'fields' => ['medium']],
['label' => 'Setting', 'class' => 'col-span-full md:col-span-6', 'fields' => ['enable_short', 'enable_medium', 'enable_lengthy', 'published']],
['label' => 'Medium', 'class' => 'col-span-full md:col-span-6 md:pr-2', 'fields' => ['medium']],
['label' => 'Setting', 'class' => 'col-span-full md:col-span-6 md:pr-2', 'fields' => ['enable_short', 'enable_medium', 'enable_lengthy', 'published']],
['label' => 'Lengthy', 'class' => 'col-span-full', 'fields' => ['lengthy']],
];
$structure['filter'] = ['slug', 'enable_short', 'enable_medium', 'enable_lengthy', 'published'];
Expand Down
4 changes: 2 additions & 2 deletions Entities/State.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ public function structure($structure): array
$structure['table'] = ['name', 'country_code', 'type', 'item_id', 'state_code', 'latitude', 'longitude', 'is_system'];
$structure['form'] = [
['label' => 'Name', 'class' => 'col-span-full', 'fields' => ['name']],
['label' => 'State', 'class' => 'col-span-full md:col-span-6', 'fields' => ['country_code', 'type', 'item_id', 'state_code']],
['label' => 'Location', 'class' => 'col-span-full md:col-span-6', 'fields' => ['latitude', 'longitude', 'is_system']],
['label' => 'State', 'class' => 'col-span-full md:col-span-6 md:pr-2', 'fields' => ['country_code', 'type', 'item_id', 'state_code']],
['label' => 'Location', 'class' => 'col-span-full md:col-span-6 md:pr-2', 'fields' => ['latitude', 'longitude', 'is_system']],
];
$structure['filter'] = ['name', 'country_code', 'type', 'item_id', 'state_code'];

Expand Down

0 comments on commit f23951f

Please sign in to comment.