mirror of
https://github.com/adrigongv23/G26---Telemetry-Software.git
synced 2026-08-25 11:33:17 +02:00
Mi perfil implementado, con cambio de contraseña
This commit is contained in:
parent
a6306c5218
commit
0860c191f2
5 changed files with 181 additions and 6 deletions
20
Plataform_Web/users/forms.py
Normal file
20
Plataform_Web/users/forms.py
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
from django import forms
|
||||
from .models import CustomUser
|
||||
|
||||
|
||||
class PerfilForm(forms.ModelForm):
|
||||
class Meta:
|
||||
model = CustomUser
|
||||
fields = ['username', 'first_name', 'last_name', 'email']
|
||||
widgets = {
|
||||
'username': forms.TextInput(attrs={'class': 'form-control'}),
|
||||
'first_name': forms.TextInput(attrs={'class': 'form-control'}),
|
||||
'last_name': forms.TextInput(attrs={'class': 'form-control'}),
|
||||
'email': forms.EmailInput(attrs={'class': 'form-control'}),
|
||||
}
|
||||
labels = {
|
||||
'username': 'Usuario',
|
||||
'first_name': 'Nombre',
|
||||
'last_name': 'Apellidos',
|
||||
'email': 'Correo electrónico',
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue