Skip to content

Commit

Permalink
Refactor form layout in Gateway, Stkpush, and Webhook entities
Browse files Browse the repository at this point in the history
  • Loading branch information
dedanirungu committed Feb 28, 2024
1 parent 48db325 commit cd57b59
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Entities/Gateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ public function structure($structure): array
$structure['table'] = ['title', 'ledger_id', 'currency_id', 'consumer_key', 'consumer_secret', 'initiator_name', 'passkey', 'business_shortcode', 'phone_number', 'method', 'published'];
$structure['form'] = [
['label' => 'Title', 'class' => 'col-span-full', 'fields' => ['title', 'slug']],
['label' => 'Main', 'class' => 'col-span-full md:col-span-6', 'fields' => ['ledger_id', 'currency_id', 'consumer_key', 'consumer_secret', 'initiator_name', 'initiator_password']],
['label' => 'Other', 'class' => 'col-span-full md:col-span-6', 'fields' => ['party_a', 'party_b', 'type', 'passkey', 'business_shortcode', 'phone_number', 'method']],
['label' => 'Main', 'class' => 'col-span-full md:col-span-6 md:pr-2', 'fields' => ['ledger_id', 'currency_id', 'consumer_key', 'consumer_secret', 'initiator_name', 'initiator_password']],
['label' => 'Other', 'class' => 'col-span-full md:col-span-6 md:pr-2', 'fields' => ['party_a', 'party_b', 'type', 'passkey', 'business_shortcode', 'phone_number', 'method']],
['label' => 'Title', 'class' => 'col-span-full', 'fields' => ['default', 'sandbox', 'published']],
['label' => 'Title', 'class' => 'col-span-full', 'fields' => ['description']],
];
Expand Down
4 changes: 2 additions & 2 deletions Entities/Stkpush.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ public function structure($structure): array
$structure['table'] = ['amount', 'phone', 'reference', 'command', 'gateway_id', 'completed', 'successful', 'merchant_request_id', 'checkout_request_id'];
$structure['form'] = [
['label' => 'Phone', 'class' => 'col-span-full', 'fields' => ['phone']],
['label' => 'Stkpush', 'class' => 'col-span-full md:col-span-6', 'fields' => ['amount', 'reference', 'merchant_request_id', 'checkout_request_id']],
['label' => 'Setting', 'class' => 'col-span-full md:col-span-6', 'fields' => ['gateway_id', 'completed', 'successful']],
['label' => 'Stkpush', 'class' => 'col-span-full md:col-span-6 md:pr-2', 'fields' => ['amount', 'reference', 'merchant_request_id', 'checkout_request_id']],
['label' => 'Setting', 'class' => 'col-span-full md:col-span-6 md:pr-2', 'fields' => ['gateway_id', 'completed', 'successful']],
['label' => 'Description', 'class' => 'col-span-full', 'fields' => ['description']],
];
$structure['filter'] = ['amount', 'phone', 'reference', 'command', 'gateway_id', 'completed', 'successful'];
Expand Down
4 changes: 2 additions & 2 deletions Entities/Webhook.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ public function structure($structure): array
$structure['table'] = ['slug', 'confirmation_url', 'validation_url', 'paybill_till', 'shortcode', 'published'];
$structure['form'] = [
['label' => 'slug', 'class' => 'col-span-full', 'fields' => ['slug']],
['label' => 'Webhook', 'class' => 'col-span-full md:col-span-6', 'fields' => ['paybill_till', 'shortcode', 'published']],
['label' => 'Url', 'class' => 'col-span-full md:col-span-6ull md:col-span-6', 'fields' => ['confirmation_url', 'validation_url']],
['label' => 'Webhook', 'class' => 'col-span-full md:col-span-6 md:pr-2', 'fields' => ['paybill_till', 'shortcode', 'published']],
['label' => 'Url', 'class' => 'col-span-full md:col-span-6ull md:col-span-6 md:pr-2', 'fields' => ['confirmation_url', 'validation_url']],
];
$structure['filter'] = ['slug', 'confirmation_url', 'validation_url', 'paybill_till', 'published'];

Expand Down

0 comments on commit cd57b59

Please sign in to comment.