+ 'aoColumns' : [None, None, None, None, {'bSortable': False}],
+ 'iDisplayLength': 25,
+ 'bLengthChange' : True,
+ 'bAutoWidth' : True,
+ },
+ )
+
+ resources_query_editor = QueryEditor(
+ page = page,
+ query = query_resource_all,
+ title = "Select Columns",
+ )
+ resources_active_filters = ActiveFilters(
+ page = page,
+ query = sq_resource,
+ title = "Active Filters ?",
+ )
+
+ # List area itself is a Stack with hazelnut on top,
+ # and a togglable tabs for customization plugins
+ resources_as_list_area = Stack(
+ page = page,
+ title = 'Resources as a List',
+ domid = 'resources-list-area',
+ sons= [ resources_as_list,
+ Tabs ( page=page,
+ title="Customize Resources layout",
+ togglable=True,
+ toggled='persistent',
+ domid="customize-resources",
+ outline_complete=True,
+ sons = [ resources_query_editor, resources_active_filters, ],
+ ),
+ ],
+ )
+ resources_area = Tabs ( page=page,
+ domid="resources",
+ togglable=True,
+ title="Resources",
+ outline_complete=True,
+ sons=[ resources_as_map, resources_as_list_area, ],
+ active_domid = 'resources-map',
+ )
+ main_stack.insert (resources_area)
+
+
+ # --------------------------------------------------------------------------
+ # USERS
+
+ if do_query_users:
+ tab_users = Tabs(
+ page = page,
+ domid = 'users',
+ outline_complete = True,
+ togglable = True,
+ title = 'Users',
+ active_domid = 'checkboxes2',
+ )
+ main_stack.insert(tab_users)
+
+ tab_users.insert(Hazelnut(
+ page = page,
+ title = 'Users List',
+ domid = 'checkboxes2',
+ # tab's sons preferably turn this off
+ togglable = False,
+ # this is the query at the core of the slice list
+ query = sq_user,
+ query_all = query_user_all,
+ checkboxes = True,
+ datatables_options = {
+ 'iDisplayLength' : 25,
+ 'bLengthChange' : True,
+ 'bAutoWidth' : True,
+ },
+ ))