X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=trash%2Fdashboard.py;h=62a0618f6df9deb85352a1e819d83547a9e8fcc4;hb=df482c9a6212b2b7134e8130358d213562b9df44;hp=c61c6e7646782a0d5eceac91dae85f1b99a566b4;hpb=19ec09726b0265b30fb756c405c47dc789983256;p=myslice.git diff --git a/trash/dashboard.py b/trash/dashboard.py index c61c6e76..62a0618f 100644 --- a/trash/dashboard.py +++ b/trash/dashboard.py @@ -10,7 +10,9 @@ from django.contrib.auth.decorators import login_required from engine.page import Page from engine.manifoldquery import ManifoldQuery +from plugins.verticallayout import VerticalLayout from plugins.slicelist import SliceList +from plugins.querycode import QueryCode # from myslice.viewutils import topmenu_items, the_user @@ -31,15 +33,25 @@ def dashboard_view (request): sort='slice_hrn',) page.enqueue_query (slices_query) - main_plugin = SliceList ( # setting visible attributes first + main_plugin = VerticalLayout ( page=page, - title='Asynchroneous SliceList', - header='slices list', - with_datatables=False, - toggled=True, - # this is the query at the core of the slice list - query=slices_query, - ) + title="Putting stuff together", + sons=[ + QueryCode ( + page=page, + title="Vizualize your query (no syntax highlight for now)", + query=slices_query, + toggled=False, + ), + SliceList ( # setting visible attributes first + page=page, + title='Asynchroneous SliceList', + header='slices list', + with_datatables=False, + # this is the query at the core of the slice list + query=slices_query, + ), + ]) # variables that will get passed to the view-plugin.html template template_env = {}