{% extends "sample/sample_overview.html" %}
{% load i18n %}
{% comment %}
A sample type adding its own content to the generic sample page.
The Overview plugin finds this template by the model's app label and name
(`demo/rocksample_overview.html`) before it falls back to `sample/sample_overview.html`.
Only the blocks this type has something to say in are overridden.
{% endcomment %}
{# Add the rock type beside the generic type and status badges; block.super keeps those. #}
{% block overview.badges %}
{{ block.super }}
{% if sample.rock_type %}
{{ sample.rock_type|capfirst }}
{% endif %}
{% endblock overview.badges %}
{# The block the base page leaves empty for exactly this: the type's own fields. #}
{% block overview.properties %}
{% if sample.mineral_content %}
{% endif %}
{% endblock overview.properties %}