fix trans tag and iterations
{% comment %} This block warns coordinators if the number of applications they are about to send exceeds the number of accounts available. {% endcomment %}
{% if unavailable_streams %}
<div class="well hidden-xs">
- {% for app_stream_name in unavailable_streams %}
{% comment %} Translators: This message is shown when applications exceed the number of accounts available for each stream(s). {% endcomment %}
- {% if forloop.first %}{% trans "Application(s) for " %}{% endif %}<strong>{{ app_stream_name }}</strong>,{% if forloop.last %}{% trans " if sent, will exceed the total available accounts for the stream(s). Please proceed at your own discretion." %}{% endif %}
- {% endfor %}
+ {% blocktrans %}Application(s) for <strong>{{ unavailable_streams }}</strong> if sent, will exceed the total available accounts for the stream(s). Please proceed at your own discretion.{% endblocktrans %}
</div>
- {% else %}
- {% for app, output in app_outputs.items %}
- {% if forloop.last %}
- {% if object.accounts_available < forloop.counter|add:total_apps_approved_or_sent %}
+ {% elseif total_apps_approved_or_sent_or_ready_to_send %}
+ {% if object.accounts_available < total_apps_approved_or_sent_or_ready_to_send %}
<div class="well hidden-xs">
{% comment %} Translators: This message is shown when applications exceed the number of accounts available. {% endcomment %}
{% blocktrans %}Application(s) for {{ object }}, if sent, will exceed the total available accounts for the partner. Please proceed at your own discretion.{% endblocktrans %}
</div>
{% endif %}
{% endif %}
- {% endfor %}
- {% endif %}
<p>
