I just overrode the contents of the "example" block with this paragraph.
{% endblock %} .. hint:: See the `Django Tag ReferenceMy custom content
Content for my app.
{% endblock %} after_app_content ----------------- Use this block for adding elements after the app content such as Bootstrap modals (Bootstrap modals will not work properly if they are placed in the main ``app_content`` block). *Example:* .. code-block:: html+django {% block after_app_content %} {% gizmo my_modal %} {% endblock %} app_actions_override -------------------- Override app content elements including any wrapping elements. app_actions ----------- Override or append actions to the action area. These are typically buttons or links. The actions are floated right, so they need to be listed in right to left order. *Example:* .. code-block:: html+django {% block app_actions %} Next Back {% endblock %} scripts ------- Add additional JavaScripts to the page. Use ``block.super`` to preserve the existing scripts for the app (recommended) or override completely to use your own custom scripts. *Example:* .. code-block:: html+django {% block scripts %} {{ block.super }} {% endblock %} base.html ========= The :file:`base.html` is the base template that is used directly by app templates. This file is generated in all new Tethys app projects that are created using the scaffold. The contents are provided here for reference. All of the blocks provided by the :file:`base.html` template are inherited from the :file:`app_base.html` template. The :file:`base.html` template is intended to be a simplified version of the :file:`app_base.html` template, providing only the the blocks that should be used in a default app configuration. However, the blocks that are excluded from the :file:`base.html` template can be used by advanced Tethys app developers who wish customize parts or all of the app template structure. See the `Blocks`_ section for an explanation of each block. .. code-block:: html+django {% extends "tethys_apps/app_base.html" %} {% load static %} {% block title %}{{ tethys_app.name }}{% endblock %} {% block app_icon %} {# The path you provided in your app.py is accessible through the tethys_app.icon context variable #} {% endblock %} {# The name you provided in your app.py is accessible through the tethys_app.name context variable #} {% block app_title %}{{ tethys_app.name }}{% endblock %} {% block app_navigation_items %}Top left content for my app.
{% endblock %} {% block app_content_tr %}Top right content for my app.
{% endblock %} {% block app_content_bl %}Bottom left content for my app.
{% endblock %} {% block app_content_br %}Bottom right content for my app.
{% endblock %} app_three_columns.html ---------------------- This template is the same as :file:`app_header_content.html` but with a three-column Bootstrap Grid in the content area. .. figure:: ../images/app_three_columns.png :width: 700px **Figure 9.** Layout of the app_three_columns.html file. Instead of an ``app_content`` block, this app uses the following three blocks: - **app_content_lc:** The app content that will be displayed in the left column of the three-column grid. - **app_content_mc:** The app content that will be displayed in the middle column of the three-column grid. - **app_content_rc:** The app content that will be displayed in the right column of the three-column grid. *Example:* .. code-block:: html+django {% block app_content_lc %}Left column content for my app.
{% endblock %} {% block app_content_tr %}Middle column content for my app.
{% endblock %} {% block app_content_bl %}Right column content for my app.
{% endblock %} app_two_columns.html -------------------- This template is the same as :file:`app_header_content.html` but with a two-column Bootstrap Grid in the content area. .. figure:: ../images/app_two_columns.png :width: 700px **Figure 10.** Layout of the app_two_columns.html file. Instead of an ``app_content`` block, this app uses the following two blocks: - **app_content_lc:** The app content that will be displayed in the left column of the two-column grid. - **app_content_rc:** The app content that will be displayed in the right column of the two-column grid. *Example:* .. code-block:: html+django {% block app_content_lc %}Left column content for my app.
{% endblock %} {% block app_content_bl %}Right column content for my app.
{% endblock %}