diff --git a/ref-test/app/admin/templates/admin/settings/index.html b/ref-test/app/admin/templates/admin/settings/index.html index 1f87503..43a2215 100644 --- a/ref-test/app/admin/templates/admin/settings/index.html +++ b/ref-test/app/admin/templates/admin/settings/index.html @@ -57,7 +57,7 @@ - Uploaded + Name Exams @@ -68,7 +68,9 @@ {% for dataset in datasets %} - {{ dataset.date.strftime('%d %b %Y %H:%M') }} + + {{ dataset.get_name() }} + {{ dataset.tests|length }} diff --git a/ref-test/app/admin/templates/admin/settings/questions.html b/ref-test/app/admin/templates/admin/settings/questions.html index 9c2ea08..eed4611 100644 --- a/ref-test/app/admin/templates/admin/settings/questions.html +++ b/ref-test/app/admin/templates/admin/settings/questions.html @@ -9,9 +9,12 @@ + + + Name - Uploaded + Updated Author @@ -36,6 +39,9 @@ {% endif %} + + {{ element.get_name() }} + {{ element.date.strftime('%d %b %Y %H:%M') }} @@ -47,18 +53,27 @@ + + + @@ -72,13 +87,23 @@ {% else %}
- There are no question datasets uploaded. Please use the panel below to upload a new question dataset. + There are no question datasets uploaded. Please use the panel below to upload a new question dataset or create a new dataset using the editor console.
{% endif %} +
+ +

Upload Question Dataset

{{ form.hidden_tag() }} +
+ {{ form.name(class_="form-control", autofocus=true, placeholder="Enter Name of Dataset") }} + {{ form.name.label }} +
{{ form.data_file() }}
@@ -89,8 +114,8 @@
-
@@ -106,10 +131,10 @@ $(document).ready(function() { $('#question-datasets-table').DataTable({ 'columnDefs': [ - {'sortable': false, 'targets': [0,4]}, - {'searchable': false, 'targets': [0,3,4]} + {'sortable': false, 'targets': [0,5]}, + {'searchable': false, 'targets': [1,2,3]} ], - 'order': [[1, 'desc'], [2, 'asc']], + 'order': [[1, 'asc'], [2, 'desc'], [3, 'asc']], 'responsive': 'true', 'fixedHeader': 'true', });