From: Loic Baron Date: Thu, 26 Sep 2013 10:16:07 +0000 (+0200) Subject: Merge branch 'master' of git://git.onelab.eu/myslice X-Git-Tag: myslice-0.2-5~85^2~7^2 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=15ca59cb1f80be244df33026add2cf97f2f87a62;hp=-c;p=unfold.git Merge branch 'master' of git://git.onelab.eu/myslice Conflicts: portal/registrationview.py --- 15ca59cb1f80be244df33026add2cf97f2f87a62 diff --combined portal/sliceview.py index 97802f60,d3dea6f8..4f66dfdc --- a/portal/sliceview.py +++ b/portal/sliceview.py @@@ -24,8 -24,7 +24,8 @@@ from plugins.messages im tmp_default_slice='ple.upmc.myslicedemo' # temporary : turn off the users part to speed things up -do_query_users=True +#do_query_users=True +do_query_users=False class SliceView (LoginRequiredAutoLogoutView): @@@ -33,7 -32,6 +33,7 @@@ page = Page(request) page.add_css_files ('css/slice-view.css') + page.add_js_files ( [ "js/common.functions.js" ] ) page.add_js_chunks ('$(function() { console.log("sliceview: jQuery version " + $.fn.jquery); });') page.add_js_chunks ('$(function() { console.log("sliceview: users turned %s"); });'%("on" if do_query_users else "off")) page.expose_js_metadata() @@@ -139,13 -137,13 +139,13 @@@ 'aoColumns' : [None, None, None, None, {'bSortable': False}], 'iDisplayLength': 25, 'bLengthChange' : True, - 'bAutiWidth' : True, + 'bAutoWidth' : True, }, ) resources_query_editor = QueryEditor( page = page, - query = sq_resource, + query = query_resource_all, title = "Select Columns", ) resources_active_filters = ActiveFilters( @@@ -207,11 -205,9 +207,9 @@@ query_all = query_user_all, checkboxes = True, datatables_options = { - # for now we turn off sorting on the checkboxes columns this way - # this of course should be automatic in hazelnut - 'aoColumns' : [None, None, None, None, {'bSortable': False}], 'iDisplayLength' : 25, 'bLengthChange' : True, + 'bAutoWidth' : True, }, )) @@@ -237,11 -233,9 +235,9 @@@ query = sq_measurement, checkboxes = True, datatables_options = { - # for now we turn off sorting on the checkboxes columns this way - # this of course should be automatic in hazelnut - 'aoColumns' : [None, None, None, None, {'bSortable': False}], 'iDisplayLength' : 25, 'bLengthChange' : True, + 'bAutoWidth' : True, }, )) diff --combined portal/templates/registration_view.html index 71ef1b86,c895f52c..039a07aa --- a/portal/templates/registration_view.html +++ b/portal/templates/registration_view.html @@@ -1,13 -1,5 +1,5 @@@ {% extends "layout-unfold1.html" %} - {% block head %} - - - - - - {% endblock %} - {% block unfold1_main %}
@@@ -24,7 -16,7 +16,7 @@@ {% endif %}
-
+
{% csrf_token %}
@@@ -47,8 -39,7 +39,8 @@@