{% extends config.BASE_TEMPLATE %} {# Copyright (C) 2020 CERN. Copyright (C) 2020 Northwestern University. Invenio App RDM is free software; you can redistribute it and/or modify it under the terms of the MIT License; see LICENSE file for more details. #} {%- block javascript %} {{ super() }} {# {{ webpack['your-formapp-entrypoint-here.js'] }} #} {%- endblock javascript -%} {%- if form_config.createUrl %} {%- set title = _("New item") %} {% elif record.title %} {%- set title = _("Edit item ") + record.title %} {%- endif %} {%- block page_body %}
{# Main form content #}
{%- block form_main_content %} {%- if form_config.updateUrl %}

{{ record.title }}

{%- elif form_config.createUrl -%}

{{ _("New item") }}

{%- endif %} {%- if record %} {%- endif %} {%- if form_config %} {%- endif %} {%- if permissions %} {%- endif %}
{%- endblock form_main_content -%}
{% endblock page_body %}