{% load bootstrap %} {% load user_groups %} {% load guardian_tags %} {% get_obj_perms request.user for subsidy.organization as "user_org_perms" %}
{% if perms.scipost.can_manage_subsidies %} {% endif %} {% if subsidy.date_until %} {% endif %} {% if perms.scipost.can_manage_subsidies %} {% endif %}
From:{% if subsidy.organization.details_publicly_viewable or perms.scipost.can_manage_organizations %}{{ subsidy.organization }}{% else %}{{ subsidy.organization }}{% endif %}
Type:{{ subsidy.get_subsidy_type_display }}
Description:{{ subsidy.description }}
Amount:{% if subsidy.amount_publicly_shown or perms.scipost.can_manage_subsidies or "can_view_org_contacts" in user_org_perms %}€{{ subsidy.amount }}{% else %}-{% endif %}{% if perms.scipost.can_manage_subsidies or "can_view_org_contacts" in user_org_perms %} {% if subsidy.amount_publicly_shown %}publicly visible{% else %}publicly invisible{% endif %}  Make it {% if subsidy.amount_publicly_shown %}in{% endif %}visible{% endif %}
Date from:{{ subsidy.date_from }}
Date until:{{ subsidy.date_until }}
Allocation algorithm {{ subsidy.get_algorithm_display }}
Renewable?{% if subsidy.renewable == True %}Yes, renewal action date: {{ subsidy.renewal_action_date }}{% elif subsidy.renewable == None %}Undetermined [please update]{% else %}No{% endif %}
Status {{ subsidy.get_status_display }}
Paid on {% if subsidy.paid_on %}{{ subsidy.paid_on }}{% else %}{% include "bi/cone-striped.html" %}{% endif %}
{% if subsidy.renewal_of.all|length > 0 %}

Renewal of:

{% endif %} {% if subsidy.renewed_by.all|length > 0 %}

Renewed by:

{% endif %}
{% if "finadmin" in user_roles %}

Payments

{% endif %}

Attachments

{% if perms.scipost.can_manage_subsidies %} {% endif %} {% if perms.scipost.can_manage_subsidies or "can_view_org_contacts" in user_org_perms %} {% endif %} {% for att in subsidy.attachments.all %} {% if att.publicly_visible or perms.scipost.can_manage_subsidies or "can_view_org_contacts" in user_org_perms %} {% if perms.scipost.can_manage_subsidies or "can_view_org_contacts" in user_org_perms %} {% if perms.scipost.can_manage_subsidies %} {% endif %} {% endif %} {% endif %} {% empty %} {% endfor %}
File name DateVisibility
{{ att.filename }} {{ att.date }}{{ att.get_visibility_display }}Update Delete
No attachment found
{% include "pins/_hx_notes_list.html" with object=subsidy %} {% if 'finadmin' in user_roles %}
[FinAdmin]

Expenditures compensated by this Subsidy

{% if subsidy.allocatable %} Allocate this Subsidy {% endif %}
{% for doi_label, pf in subsidy.compensated_pubfracs_dict.items %} {% empty %} {% endfor %}
PubFrac compensations
Publication PubFrac value
{{ doi_label }} {{ pf.fraction }} €{{ pf.value|floatformat:0 }}
No compensation found
Total compensations from this Subsidy €{{ subsidy.total_compensations|floatformat:0 }}
Balance
Subsidy amount €{{ subsidy.amount }}
PubFrac Compensations €{{ subsidy.total_compensations|floatformat:0 }}
Remainder (allocated to our reserve fund) €{{ subsidy.remainder|floatformat:0 }}
{% endif %}