-
-{% endmacro %}
+
+
+
diff --git a/python/ccdb/webgui/templates/objects_table_info.html b/python/ccdb/webgui/templates/objects_table_info.html
index c9e5852..0e94796 100644
--- a/python/ccdb/webgui/templates/objects_table_info.html
+++ b/python/ccdb/webgui/templates/objects_table_info.html
@@ -1,13 +1,35 @@
-@require(id, name, path, created, modified, author, comment)
-
-
@name ?
-
-
- DB ID: | : @id |
- Full path | : @path |
- Created | : @created |
- Modified | : @modified |
- Author | : @author |
- Comment | : @comment |
+
+
+
+
+
+ DB ID |
+ {{ table.id }} |
+
+
+ Full path |
+ {{ table.path }} |
+
+
+ Created |
+ {{ table.created.strftime('%Y-%m-%d %H:%M:%S') }} |
+
+
+ Modified |
+ {{ table.modified.strftime('%Y-%m-%d %H:%M:%S') }} |
+
+
+ Author |
+ {{ table.author }} |
+
+
+ Comment |
+ {{ table.comment }} |
+
+
-
\ No newline at end of file
+
+
diff --git a/python/ccdb/webgui/templates/simple_tree.html b/python/ccdb/webgui/templates/simple_tree.html
index 646e1f8..66d47f5 100644
--- a/python/ccdb/webgui/templates/simple_tree.html
+++ b/python/ccdb/webgui/templates/simple_tree.html
@@ -1,10 +1,10 @@
{% extends 'dash_base.html' %}
{% block header %}
-
-
+
+
-
{% block title %}Tables{% endblock %}
{% endblock %}
{% block content %}
@@ -126,107 +101,111 @@ {% block title %}Tables{% endblock %}
+
-
{% endblock %}
diff --git a/python/ccdb/webgui/templates/simple_versions.html b/python/ccdb/webgui/templates/simple_versions.html
index c94e7ab..f40065f 100644
--- a/python/ccdb/webgui/templates/simple_versions.html
+++ b/python/ccdb/webgui/templates/simple_versions.html
@@ -1,5 +1,4 @@
{% extends 'dash_base.html' %}
-
{% block header %}
{% block title %}Versions{% endblock %}
{% endblock %}
@@ -7,65 +6,98 @@
{% block title %}Versions{% endblock %}
{% block content %}
-
+
+
+ {% if assignments %}
+
+
+
+ Run Min |
+ Run Max |
+ Created |
+ Variation |
+ Actions |
+
+
+
+ {% for assignment in assignments %}
+
+ {{ assignment.run_range.min }} |
+ {{ assignment.run_range.max }} |
+ {{ assignment.created }} |
+ {{ assignment.variation.name }} |
+ View |
+
+ {% else %}
+
+ No assignments found. |
+
+ {% endfor %}
+
+
+ {% endif %}
+
+
+
-
- {% if assignments %}
-
-
-
- Run Min |
- Run Max |
- Created |
- Variation |
- Actions |
-
-
-
- {% for assignment in assignments %}
-
- {{ assignment.run_range.min }} |
- {{ assignment.run_range.max }} |
- {{ assignment.created }} |
- {{ assignment.variation.name }} |
- view |
-
- {% else %}
-
- No assignments found. |
-
- {% endfor %}
-
-
- {% endif %}
+
+
+
-
-
-
+
+ $("div.min-max-wrapper").html('
' +
+ '' +
+ '' +
+ '
');
-
-
-
+ $.fn.dataTable.ext.search.push(
+ function(settings, data, dataIndex) {
+ var min = parseInt($('#minRun').val(), 10);
+ var max = parseInt($('#maxRun').val(), 10);
+ var runMin = parseFloat(data[0]) || 0;
+ var runMax = parseFloat(data[1]) || 0;
+
+ if ((isNaN(min) && isNaN(max)) ||
+ (isNaN(min) && runMax <= max) ||
+ (min <= runMin && isNaN(max)) ||
+ (min <= runMin && runMax <= max)) {
+ return true;
+ }
+ return false;
+ }
+ );
+
+ $('#minRun, #maxRun').keyup(function() {
+ table.draw();
+ });
+});
+
+
{% endblock %}
diff --git a/python/ccdb/webgui/templates/test_request.html b/python/ccdb/webgui/templates/test_request.html
index 37bcbd7..3619411 100644
--- a/python/ccdb/webgui/templates/test_request.html
+++ b/python/ccdb/webgui/templates/test_request.html
@@ -67,35 +67,26 @@ {% block title %}CCDB - Test Request{% endblock %}
{
console.log(event);
//type table
- let type_table = document.getElementsByTagName('input')[0];
- type_table = type_table.value;
- //event.preventDefault();
-
- console.log(type_table);
+ let type_table = document.getElementById('tableName').value;
if(!type_table) {
alert("Please specify type table");
return false;
}
//run number
- let run = document.getElementsByTagName('input')[1];
- run = run.value;
- console.log(run)
+ let run = document.getElementById('runNumber').value
if(!run){
alert("Please specify run number");
return false;
}
//variation
- let variation = document.getElementsByTagName('input')[2];
- variation= variation.value
- console.log(variation)
+ let variation = document.getElementById('variationSelect').value;
//now we have everything to build request
let request = type_table+":"+run +":"+ variation;
//is there a date?
- let date = document.getElementsByTagName('input')[3];
- date= date.value;
+ let date = document.getElementById('dateText').value;
if(date) request = request + ":" +date;
console.log(request)