{% 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 %}
{% if specification.successor.count %}
{% for successor in specification.successor.all %}
{{ successor.pk }}
{% if not forloop.last %}, {% endif %}
{% endfor %}
{% else %}