google-code-export / django-grappelli

Automatically exported from code.google.com/p/django-grappelli
0 stars 0 forks source link

Add jQuery tabs into admin #78

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
It will be nice to add jquery tabs (like this http://cloud27.com/projects/
project/django_admin_tabs/) into admin interface

Original issue reported on code.google.com by d.ratush...@gmail.com on 15 Aug 2009 at 7:40

GoogleCodeExporter commented 9 years ago
cant change type to Enhancement

Original comment by d.ratush...@gmail.com on 15 Aug 2009 at 7:43

GoogleCodeExporter commented 9 years ago
can you explain this in more detail? because the link doesn´t really explain 
the
benefits of using tabs. an example would be nice. what tabs and what content?

thanks,
patrick

Original comment by sehmaschine on 15 Aug 2009 at 10:31

GoogleCodeExporter commented 9 years ago
My mistake - here is correct url:
http://cloud27.com/projects/project/django_admin_tabs/
When you have several (actually more than 4) applications in admin, admin index 
became overwhelming.
Also you can group applications by type (article management, photo management, 
user 
management, grappelli management etc) in the tabs.
Each tab contains user-defined list of applications. Tabs must be created 
dynamicaly, based on settings.py.

Here an examples:
settings.py
NSTALLED_APPS = (
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',

    'django.contrib.admin',
    'orders',
    'personal',
    'photologue',
    'departments',
    'production',
    'materials',
    'reversion',
    'dbfimport',
    'django-cron',
    'contacts',
    'tagging',
    'grappelli',
    'todo',
)

ADMIN_TABS = (("Production",['production/','materials/']),
              ("Todo",['todo/',]),
          ("Structure", ['departments/','personal/']),
          ("Grapelli", ['grappelli/']),
              ("Admin",['auth/','tagging/','photologue/']),)

and it looks like this:
http://trbs.net/photos/django-admin-tabs/

Original comment by d.ratush...@gmail.com on 16 Aug 2009 at 3:46

GoogleCodeExporter commented 9 years ago
now I understand. I´ll check that out ... 

btw, this functionality is already integrated. just use an admin-site-object to 
group
applications and use the navigation to show the different site-objects.
see http://vonautomatisch.at/media/uploads/grappelli/index_big.jpg ... of 
course,
it´s not exactly tabs, but it´s very similar (and it´s more powerful since 
the
status/choice of your index-site is preserved - going back to the index-site 
will
bring you back to your site-object).

I´ll take a look at admin-tabs and I´ll post here again.

Original comment by sehmaschine on 16 Aug 2009 at 7:47

GoogleCodeExporter commented 9 years ago
I´ve check the admin-tabs and here´s my impression:
basically, the way apps/models are currently listed on the admin-index-site is
unsatisfying. I´ve already written about that in "Django Issue".

I think that INSTALLED_APPS should be decoupled from the way these apps are 
listed on
the admin-page. an additional option to achieve that could be very similar to
ADMIN_TABS. I think it´s strange that admin-definitions are in admin.py - but 
the
main admin-page is defined in settings.py. very incoherent.

however, with the current behaviour in mind, admin-tabs just adds another level 
of
complexity to something which should be solved differently (IMHO).

my main problem with admin-tabs is this: Let´s say I click "maintenance" on the
index-page and then I select an app/model and do some editing. when going back 
to the
index-page, I´d like to have "maintenance" selected (because that´s what I 
did last).
of course, this could be achieved with sessions and saving the chosen tab.

if you feel I´m missing something please post again. for now I´m setting this 
to
wontfox for the mentioned reasons.

Original comment by sehmaschine on 16 Aug 2009 at 12:32