Numbered list for arrays
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
from typing import List
|
||||
from typing import List, Dict
|
||||
|
||||
from pydantic import BaseModel, Field, validator
|
||||
|
||||
@@ -44,11 +44,18 @@ class ProvisionTemplateReference(BaseModel):
|
||||
)
|
||||
|
||||
|
||||
class DictionaryEntry(BaseModel):
|
||||
key: str
|
||||
value: str = ""
|
||||
|
||||
|
||||
class ContractTemplate(CrudDocument):
|
||||
name: str
|
||||
parties: List[PartyTemplate] = []
|
||||
provisions: List[ProvisionTemplateReference] = Field(
|
||||
default=[],
|
||||
props={"items-per-row": "1"}
|
||||
props={"items-per-row": "1", "numbered": True}
|
||||
)
|
||||
variables: List[DictionaryEntry] = Field(default=[], format="dictionary")
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user