mirror of
				https://gitlab.com/animath/si/plateforme.git
				synced 2025-11-01 00:24:29 +01:00 
			
		
		
		
	Compare commits
	
		
			3 Commits
		
	
	
		
			c500a735d8
			...
			d4111126c7
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
|  | d4111126c7 | ||
|  | 8212568fee | ||
|  | 6898e9413a | 
| @@ -103,7 +103,7 @@ | |||||||
|  |  | ||||||
|         <div class="text-center"> |         <div class="text-center"> | ||||||
|             <a class="btn btn-info" href="{% url "participation:team_authorizations" pk=team.pk %}" data-turbolinks="false"> |             <a class="btn btn-info" href="{% url "participation:team_authorizations" pk=team.pk %}" data-turbolinks="false"> | ||||||
|                 <i class="fas fa-file-archive"></i> {% trans "Download all authorizations" %} |                 <i class="fas fa-file-archive"></i> {% trans "Download all submitted authorizations" %} | ||||||
|             </a> |             </a> | ||||||
|         </div> |         </div> | ||||||
|     </div> |     </div> | ||||||
|   | |||||||
| @@ -65,8 +65,8 @@ | |||||||
|                 </dd> |                 </dd> | ||||||
|             {% endif %} |             {% endif %} | ||||||
|  |  | ||||||
|             {% if user_object.registration.studentregistration and user_object.registration.participation.tournament and not user_object.registration.participation.tournament.remote %} |             {% if user_object.registration.studentregistration %} | ||||||
|                 {% if user_object.registration.under_18 %} |                 {% if user_object.registration.under_18 and user_object.registration.team.participation.tournament and not user_object.registration.team.participation.tournament.remote %} | ||||||
|                     <dt class="col-sm-6 text-right">{% trans "Health sheet:" %}</dt> |                     <dt class="col-sm-6 text-right">{% trans "Health sheet:" %}</dt> | ||||||
|                     <dd class="col-sm-6"> |                     <dd class="col-sm-6"> | ||||||
|                         {% if user_object.registration.health_sheet %} |                         {% if user_object.registration.health_sheet %} | ||||||
| @@ -150,7 +150,7 @@ | |||||||
|     </div> |     </div> | ||||||
|     {% if user.pk == user_object.pk or user.registration.is_admin %} |     {% if user.pk == user_object.pk or user.registration.is_admin %} | ||||||
|         <div class="card-footer text-center"> |         <div class="card-footer text-center"> | ||||||
|             <button class="btn btn-primary" data-toggle="modal" data-target="#updateUserModal">{% trans "Update" %}</button> |             <a class="btn btn-primary" href="{% url "registration:update_user" pk=user_object.pk %}">{% trans "Update" %}</a> | ||||||
|             {% if user.registration.is_admin %} |             {% if user.registration.is_admin %} | ||||||
|                 <a class="btn btn-info" href="{% url "registration:user_impersonate" pk=user_object.pk %}">{% trans "Impersonate" %}</a> |                 <a class="btn btn-info" href="{% url "registration:user_impersonate" pk=user_object.pk %}">{% trans "Impersonate" %}</a> | ||||||
|             {% endif %} |             {% endif %} | ||||||
| @@ -158,11 +158,6 @@ | |||||||
|     {% endif %} |     {% endif %} | ||||||
|     </div> |     </div> | ||||||
|  |  | ||||||
|     {% trans "Update user" as modal_title %} |  | ||||||
|     {% trans "Update" as modal_button %} |  | ||||||
|     {% url "registration:update_user" pk=user_object.pk as modal_action %} |  | ||||||
|     {% include "base_modal.html" with modal_id="updateUser" %} |  | ||||||
|  |  | ||||||
|     {% if user_object.registration.team and not user_object.registration.team.participation.valid %} |     {% if user_object.registration.team and not user_object.registration.team.participation.valid %} | ||||||
|         {% trans "Upload photo authorization" as modal_title %} |         {% trans "Upload photo authorization" as modal_title %} | ||||||
|         {% trans "Upload" as modal_button %} |         {% trans "Upload" as modal_button %} | ||||||
| @@ -196,11 +191,6 @@ | |||||||
| {% block extrajavascript %} | {% block extrajavascript %} | ||||||
|     <script> |     <script> | ||||||
|         $(document).ready(function() { |         $(document).ready(function() { | ||||||
|             $('button[data-target="#updateUserModal"]').click(function() { |  | ||||||
|                 let modalBody = $("#updateUserModal div.modal-body"); |  | ||||||
|                 if (!modalBody.html().trim()) |  | ||||||
|                     modalBody.load("{% url "registration:update_user" pk=user_object.pk %} #form-content"); |  | ||||||
|             }); |  | ||||||
|             {% if user_object.registration.team and not user_object.registration.team.participation.valid %} |             {% if user_object.registration.team and not user_object.registration.team.participation.valid %} | ||||||
|                 $('button[data-target="#uploadPhotoAuthorizationModal"]').click(function() { |                 $('button[data-target="#uploadPhotoAuthorizationModal"]').click(function() { | ||||||
|                     let modalBody = $("#uploadPhotoAuthorizationModal div.modal-body"); |                     let modalBody = $("#uploadPhotoAuthorizationModal div.modal-body"); | ||||||
|   | |||||||
| @@ -794,8 +794,8 @@ msgid "Replace" | |||||||
| msgstr "Remplacer" | msgstr "Remplacer" | ||||||
|  |  | ||||||
| #: apps/participation/templates/participation/team_detail.html:106 | #: apps/participation/templates/participation/team_detail.html:106 | ||||||
| msgid "Download all authorizations" | msgid "Download all submitted authorizations" | ||||||
| msgstr "Télécharger toutes les autorisations" | msgstr "Télécharger toutes les autorisations soumises" | ||||||
|  |  | ||||||
| #: apps/participation/templates/participation/team_detail.html:113 | #: apps/participation/templates/participation/team_detail.html:113 | ||||||
| #: apps/participation/templates/participation/team_detail.html:180 | #: apps/participation/templates/participation/team_detail.html:180 | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user