jrief / djangocms-cascade

Build Single Page Applications using the Django-CMS plugin system
MIT License
165 stars 85 forks source link

WIP Compact admin form UI with widgets attributes #368

Open haricot opened 4 years ago

haricot commented 4 years ago

same layout as related https://github.com/jrief/djangocms-cascade/pull/365 This uses a widgets attributes for nested fields organized with specific helpers.

Be enabled with the environment variable: COMPACT_FORM=True (I tried with app_settings, but it doesn't work in CascadeUtilitiesMixin due to translation)

The widget cascade selector icon is associated with HTML / CSS / SVG and the fieldsets are defined according to the nested widget attribute group.

And this use a pull request https://github.com/jrief/djangocms-cascade/pull/367 which also gives the possibility of filtering the fields for CascadeUtilitiesMixin.

git clone https://github.com/haricot/djangocms-cascade -b widget_attrs_group_nested
cd djangocms-cascade/examples/
python3.6 -m venv .venv
poetry shell
poetry install
npm install
./manage.py migrate
./manage.py createsuperuser

COMPACT_FORM=True ./manage.py runserver