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):
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()
'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(
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,
},
))
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,
},
))
{% extends "layout-unfold1.html" %}
- {% block head %}
- <link rel="stylesheet" type="text/css" href="{{STATIC_URL}}/css/onelab.css" />
- <!-- xxx ideally only onelab.css but ... xxx -->
- <link rel="stylesheet" type="text/css" href="{{STATIC_URL}}/css/registration.css" />
- <script type="text/javascript" src="{{STATIC_URL}}/js/jquery.validate.js"></script>
- <script type="text/javascript" src="{{STATIC_URL}}/js/my_account.register.js"></script>
- {% endblock %}
-
{% block unfold1_main %}
<div class="onelab-title well well-lg">
{% endif %}
<div class="well">
- <form class="cmxform form-horizontal" id="registrationForm" method="post" action="" enctype="multipart/form-data" role="form">
+ <form class="cmxform form-horizontal" id="registrationForm" method="post" action="" enctype="multipart/form-data" role="form">
<fieldset>
{% csrf_token %}
<div class="form-group">
<select id="auth_list" name="authority_hrn" size="1" class="form-control" required>
{% if authorities %}
{% for authority in authorities %}
- <option value="{{ authority.authority_hrn }}">{{authority.name}} ({{authority.authority_hrn}})</option>
+ <option value="{{ authority.authority_hrn }}"/>{{authority.authority_hrn}}</option>
+ <!-- <option value="{{ authority.authority_hrn }}">{{authority.name}} ({{authority.authority_hrn}})</option> -->
{% endfor %}
{% else %} <!-- should not happen -->
<option value="test">No authority found !!! </option>
</div>
</fieldset>
</form>
+>>>>>>> abb43f86edd5a2888cb96ca92a58350db9e32fcf
</div>
{% endblock %}