Commit 9513dd38 authored by Eduardo Silva's avatar Eduardo Silva
Browse files

submetendo arquivos que nao foram incluidos no commit anterior #4

parent f5f001c9
{% extends "dsgov/base.html" %}
{% load br_components %}
{% load static %}
{% block content %}
<div class="br-card hover" style="cursor: pointer;">
<div class="card-content">
<div class="d-flex align-items-center">
{% if icon_svg %}
<img src="{% static icon_svg %}" alt="ícone" width="40" height="40" class="mr-3"/>
{% endif %}
<div>
<h4 class="mt-0 mb-1 text-primary" style="font-family: 'Noto Sans', sans-serif;">{{ title }}</h4>
<p style="font-family: 'Noto Sans', sans-serif; color: #5C5C5C;">{{ text }}</p>
</div>
</div>
</div>
</div>
{% endblock %}
from django import template from django import template
from django.utils.html import format_html, mark_safe from django.utils.html import format_html
from django.templatetags.static import static from django.templatetags.static import static
from django.template.loader import render_to_string from django.template.loader import render_to_string
...@@ -168,3 +168,13 @@ def br_pagination(pages=""): ...@@ -168,3 +168,13 @@ def br_pagination(pages=""):
} }
return render_to_string('dsgov/components/pagination.html', context) return render_to_string('dsgov/components/pagination.html', context)
@register.simple_tag
def br_card(title='', text='', icon_path=None):
context = {
'title': title,
'text': text,
'icon_svg': icon_path
}
return render_to_string('dsgov/components/card_with_icon.html', context)
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