wagtail-enap-designsystem 1.2.1.194__py3-none-any.whl → 1.2.1.195__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of wagtail-enap-designsystem might be problematic. Click here for more details.

Files changed (17) hide show
  1. enap_designsystem/blocks/layout_blocks.py +14 -1
  2. enap_designsystem/migrations/0467_alter_areaaluno_body_alter_cursoeadpage_curso_and_more.py +82760 -0
  3. enap_designsystem/migrations/0468_alter_areaaluno_body_alter_cursoeadpage_curso_and_more.py +82575 -0
  4. enap_designsystem/static/enap_designsystem/blocks/capsulas.css +618 -26
  5. enap_designsystem/templates/enap_designsystem/blocks/carousel_responsive.html +0 -3
  6. enap_designsystem/templates/enap_designsystem/blocks/carousel_responsivo_snippet.html +1 -3
  7. enap_designsystem/templates/enap_designsystem/form_templates/formulario_page.html +10 -5
  8. enap_designsystem/templates/enap_designsystem/form_templates/formulario_page_landing.html +0 -1
  9. enap_designsystem/templates/enap_designsystem/form_templates/formulario_page_success.html +0 -1
  10. enap_designsystem/templates/enap_designsystem/includes/form_field.html +2 -2
  11. enap_designsystem/templates/enap_designsystem/pages/capsula_page.html +85 -60
  12. enap_designsystem/templates/enap_designsystem/pages/quiz_rota_page.html +314 -829
  13. {wagtail_enap_designsystem-1.2.1.194.dist-info → wagtail_enap_designsystem-1.2.1.195.dist-info}/METADATA +1 -1
  14. {wagtail_enap_designsystem-1.2.1.194.dist-info → wagtail_enap_designsystem-1.2.1.195.dist-info}/RECORD +17 -15
  15. {wagtail_enap_designsystem-1.2.1.194.dist-info → wagtail_enap_designsystem-1.2.1.195.dist-info}/WHEEL +0 -0
  16. {wagtail_enap_designsystem-1.2.1.194.dist-info → wagtail_enap_designsystem-1.2.1.195.dist-info}/licenses/LICENSE +0 -0
  17. {wagtail_enap_designsystem-1.2.1.194.dist-info → wagtail_enap_designsystem-1.2.1.195.dist-info}/top_level.txt +0 -0
@@ -204,11 +204,24 @@ class EnapSectionBlock(BaseLayoutBlock):
204
204
  features=["bold", "italic", "ol", "ul", "hr", "link", "document-link"],
205
205
  label=_("Subtitulo"),
206
206
  )
207
+
208
+ def get_admin_text(self):
209
+ """
210
+ Retorna texto personalizado para exibição no admin
211
+ Mostra o título da seção para facilitar identificação
212
+ """
213
+ title = self.get('title')
214
+ if title:
215
+ return f"Seção: {title}"
216
+ return "Seção (sem título)"
207
217
 
208
218
  class Meta:
209
219
  template = "enap_designsystem/blocks/section_block.html"
210
- icon = "cr-th-large"
220
+ icon = "pilcrow"
211
221
  label = _("Enap Section Block")
222
+ verbose_name = _("Seção com Título e Subtítulo")
223
+ form_classname = "struct-block enap-section-block"
224
+ admin_text = "Conteúdo: {{paragraph|truncatechars:50}}"
212
225
 
213
226
 
214
227