{# purpose of this template: reusable editing of standard fields #}
{% if (obj.createdBy|default and obj.createdBy.uid > 0) or (obj.updatedBy|default and obj.updatedBy.uid > 0) %}
    {% if tabs|default(false) == true %}
        <div role="tabpanel" class="tab-pane fade" id="tabStandardFields" aria-labelledby="standardFieldsTab">
            <h3>{% trans %}Creation and update{% endtrans %}</h3>
    {% else %}
        <fieldset class="standardfields">
    {% endif %}
        <legend>{% trans %}Creation and update{% endtrans %}</legend>
        <ul>
        {% if obj.createdBy|default and obj.createdBy.uid > 0 %}
            <li>{% trans with {'%user%': obj.createdBy.uname} %}Created by %user%{% endtrans %}</li>
            <li>{% trans with {'%date%': obj.createdDate|format_datetime('medium', 'short')} %}Created on %date%{% endtrans %}</li>
        {% endif %}
        {% if obj.updatedBy|default and obj.updatedBy.uid > 0 %}
            <li>{% trans with {'%user%': obj.updatedBy.uname} %}Last update by %user%{% endtrans %}</li>
            <li>{% trans with {'%date%': obj.updatedDate|format_datetime('medium', 'short')} %}Last update on %date%{% endtrans %}</li>
        {% endif %}
        </ul>
    {% if tabs|default(false) == true %}
        </div>
    {% else %}
        </fieldset>
    {% endif %}
{% endif %}
