[MokoJoomMembership] [FEATURE] Admin list and form models for all entities #60

Open
opened 2026-06-02 19:36:00 +00:00 by jmiller · 1 comment
Owner

Migrated from MokoJoomMembership#50

Summary

No admin Models exist. Both ListModel and FormModel are needed for each admin view.

Required Models

Entity ListModel FormModel
Plans PlansModel PlanModel
Subscriptions SubscriptionsModel SubscriptionModel
Payments PaymentsModel PaymentModel
Coupons CouponsModel CouponModel
Invoices InvoicesModel InvoiceModel
Emails EmailsModel EmailModel

Location

admin/src/Model/

ListModels must

  • Extend ListModel
  • Implement getListQuery() with proper joins
  • Support populateState() for search/filter/sort
  • Support pagination

FormModels must

  • Extend AdminModel or FormModel
  • Implement getForm() referencing XML form definitions
  • Override prepareTable() for defaults

Depends On

  • Table classes
  • Form XML definitions
> Migrated from MokoJoomMembership#50 ## Summary No admin Models exist. Both ListModel and FormModel are needed for each admin view. ## Required Models | Entity | ListModel | FormModel | |--------|-----------|----------| | Plans | `PlansModel` | `PlanModel` | | Subscriptions | `SubscriptionsModel` | `SubscriptionModel` | | Payments | `PaymentsModel` | `PaymentModel` | | Coupons | `CouponsModel` | `CouponModel` | | Invoices | `InvoicesModel` | `InvoiceModel` | | Emails | `EmailsModel` | `EmailModel` | ## Location `admin/src/Model/` ## ListModels must - Extend `ListModel` - Implement `getListQuery()` with proper joins - Support `populateState()` for search/filter/sort - Support pagination ## FormModels must - Extend `AdminModel` or `FormModel` - Implement `getForm()` referencing XML form definitions - Override `prepareTable()` for defaults ## Depends On - Table classes - Form XML definitions
jmiller added the admin-uimembership labels 2026-06-02 19:52:10 +00:00
Author
Owner

Built: Admin list/form models already exist — 8 models with populateState and getListQuery.

Built: Admin list/form models already exist — 8 models with populateState and getListQuery.
jmiller added the pending: testing label 2026-06-02 20:31:43 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: MokoConsulting/MokoJoomCommunity#60