atst/templates/components/empty_state.html
Andrew Croce 5e8183aaf1 Reorganize macros into separate component files
Replace a few old UI Module instances with  macros
2018-08-03 10:35:04 -04:00

14 lines
340 B
HTML

{% from "components/icon.html" import Icon %}
{% macro EmptyState(message, actionLabel, actionHref, icon=None) -%}
<div class='empty-state'>
<p>{{ message }}</p>
{% if icon %}
{{ Icon(icon) }}
{% endif %}
<a href='{{ actionHref }}' class='usa-button usa-button-big'>{{ actionLabel }}</a>
</div>
{%- endmacro %}