Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP Cascade compact ui: admin form #365

Closed
wants to merge 7 commits into from

Conversation

haricot
Copy link
Contributor

@haricot haricot commented Nov 25, 2019

Needed to merged before:
jrief/django-entangled#3
#363

@haricot haricot changed the title WIP compact cascade admin form plugin ui in normal size model WIP compact cascade admin form plugin ui in normal size modal Nov 25, 2019
Update mixins.py : clean code
@haricot haricot changed the title WIP compact cascade admin form plugin ui in normal size modal WIP compact cascade admin form ui Nov 25, 2019
@haricot haricot changed the title WIP compact cascade admin form ui WIP Cascade compact ui: admin form Nov 25, 2019
@haricot
Copy link
Contributor Author

haricot commented Dec 3, 2019

In this proposal, the Cascade compact admin form can be displayed in very small window.
The widget selection options (operating system) are replaced by the input list options, allowing you to see as many options in the visible space without so scrolling and this makes it easy to add icons .
The cascading font icon corresponds to the name value bootstrap and the automatic import of the correct icon.The design of the icons are not very important as far as they are different.
The fieldbox are defined in parentheses or list and fields are tweak in the fieldset.
This widget uses cascading style sheets for interaction, I envisioned a javascript version if needed.
This compact design may be optional during configuration.

Screenshot_2019-12-03 Change bootstrap column plugin model Django site admin(2)

@haricot
Copy link
Contributor Author

haricot commented Dec 3, 2019

Input select CSS in action:

Peek 03-12-2019 12-12

@jrief
Copy link
Owner

jrief commented Dec 3, 2019

This layout look really cool!
Does it need your pull request on entangled fields?

I'm currently implementing the possibility to nest EntangledForms inside other EntangledForms.

@haricot
Copy link
Contributor Author

haricot commented Dec 3, 2019

Yes that use my PR entangled for this, proceeded like this :

        glossary_fields = ((list(width_fields.keys()), list(offset_fields.keys()),list(reorder_fields.keys()),\
                           list(responsive_fields.keys())))
 
        class Meta:
            entangled_fields = {'glossary': glossary_fields}
            entangled_field_subsets=(
(None , { 'description': '<div><b>Column</b><i class="icon-col-title"> </i></div> <label for="help"><input type="checkbox" id="help" name="help" > Help</label>' , 'classes': ( 'cascade_horizontal',), "fields" : (list(width_fields.keys()))}),
(None , { 'description': '<div><b>Offset</b><i class="icon-offset-title"> </i></div> <label for="help"><input type="checkbox" id="help" name="help" > Help</label>' , 'classes': ( 'cascade_horizontal'), "fields" :  (list(offset_fields.keys())) }),
(None , { 'description': '<div><b>Order</b> <i class="icon-order-title"></i> </div> <label for="help"><input type="checkbox" id="help" name="help" > Help</label>' , 'classes': ( 'cascade_horizontal'), "fields" :  (list(reorder_fields.keys())) }),
(None , { 'description': '<div><b>Visible</b><i class="icon-visible-title"></i> </div> <label for="help"><input type="checkbox" id="help" name="help" > Help</label>' , 'classes': ( 'cascade_horizontal'), "fields" :  ( list(responsive_fields.keys())) })
            )

Good news for feature possibility to nest EntangledForms inside other EntangledForms.

@haricot
Copy link
Contributor Author

haricot commented Dec 15, 2019

I'm glad you like the compact interface, and thank you very much for the django-entangled branch develop.
For information, I started a branch master...haricot:nested_entangled_ui,
I encountered a problem with the translations in the file https://github.com/haricot/djangocms-cascade/blob/nested_entangled_ui/cmsplugin_cascade/bootstrap4/mixins.py which I have dodged for the moment.
Also I haven't been able to work the form validations yet.
However, it works well apart from that. I can now add the following, hoping that this is appropriate.

@haricot
Copy link
Contributor Author

haricot commented Jan 5, 2020

Closed in flavor #368

@haricot haricot closed this Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants