view sat_templates/default/input/navigation.html @ 153:b84d20af0ed3

macros (field, form, textbox): general improvments: - use a generic "field" macro for most fields - added "required" class on input labels if suitable - extra kw args are used as input field attributes. Same thing for forms - better handling of id if label is missing - added blog_text macro in textbox for basic text blog input - textbox is more customisable (class and textarea class can be specified)
author Goffi <goffi@goffi.org>
date Thu, 21 Jun 2018 01:09:00 +0200
parents 33c7ce833d3f
children
line wrap: on
line source

{% macro prev_next(prev_label=_("newer"), next_label=_("older")) %}
    <nav class="prev_next_links">
        <ul>
            {% if newer_url is defined %}
                <li class="newer_items">
                    <a href="{{newer_url}}">
                        <img src="{{media_path}}icons/tango/actions/32/go-previous.png">
                        {{prev_label}}
                    </a>
                </li>
            {% endif %}
            {% if older_url is defined %}
                <li class="older_items">
                    <a href="{{older_url}}">
                        <img src="{{media_path}}icons/tango/actions/32/go-next.png">
                        {{next_label}}
                    </a>
                </li>
            {% endif %}
        </ul>
    </nav>
{% endmacro %}