From cd57b5955b62ccc0b5273f4866a3893c324bd2c7 Mon Sep 17 00:00:00 2001 From: Dedan Date: Wed, 28 Feb 2024 11:21:05 +0300 Subject: [PATCH] Refactor form layout in Gateway, Stkpush, and Webhook entities --- Entities/Gateway.php | 4 ++-- Entities/Stkpush.php | 4 ++-- Entities/Webhook.php | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Entities/Gateway.php b/Entities/Gateway.php index c1e49ca..de3865c 100755 --- a/Entities/Gateway.php +++ b/Entities/Gateway.php @@ -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']], ]; diff --git a/Entities/Stkpush.php b/Entities/Stkpush.php index 987d525..0bf7e03 100755 --- a/Entities/Stkpush.php +++ b/Entities/Stkpush.php @@ -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']; diff --git a/Entities/Webhook.php b/Entities/Webhook.php index c5679ee..bd89885 100755 --- a/Entities/Webhook.php +++ b/Entities/Webhook.php @@ -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'];