Show role description in user edit form
This commit is contained in:
		
							parent
							
								
									c549745ef6
								
							
						
					
					
						commit
						ab1a600c9e
					
				| 
						 | 
					@ -82,7 +82,7 @@ msgstr "Crear"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#: gas/users/views.py:55
 | 
					#: gas/users/views.py:55
 | 
				
			||||||
msgid "Update user"
 | 
					msgid "Update user"
 | 
				
			||||||
msgstr "Actulizar usuario"
 | 
					msgstr "Actualizar usuario"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#: gas/users/views.py:56
 | 
					#: gas/users/views.py:56
 | 
				
			||||||
msgid "User updated"
 | 
					msgid "User updated"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -77,8 +77,8 @@ class GASSite(object):
 | 
				
			||||||
    @property
 | 
					    @property
 | 
				
			||||||
    def role_choices(self):
 | 
					    def role_choices(self):
 | 
				
			||||||
        return [
 | 
					        return [
 | 
				
			||||||
            (role, role)
 | 
					            (role, f"{role}: {description}")
 | 
				
			||||||
            for role in self._registry['roles']
 | 
					            for role, description in self._registry['roles'].items()
 | 
				
			||||||
        ]
 | 
					        ]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def get_role_description(self, role):
 | 
					    def get_role_description(self, role):
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue