From fb46ef29279a37ced280704eb6d250bb3f47774d Mon Sep 17 00:00:00 2001 From: Leticia Alves de Pontes <50830736+leticia-hub@users.noreply.github.com> Date: Fri, 13 Dec 2024 19:11:10 -0300 Subject: [PATCH] fix: remove unecessary fields in setting, fix layout detail --- core/forms.py | 9 +-------- core/static/css/configuracoes.css | 11 +++++++++++ core/templates/palavra/configuracoes.html | 10 ---------- 3 files changed, 12 insertions(+), 18 deletions(-) diff --git a/core/forms.py b/core/forms.py index ac5518c..366564f 100644 --- a/core/forms.py +++ b/core/forms.py @@ -51,20 +51,13 @@ def clean_email(self): return email class UserInfoForm(forms.ModelForm): + foto_perfil = forms.ImageField(widget=forms.FileInput()) username = forms.CharField(label='Nome de Usuário', widget=forms.TextInput(attrs={ 'placeholder': 'Nome de Usuário', 'class': 'form-control' })) - email = forms.EmailField(label='E-mail', widget=forms.EmailInput(attrs={ - 'placeholder': 'E-mail', - 'class': 'form-control' - })) - password1 = forms.CharField(label='Senha', widget=forms.PasswordInput(attrs={ - 'placeholder': 'Senha', - 'class': 'form-control' - })) class Meta: model = Usuario diff --git a/core/static/css/configuracoes.css b/core/static/css/configuracoes.css index a823309..058200c 100644 --- a/core/static/css/configuracoes.css +++ b/core/static/css/configuracoes.css @@ -110,6 +110,17 @@ height: 50px; } +.circulo-usuario, +.usuario__imagem { + padding: 10px; + padding-bottom: 25px; +} + +.form-group .circulo-usuario img { + border-radius: 50%; + border: 1px solid black; +} + .configuracoes__form-control input::placeholder{ color: #999; } diff --git a/core/templates/palavra/configuracoes.html b/core/templates/palavra/configuracoes.html index e5bdbb3..77a7e8f 100644 --- a/core/templates/palavra/configuracoes.html +++ b/core/templates/palavra/configuracoes.html @@ -91,16 +91,6 @@