Skip to content

Commit

Permalink
Add trans tags and test for template used
Browse files Browse the repository at this point in the history
  • Loading branch information
amakarudze committed Dec 31, 2023
1 parent eeace82 commit da3fa59
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 9 deletions.
32 changes: 23 additions & 9 deletions templates/organize/event_funding.html
Original file line number Diff line number Diff line change
@@ -1,43 +1,57 @@
{% extends "global/base.html" %}
{% load i18n rev static %}

{% block content %}
<div class="container">
<h2>Apply for Sponsorship from our Global Partners</h2>
<h2>{% trans "Apply for Sponsorship from our Global Partners" %}</h2>

<p>Some of our global partners also fund Django Girls workshops. However, they prefer that Django Girls Foundation handle
<p>{% blocktrans trimmed %}
Some of our global partners also fund Django Girls workshops. However, they prefer that Django Girls Foundation handle
the sponsorship application process and they only handle sending the money to the workshop organizers. Django Girls has
done this in the past with GitHub sponsorships though that is no longer available.
{% endblocktrans %}
</p>

<p>Starting November 2023, Django Girls will be handling sponsorship applications for workshops. The organisations Django
<p>{% blocktrans trimmed %}
Starting November 2023, Django Girls will be handling sponsorship applications for workshops. The organisations Django
Girls are handling the sponsorship process are listed below with the terms and conditions of the sponsorship.
{% endblocktrans %}
</p>

<div>
<h3><a href="https://www.djangoproject.com" target="_blank">Django Software Foundation</a></h3>
<p>Starting November 2023, sponsorship applications to the DSF will be handled by Django Girls Foundation. The terms
<p>{% blocktrans trimmed %}
Starting November 2023, sponsorship applications to the DSF will be handled by Django Girls Foundation. The terms
and conditions of this sponsorship as laid out by the DSF are as follows:
{% endblocktrans %}
<ul>
<li>
{% blocktrans trimmed %}
The DSF has set aside a limited budget for Django Girls workshops sponsorship spread out through the year.
For this reason, they will only sponsorship only one event per city per year.
{% endblocktrans %}
</li>
<li>
{% blocktrans trimmed %}
The typical DSF sponsorship will be $300 per event, or $500 when the assumption is that the group has large needs
and difficulty fundraising or events outside of the US or Western Europe.
{% endblocktrans %}
</li>
<li>The DSF funds events, not long term boot camps therefore this application form should only be used for Django Girls
<li>{% blocktrans trimmed %}
The DSF funds events, not long term boot camps therefore this application form should only be used for Django Girls
workshop applications only.
{% endblocktrans %}
</li>
<li>The DSF's support has to be publicly recognised and acknowledged.</li>
<li>The DSF has to receive a report of the event via their email <a href="mailto:dsfboard@googlegroups.com">dsfboard@googlegroups.com</a>
<li>{% trans "The DSF's support has to be publicly recognised and acknowledged." %}</li>
<li>{% blocktrans trimmed %}The DSF has to receive a report of the event via their email <a href="mailto:dsfboard@googlegroups.com">dsfboard@googlegroups.com</a>
which should be copied to <a href="mailto:hello@djangogirls.org">hello@djangogirls.org</a>.
{% endblocktrans %}
</li>
</ul>
</p>

<p>To apply for DSF funding, please fill in
<a href="https://docs.google.com/forms/d/1KBQKnwY0uFBB0R7HOJIA3VAr9PsUywnp-9yX9El9-Wk/viewform">this form</a>.
<p>{% trans "To apply for DSF funding, please fill in
<a href="https://docs.google.com/forms/d/1KBQKnwY0uFBB0R7HOJIA3VAr9PsUywnp-9yX9El9-Wk/viewform">this form</a>." %}
</p>
</div>
</div>
Expand Down
2 changes: 2 additions & 0 deletions tests/organize/test_views.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import pytest
from django.template.loader import render_to_string
from django.urls import reverse
from pytest_django.asserts import assertTemplateUsed


def test_form_thank_you(client):
Expand Down Expand Up @@ -111,3 +112,4 @@ def test_organize_form_wizard_workshops_too_close(client, previous_organizer_in_
def test_event_funding(client):
response = client.get(reverse("organize:event_funding"))
assert response.status_code == 200
assertTemplateUsed(response, "organize/event_funding.html")

0 comments on commit da3fa59

Please sign in to comment.