
<div>
    {% if getPageErrors(modulename,resourcename) %}
    <span class="danger">[{{ len(getPageErrors(modulename,resourcename) ) }} Errors]</span>
    {% endif %}

    <a class="button nogrow" href="{{ (url_for_resource(modulename,resourcename) ) }}">
        <i class="mdi mdi-play"></i>Go to page </a>

    <p class="resource-docstring">{{ getPageInfo(modulename,resourcename) | escape }}</p>
    {% if 'require_permissions' in resource and resource['require_permissions'] %}
    Permissions:
    {% for x in resource['require_permissions'] %}<i class="mdi mdi-key"></i>{{ x| escape }}{% endfor %}
    {% endif %}
    {% if 'require_method' in resource %}
    <i class="mdi mdi-unlocked"></i>Access: {{ ','.join(resource['require_method']) }}
    {% endif %}
</div>