Skip to content

Commit

Permalink
fix: remove unecessary fields in setting, fix layout detail
Browse files Browse the repository at this point in the history
  • Loading branch information
leticia-pontes committed Dec 13, 2024
1 parent ca4e2ac commit fb46ef2
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 18 deletions.
9 changes: 1 addition & 8 deletions core/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
11 changes: 11 additions & 0 deletions core/static/css/configuracoes.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
10 changes: 0 additions & 10 deletions core/templates/palavra/configuracoes.html
Original file line number Diff line number Diff line change
Expand Up @@ -91,16 +91,6 @@ <h1 class="title-pagina">
{{ form.username }}
</div>
<br><br>
<div class="form-group">
<label for="id_email">E-mail</label>
{{ form.email }}
</div>
<br><br>
<div class="form-group">
<label for="id_password1">Senha</label>
{{ form.password1 }}
</div>
<br><br>
<button type="submit">Salvar Alterações</button>
</form>
</div>
Expand Down

0 comments on commit fb46ef2

Please sign in to comment.