feat: improved styling
This commit is contained in:
@@ -4,6 +4,7 @@ from django.db import models
|
||||
from django.http import HttpResponse
|
||||
from django.shortcuts import get_object_or_404, render
|
||||
from django.urls import reverse
|
||||
from django.utils.text import gettext_lazy as _
|
||||
from django.views.generic import TemplateView
|
||||
|
||||
from config.mixins import HTMXFormComponent
|
||||
@@ -152,6 +153,7 @@ class WishlistButton(TemplateView):
|
||||
class UserInfoFormComponentView(HTMXFormComponent):
|
||||
form_class = UserInfoForm
|
||||
hx_trigger = "updated_user_info"
|
||||
save_button_text = _("Actualizar datos")
|
||||
|
||||
def get_object(self) -> models.Model:
|
||||
return self.request.user
|
||||
@@ -170,6 +172,7 @@ class UserInfoFormComponentView(HTMXFormComponent):
|
||||
class ChangePasswordFormComponentView(HTMXFormComponent):
|
||||
form_class = ChangePasswordForm
|
||||
hx_trigger = "changed_password"
|
||||
save_button_text = _("Cambiar contraseña")
|
||||
|
||||
def get_form(self, initial=True):
|
||||
if initial:
|
||||
|
||||
Reference in New Issue
Block a user