mirror of
				https://gitlab.com/animath/si/plateforme.git
				synced 2025-11-01 00:24:29 +01:00 
			
		
		
		
	Compare commits
	
		
			2 Commits
		
	
	
		
			7d9e80bf9f
			...
			adb64dec51
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| adb64dec51 | |||
| d9fbd5564e | 
| @@ -3,7 +3,7 @@ | ||||
| {% load django_tables2 i18n %} | ||||
|  | ||||
| {% block content %} | ||||
|     {% if user.registration.is_admin %} | ||||
|     {% if user.registration.is_volunteer %} | ||||
|         <a href="{% url "registration:add_organizer" %}" class="btn btn-block btn-secondary"> | ||||
|             <i class="fas fa-user-plus"></i> {% trans "Add organizer" %} | ||||
|         </a> | ||||
|   | ||||
| @@ -25,7 +25,7 @@ from django_tables2 import SingleTableView | ||||
| from magic import Magic | ||||
| from participation.models import Passage, Solution, Synthesis, Tournament | ||||
| from tfjm.tokens import email_validation_token | ||||
| from tfjm.views import AdminMixin, UserMixin, UserRegistrationMixin, VolunteerMixin | ||||
| from tfjm.views import UserMixin, UserRegistrationMixin, VolunteerMixin | ||||
|  | ||||
| from .forms import AddOrganizerForm, AdminRegistrationForm, CoachRegistrationForm, HealthSheetForm, \ | ||||
|     ParentalAuthorizationForm, PaymentForm, PhotoAuthorizationForm, SignupForm, StudentRegistrationForm, UserForm, \ | ||||
| @@ -254,7 +254,7 @@ class UserDetailView(LoginRequiredMixin, DetailView): | ||||
|         return context | ||||
|  | ||||
|  | ||||
| class UserListView(AdminMixin, SingleTableView): | ||||
| class UserListView(VolunteerMixin, SingleTableView): | ||||
|     """ | ||||
|     Display the list of all registered users. | ||||
|     """ | ||||
|   | ||||
| @@ -60,7 +60,7 @@ | ||||
|                         <i class="fas fa-calendar-day"></i> {% trans "Tournaments" %} | ||||
|                     </a> | ||||
|                 </li> | ||||
|                 {% if user.is_authenticated and user.registration.is_admin %} | ||||
|                 {% if user.is_authenticated and user.registration.is_volunteer %} | ||||
|                     <li class="nav-item active"> | ||||
|                         <a href="{% url "registration:user_list" %}" class="nav-link"><i class="fas fa-user"></i> {% trans "Users" %}</a> | ||||
|                     </li> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user