Additional fixes and expansions on field dependencies. Still a WIP.
This commit is contained in:
parent
023acfaafe
commit
515eb27fe0
7 changed files with 419 additions and 5 deletions
|
|
@ -19,7 +19,7 @@ class User(Base, CRUDMixin):
|
|||
__tablename__ = 'users'
|
||||
__crud_label__ = "{label}"
|
||||
__crudkit_field_requires__ = {
|
||||
"label": ["first_name", "last_name", "title"] # whatever the hybrid touches
|
||||
"label": ["first_name", "last_name", "title"]
|
||||
}
|
||||
|
||||
first_name: Mapped[Optional[str]] = mapped_column(Unicode(255), nullable=True, index=True)
|
||||
|
|
|
|||
|
|
@ -54,7 +54,7 @@ def init_entry_routes(app):
|
|||
"wrap": {"class": "h-100 w-100"}},
|
||||
|
||||
{"name": "notes", "type": "textarea", "label": "Notes", "row": "notes", "wrap": {"class": "col"},
|
||||
"attrs": {"class": "form-control", "rows": 10}, "label_attrs": {"class": "form-label"}},
|
||||
"attrs": {"class": "form-control", "rows": 10, "style": "resize: none;"}, "label_attrs": {"class": "form-label"}},
|
||||
]
|
||||
layout = [
|
||||
{"name": "label", "order": 5},
|
||||
|
|
|
|||
|
|
@ -33,6 +33,10 @@
|
|||
</ul>
|
||||
{% block header %}
|
||||
{% endblock %}
|
||||
<div class="d-flex">
|
||||
<input type="text" id="search" class="form-control me-3">
|
||||
<button type="button" class="btn btn-primary" disabled>Search</button>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
</header>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue