Commit 7e23c793 authored by Adryan Reis's avatar Adryan Reis
Browse files

matgim bottom br text

parent 1f86ca6b
......@@ -335,13 +335,27 @@ def br_card(title='', text='', icon_class=None, icon_extra_class="", icon_style=
return render_to_string("dsgov/components/card_with_icon.html", context)
@register.simple_tag
def br_text(text='', tag='p', align='', wrap='', transform='', weight='', size='', extra_classes='', responsive_classes='', style='', href='', target=''):
def br_text(text='',
tag='p',
align='',
wrap='',
transform='',
weight='',
size='',
extra_classes='',
responsive_classes='',
style='',
href='',
target='',
margim_bottom=''):
"""
Renderiza um elemento de texto DSGov com classes de tipografia personalizáveis.
Se href for fornecido, renderiza como link.
"""
# Construir classes baseadas nos parâmetros
classes = []
if margim_bottom:
classes.append(f'mb-{margim_bottom}')
# Alinhamento
if align in ['center', 'justify', 'left', 'right']:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment