Django-jet: How Make Inlines In One Page

Created on 13 Jun 2017  路  3Comments  路  Source: geex-arts/django-jet

How can I make Admin form Inline Stacked or tabular in same form page? Thanks!

Normally It's appear in other page I need all my inlines in same general page :/ How can I make it?

Most helpful comment

Hi all,
i know this is an old issue, but may be someone come across this issue and wonder the solution, i have a quite hackish way to overcome this.

just define custom css for curent model admin:

class Media:
        css = {
            'all': (
                'css/admin.css',
            )
 }

and create css accordingly with this:

.form-row .inline-group {
    margin-top: 30px;
}

.changeform-tabs ~ .module.selected, .changeform-tabs ~ .inline-group.selected {
    display: block !important;
}
body.change-form #content-main>form>div>.module.initialized, body.change-form #content-main>form>div>.inline-group.initialized {
    display: block!important;
}
.changeform-tabs-item:last-child {
    display: none;
}

hope this help

All 3 comments

I believe that by deault is not possible, is the Jet way.

Please come to the django-jet Discord server so we can organize if you like:

Welcome! 馃槃

Hi all,
i know this is an old issue, but may be someone come across this issue and wonder the solution, i have a quite hackish way to overcome this.

just define custom css for curent model admin:

class Media:
        css = {
            'all': (
                'css/admin.css',
            )
 }

and create css accordingly with this:

.form-row .inline-group {
    margin-top: 30px;
}

.changeform-tabs ~ .module.selected, .changeform-tabs ~ .inline-group.selected {
    display: block !important;
}
body.change-form #content-main>form>div>.module.initialized, body.change-form #content-main>form>div>.inline-group.initialized {
    display: block!important;
}
.changeform-tabs-item:last-child {
    display: none;
}

hope this help

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ikresoft picture ikresoft  路  5Comments

leogout picture leogout  路  8Comments

PaoloC68 picture PaoloC68  路  7Comments

Zundrium picture Zundrium  路  9Comments

sysint64 picture sysint64  路  3Comments