mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-11 09:28:27 -04:00
Add an ‘edit’ field type
Like the link field, but right aligns so that it sits nicely in the last column of a table.
This commit is contained in:
@@ -85,6 +85,12 @@
|
||||
{% endcall %}
|
||||
{%- endmacro %}
|
||||
|
||||
{% macro edit_field(text, link) -%}
|
||||
{% call field(align='right') %}
|
||||
<a href="{{ link }}">{{ text }}</a>
|
||||
{% endcall %}
|
||||
{%- endmacro %}
|
||||
|
||||
{% macro boolean_field(yes) -%}
|
||||
{% call field(status='yes' if yes else 'no') %}
|
||||
{{ "Yes" if yes else "No" }}
|
||||
|
||||
Reference in New Issue
Block a user