feat: added new settings and styling

This commit is contained in:
2024-12-05 21:14:57 +01:00
parent 313fb0cb3b
commit eb425cc0a6
9 changed files with 250 additions and 18 deletions
+122 -1
View File
@@ -1,4 +1,4 @@
# Generated by Django 5.1.3 on 2024-12-01 11:25
# Generated by Django 5.1.3 on 2024-12-05 20:12
from django.db import migrations, models
@@ -44,6 +44,127 @@ class Migration(migrations.Migration):
verbose_name="logo de la web",
),
),
(
"business_name",
models.CharField(
blank=True,
help_text="nombre fiscal del comercio",
max_length=128,
null=True,
verbose_name="nombre de negocio",
),
),
(
"business_vat_id",
models.CharField(
blank=True,
max_length=16,
null=True,
verbose_name="CIF del negocio",
),
),
(
"business_brand",
models.CharField(
blank=True,
help_text="marca o nombre comercial que se va a mostrar en la web",
max_length=64,
null=True,
verbose_name="marca de negocio",
),
),
(
"business_address",
models.CharField(
blank=True,
max_length=64,
null=True,
verbose_name="dirección de negocio",
),
),
(
"business_state",
models.CharField(
blank=True,
max_length=32,
null=True,
verbose_name="unidad territorial del negocio",
),
),
(
"business_zip",
models.CharField(
blank=True,
max_length=16,
null=True,
verbose_name="código postal del negocio",
),
),
(
"business_phone",
models.CharField(
blank=True,
max_length=16,
null=True,
verbose_name="número de teléfono de contacto",
),
),
(
"business_email",
models.EmailField(
blank=True,
max_length=80,
null=True,
verbose_name="e-mail de contacto",
),
),
(
"business_email_2",
models.EmailField(
blank=True,
max_length=80,
null=True,
verbose_name="e-mail secundario de contacto",
),
),
(
"bg_color",
models.CharField(
blank=True,
default="",
max_length=9,
null=True,
verbose_name="color de fondo",
),
),
(
"theme_color",
models.CharField(
blank=True,
default="",
max_length=9,
null=True,
verbose_name="color de tema",
),
),
(
"logo_240",
models.ImageField(
blank=True,
null=True,
upload_to="assets",
verbose_name="logo 240x240",
),
),
(
"logo_128",
models.ImageField(
blank=True,
null=True,
upload_to="assets",
verbose_name="logo 128x128",
),
),
],
options={
"verbose_name": "ajustes de la web",