SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit 57e8903e authored by George Katsikas's avatar George Katsikas :goat:
Browse files

fix inconsistent naming of subsidy creation link

parent 0f4f4644
No related branches found
No related tags found
No related merge requests found
...@@ -379,7 +379,7 @@ class OrganizationSponsorshipSubsidyCreateView(PermissionsMixin, CreateView): ...@@ -379,7 +379,7 @@ class OrganizationSponsorshipSubsidyCreateView(PermissionsMixin, CreateView):
organization = get_object_or_404( organization = get_object_or_404(
Organization, pk=self.kwargs.get("organization_id") Organization, pk=self.kwargs.get("organization_id")
) )
last_subsidy = Subsidy.objects.filter(organization=organization).last() last_subsidy = Subsidy.objects.filter(organization=organization).first()
current_year = timezone.now().year current_year = timezone.now().year
return { return {
"organization": organization, "organization": organization,
......
...@@ -208,7 +208,7 @@ ...@@ -208,7 +208,7 @@
<div class="tab-pane pt-4" id="support-{{ org.id }}" role="tabpanel" aria-labelledby="support-{{ org.id }}-tab"> <div class="tab-pane pt-4" id="support-{{ org.id }}" role="tabpanel" aria-labelledby="support-{{ org.id }}-tab">
<h3 class="highlight">Support history</h3> <h3 class="highlight">Support history</h3>
{% if 'finadmin' in user_roles %} {% if 'finadmin' in user_roles %}
<a href="{% url "finances:subsidy_sponsorship_create" organization_id=org.id %}">Create a new sponsorship agreement</a> <a href="{% url "finances:subsidy_sponsorship_create" organization_id=org.id %}">Create a new subsidy from this Organization</a>
{% endif %} {% endif %}
{% if org.subsidy_set.obtained|length > 0 or org.children.all|length > 0 %} {% if org.subsidy_set.obtained|length > 0 or org.children.all|length > 0 %}
{% if org.subsidy_set.obtained|length > 0 %} {% if org.subsidy_set.obtained|length > 0 %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment