mirror of
				https://gitlab.com/animath/si/plateforme.git
				synced 2025-11-04 16:02:26 +01:00 
			
		
		
		
	Grouping payments is only allowed if all members of a team have not paid yet
Signed-off-by: Emmy D'Anello <emmy.danello@animath.fr>
This commit is contained in:
		@@ -24,25 +24,27 @@
 | 
			
		||||
            </p>
 | 
			
		||||
 | 
			
		||||
            <p>
 | 
			
		||||
                {% if payment.grouped %}
 | 
			
		||||
                    {% blocktrans trimmed %}
 | 
			
		||||
                        You want finally that each member pays its own registration? Then click on the button:
 | 
			
		||||
                    {% endblocktrans %}
 | 
			
		||||
                    <div class="text-center">
 | 
			
		||||
                        <a href="{% url 'registration:update_payment_group_mode' pk=payment.pk %}" class="btn btn-warning">
 | 
			
		||||
                            <i class="fas fa-user"></i> {% trans "Back to single payments" %}
 | 
			
		||||
                        </a>
 | 
			
		||||
                    </div>
 | 
			
		||||
                {% else %}
 | 
			
		||||
                    {% blocktrans trimmed %}
 | 
			
		||||
                        You want to pay for the registrations of all members of your team,
 | 
			
		||||
                        or your school will pay for all registrations? Then click on the button:
 | 
			
		||||
                    {% endblocktrans %}
 | 
			
		||||
                    <div class="text-center">
 | 
			
		||||
                        <a href="{% url 'registration:update_payment_group_mode' pk=payment.pk %}" class="btn btn-warning">
 | 
			
		||||
                            <i class="fas fa-users"></i> {% trans "Group the payments of my team" %}
 | 
			
		||||
                        </a>
 | 
			
		||||
                    </div>
 | 
			
		||||
                {% if can_group %}
 | 
			
		||||
                    {% if payment.grouped %}
 | 
			
		||||
                        {% blocktrans trimmed %}
 | 
			
		||||
                            You want finally that each member pays its own registration? Then click on the button:
 | 
			
		||||
                        {% endblocktrans %}
 | 
			
		||||
                        <div class="text-center">
 | 
			
		||||
                            <a href="{% url 'registration:update_payment_group_mode' pk=payment.pk %}" class="btn btn-warning">
 | 
			
		||||
                                <i class="fas fa-user"></i> {% trans "Back to single payments" %}
 | 
			
		||||
                            </a>
 | 
			
		||||
                        </div>
 | 
			
		||||
                    {% else %}
 | 
			
		||||
                        {% blocktrans trimmed %}
 | 
			
		||||
                            You want to pay for the registrations of all members of your team,
 | 
			
		||||
                            or your school will pay for all registrations? Then click on the button:
 | 
			
		||||
                        {% endblocktrans %}
 | 
			
		||||
                        <div class="text-center">
 | 
			
		||||
                            <a href="{% url 'registration:update_payment_group_mode' pk=payment.pk %}" class="btn btn-warning">
 | 
			
		||||
                                <i class="fas fa-users"></i> {% trans "Group the payments of my team" %}
 | 
			
		||||
                            </a>
 | 
			
		||||
                        </div>
 | 
			
		||||
                    {% endif %}
 | 
			
		||||
                {% endif %}
 | 
			
		||||
            </p>
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user