diff --git a/app/templates/service.html b/app/templates/service.html index 591beca..75c6b56 100644 --- a/app/templates/service.html +++ b/app/templates/service.html @@ -9,7 +9,7 @@ {% block content %}
+ style="background-color: #000; {% if not object.video %}background-image: url({% static_with_version 'cybercode/img/img_1.png' %});{% endif %}">
- {% if modules %} -
- {% for module in modules %} - - {{ module.name }} - - {% endfor %} -
- {% endif %} {% if sub_services %}
@@ -46,6 +37,15 @@

{{ object.name }}

{{ object.description|safe }}

+ {% if modules %} + + {% endif %}
diff --git a/app/website/models/base_content_item.py b/app/website/models/base_content_item.py index 052b4a0..78b1a2f 100644 --- a/app/website/models/base_content_item.py +++ b/app/website/models/base_content_item.py @@ -5,7 +5,7 @@ from pytils.translit import slugify class BaseContentItem(models.Model): name = models.CharField(max_length=255) - description = CKEditor5Field('Text', config_name='default') + description = CKEditor5Field('Text', config_name='extends') created_at = models.DateTimeField(blank=True, null=True) updated_at = models.DateTimeField(auto_now=True) slug = models.SlugField(unique=True, blank=True, null=True, max_length=255)