{% load define_action %} {% load format %} {% load workspecification %}
{% if group is None %} {% else %} {% endif %}
{% can_be_viewed_by specification user as can_be_viewed %} {% if can_be_viewed %} {{ specification.id }} {% else %} {{ specification.id }} {% endif %}
{{ specification.created_by }}
{% if specification.get_submission_status_display == "submitted" %} {% define "green" as badgecolor %} {% define "The work specification has been succcesfully processed in ATDB." as badgeTitle %} {% endif %} {% if specification.get_submission_status_display == "error" %} {% define "red" as badgecolor %} {% define "Retrieving the files to process resulted in an error. Please reports this to the support helpdesk." as badgeTitle %} {% endif %} {% if specification.get_submission_status_display == "defining" %} {% define "secondary" as badgecolor %} {% define "The work specification has been send to ATDB but has not yet been processed there." as badgeTitle %} {% endif %} {% if specification.get_submission_status_display == "undefined" or specification.get_submission_status_display == "not submitted" %} {% define "primary" as badgecolor %} {% define "The work specification has been created but has not yet been send to ATDB for processing." as badgeTitle %} {% endif %}
{{ specification.get_submission_status_display }}
{{ specification.selected_workflow }}
{% if specification.related_tasks %} {% else %}
-
{% endif %}
{% format_size specification.get_file_info.0 %}
{% if specification.batch_size > 0 %} {% format_size specification.get_file_info.2 %} {% else %} {% format_size specification.get_file_info.0 %} {% endif %}
{{ specification.get_file_info.1 }}
{% if specification.batch_size > 0 %} {{ specification.batch_size }} {% else %} {{ specification.get_file_info.1 }} {% endif %}
{% if specification.batch_size > 0 %} {% elif specification.get_file_info.2 > 8000000000 and specification.get_file_info.1 > 1 %} {% else %} {% endif %}
{% if specification.successor.count %} {% for successor in specification.successor.all %} {{ successor.pk }} {% if not forloop.last %}, {% endif %} {% endfor %} {% else %}
-
{% endif %}
{% if specification.predecessor_specification %} {{ specification.predecessor_specification.pk }} {% else %}
-
{% endif %}
{% can_be_edited_by specification user as can_be_edited %} {% if not can_be_edited %} {% elif not specification.is_editable %} {% else %} {% endif %} {% if not can_be_edited %} {% elif specification.successor.count %} {% else %} {% endif %}
{% csrf_token %} {% can_be_submitted_by specification user as can_be_submitted %} {% if not can_be_submitted %} {% elif not specification.is_editable %} {% elif specification.inputs.surls|length == 0 %} {% else %} {% endif %}