X-Git-Url: http://mmka.chem.univ.gda.pl/gitweb/?a=blobdiff_plain;f=qcg%2Ftemplates%2Fqcg%2Fjobs.html;h=1b376168801d529804ad980f77032172eecc48fd;hb=c7166c1bd70f9a2b355a66bbcfc7046f446c061f;hp=747d382c11af534adf9032815bf45e16c2b018b6;hpb=52e1db7e850a63b8271e348c487bd60853ed73e8;p=qcg-portal.git diff --git a/qcg/templates/qcg/jobs.html b/qcg/templates/qcg/jobs.html index 747d382..1b37616 100644 --- a/qcg/templates/qcg/jobs.html +++ b/qcg/templates/qcg/jobs.html @@ -1,23 +1,16 @@ {% extends 'qcg/base.html' %} - -{% load staticfiles %} +{% load staticfiles bootstrap3 query_string qcg_utils %} {% block extra_css %} - - + {% endblock %} {% block extra_js %} + + + {% endblock %} {% block container %} +
+ {% get_params_as_hidden 'host' 'purged' 'submission' 'finish' %} + +
+

{% block title %}Lista zadań{% endblock %}

-
-
-
- - -
-
- - -
-
- - + {% if selected_filters %} +
+
+ Wyczyść wszystkie filtry + Wybrane filtry: + {% for label, param, val in selected_filters %} + {{ label }}  + {% endfor %}
-
- -
- -
+
+ {% endif %} + + - - - - - - - - + + {% if columns.DESCRIPTION in displayed %}{% endif %} + {% if columns.SUBMISSION in displayed %}{% endif %} + {% if columns.START in displayed %}{% endif %} + {% if columns.END in displayed %}{% endif %} + {% if columns.STATUS in displayed %}{% endif %} + {% if columns.HOST in displayed %}{% endif %} + +{# #} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + {% regroup page by job as jobs %} + + {% for job in jobs %} + {% ifequal job.list|length 1 %} + {% with job.list.0 as task %} + + + {% if columns.DESCRIPTION in displayed %}{% endif %} + {% if columns.SUBMISSION in displayed %}{% endif %} + {% if columns.START in displayed %}{% endif %} + {% if columns.END in displayed %}{% endif %} + {% if columns.STATUS in displayed %}{% endif %} + {% if columns.HOST in displayed %}{% endif %} + + + {% endwith %} + {% else %} + + + {% if columns.DESCRIPTION in displayed %}{% endif %} + {% if columns.SUBMISSION in displayed %}{% endif %} + {% if columns.START in displayed %}{% endif %} + {% if columns.END in displayed %}{% endif %} + {% if columns.STATUS in displayed %}{% endif %} + {% if columns.HOST in displayed %}{% endif %} + + + + {% for task in job.list %} + + + {% if columns.DESCRIPTION in displayed %}{% endif %} + {% if columns.SUBMISSION in displayed %}{% endif %} + {% if columns.START in displayed %}{% endif %} + {% if columns.END in displayed %}{% endif %} + {% if columns.STATUS in displayed %}{% endif %} + {% if columns.HOST in displayed %}{% endif %} + + + {% endfor %} + {% endifequal %} + {% endfor %}
OpisWysłaneStartKoniecStatusHostUwagiOpisWysłaneStartKoniecStatusHostUwagi
- - - - urban04.07.13 17:03PENDINGhydra
- - - - urban04.07.13 17:03RUNNINGinula
- - - - urban04.07.13 17:03FINISHEDinula
- - - - urban04.07.13 17:03CANCELEDinula
+ + + {% if columns.JOB_ID in displayed %}{{ task }}{% endif %} + + {% if not task.purged %} + + + + {% endif %} + {{ task.note }}{{ task.submission_time|date:"CUSTOM_DATETIME_FORMAT" }}{{ task.start_time|date:"CUSTOM_DATETIME_FORMAT" }}{{ task.finish_time|date:"CUSTOM_DATETIME_FORMAT" }}{{ task.get_status_display }}{{ task.short_host_names|join:', ' }}szczegóły ›
+ + + {% if columns.JOB_ID in displayed %}{{ job.grouper }}{% endif %} + + {% if not job.grouper.purged %} + + {% endif %} + {{ job.grouper.note }}{{ job.grouper.submission_time|date:"CUSTOM_DATETIME_FORMAT" }}-{{ job.grouper.finish_time|date:"CUSTOM_DATETIME_FORMAT" }}{{ job.grouper.get_status_display }}-szczegóły ›
+ + + {% if columns.JOB_ID in displayed %}{{ task }}{% endif %} + + {% if not task.purged %} + + {% endif %} + {{ task.note }}{{ task.submission_time|date:"CUSTOM_DATETIME_FORMAT" }}{{ task.start_time|date:"CUSTOM_DATETIME_FORMAT" }}{{ task.finish_time|date:"CUSTOM_DATETIME_FORMAT" }}{{ task.get_status_display }}{{ task.short_host_names|join:', ' }}szczegóły ›
+ {% if not page %} +
+ + Brak zadań spełniających wybrane kryteria +
+ {% endif %} + + + + + {# Column selection modal #} + + {% endblock container %}