mirror of
				https://gitlab.com/animath/si/plateforme.git
				synced 2025-10-31 04:49:53 +01:00 
			
		
		
		
	Add buttons to hide notes from public if needed
Signed-off-by: Emmy D'Anello <emmy.danello@animath.fr>
This commit is contained in:
		| @@ -109,22 +109,6 @@ | ||||
|             </div> | ||||
|             {% if user.registration.is_admin or user.registration in tournament.organizers.all %} | ||||
|                 <div class="card-footer text-center"> | ||||
|                     {% if not available_notes_1 or not available_notes_2 %} | ||||
|                         <div class="btn-group"> | ||||
|                             {% if not available_notes_1 %} | ||||
|                                 <a href="{% url 'participation:tournament_publish_notes' pk=tournament.pk round=1 %}" class="btn btn-info"> | ||||
|                                     <i class="fas fa-upload"></i> | ||||
|                                     {% trans "Publish notes for first round" %} | ||||
|                                 </a> | ||||
|                             {% endif %} | ||||
|                             {% if not available_notes_2 %} | ||||
|                                 <a href="{% url 'participation:tournament_publish_notes' pk=tournament.pk round=2 %}" class="btn btn-info"> | ||||
|                                     <i class="fas fa-upload"></i> | ||||
|                                     {% trans "Publish notes for second round" %} | ||||
|                                 </a> | ||||
|                             {% endif %} | ||||
|                         </div> | ||||
|                     {% endif %} | ||||
|                     <div class="btn-group"> | ||||
|                         <a href="{% url 'participation:tournament_harmonize' pk=tournament.pk round=1 %}" class="btn btn-secondary"> | ||||
|                             <i class="fas fa-ranking-star"></i> | ||||
| @@ -136,6 +120,32 @@ | ||||
|                         </a> | ||||
|                     </div> | ||||
|                 </div> | ||||
|                 <div class="card-footer text-center"> | ||||
|                     <div class="btn-group"> | ||||
|                         {% if not available_notes_1 %} | ||||
|                             <a href="{% url 'participation:tournament_publish_notes' pk=tournament.pk round=1 %}" class="btn btn-sm btn-info"> | ||||
|                                 <i class="fas fa-eye"></i> | ||||
|                                 {% trans "Publish notes for first round" %} | ||||
|                             </a> | ||||
|                         {% else %} | ||||
|                             <a href="{% url 'participation:tournament_publish_notes' pk=tournament.pk round=1 %}?hide" class="btn btn-sm btn-danger"> | ||||
|                                 <i class="fas fa-eye-slash"></i> | ||||
|                                 {% trans "Unpublish notes for first round" %} | ||||
|                             </a> | ||||
|                         {% endif %} | ||||
|                         {% if not available_notes_2 %} | ||||
|                             <a href="{% url 'participation:tournament_publish_notes' pk=tournament.pk round=2 %}" class="btn btn-sm btn-info"> | ||||
|                                 <i class="fas fa-eye"></i> | ||||
|                                 {% trans "Publish notes for second round" %} | ||||
|                             </a> | ||||
|                         {% else %} | ||||
|                             <a href="{% url 'participation:tournament_publish_notes' pk=tournament.pk round=2 %}?hide" class="btn btn-sm btn-danger"> | ||||
|                                 <i class="fas fa-eye-slash"></i> | ||||
|                                 {% trans "Unpublish notes for second round" %} | ||||
|                             </a> | ||||
|                         {% endif %} | ||||
|                     </div> | ||||
|                 </div> | ||||
|             {% endif %} | ||||
|         </div> | ||||
|     {% endif %} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user