feat(core): add common views abstract class

class for our views

!35
This commit is contained in:
2024-07-12 05:03:11 +09:30
parent a62a36ba82
commit 2e22a484a0
6 changed files with 132 additions and 0 deletions

View File

@ -0,0 +1,49 @@
---
title: Common Views
description: Centurion ERP Common Views API Documentation
date: 2024-07-12
template: project.html
about: https://gitlab.com/nofusscomputing/infrastructure/configuration-management/centurion_erp
---
Below you will find the API documentation for the views that are used throughout the Centurion ERP application.
## View
::: app.core.views.common.View
options:
inherited_members: false
heading_level: 3
## Add View
::: app.core.views.common.AddView
options:
inherited_members: true
heading_level: 3
## Change View
::: app.core.views.common.ChangeView
options:
inherited_members: true
heading_level: 3
## Delete View
::: app.core.views.common.DeleteView
options:
inherited_members: true
heading_level: 3
## Index View
::: app.core.views.common.IndexView
options:
inherited_members: true
heading_level: 3

View File

@ -15,6 +15,8 @@ This section of the documentation different items related to the development of
- [Testing](./testing.md)
- [Views](./views.md)
## Random items to be relocated in the future

View File

@ -0,0 +1,27 @@
---
title: Views
description: Centurion ERP Common Views development documentation
date: 2024-07-12
template: project.html
about: https://gitlab.com/nofusscomputing/infrastructure/configuration-management/centurion_erp
---
Views are used with Centurion ERP to Fetch the data for rendering as html. We have templated our views to aid in quick development. We have done this by adding to our views the required pieces of logic so as to ensure the right information is available. The available API can be found within the [API Views](./api/common_views.md) docs.
The views that we use are:
- [Index](./api/common_views.md#index-view)
A Models index page
- [Add](./api/common_views.md#add-view)
For adding data to model tables
- [Change](./api/common_views.md#change-view)
Changing data within a model
- [Delete](./api/common_views.md#delete-view)
To Delete a model