diff --git a/src/fellchensammlung/templates/fellchensammlung/details/bulma-detail-adoption-notice.html b/src/fellchensammlung/templates/fellchensammlung/details/bulma-detail-adoption-notice.html index 3f1c265..4bb124b 100644 --- a/src/fellchensammlung/templates/fellchensammlung/details/bulma-detail-adoption-notice.html +++ b/src/fellchensammlung/templates/fellchensammlung/details/bulma-detail-adoption-notice.html @@ -25,48 +25,7 @@ {% endif %}

-
- {% if adoption_notice.num_per_sex.F > 0 %} - - {{ adoption_notice.num_per_sex.F }} x - - {% translate 'weibliche Tiere' %} - - - {% endif %} - - {% if adoption_notice.num_per_sex.I > 0 %} - - {{ adoption_notice.num_per_sex.I }} - - - {% translate 'intersexuelle Tiere' %} - - - {% endif %} - {% if adoption_notice.num_per_sex.M > 0 %} - - {{ adoption_notice.num_per_sex.M }} - - {% translate 'männliche Tiere' %} - - - {% endif %} - {% if adoption_notice.num_per_sex.M_N > 0 %} - - {{ adoption_notice.num_per_sex.M_N }} - - {% translate 'männlich, kastrierte Tiere' %} - - - {% endif %} -
+ {% include "fellchensammlung/partials/bulma-sex-overview.html" %}
diff --git a/src/fellchensammlung/templates/fellchensammlung/partials/bulma-sex-overview.html b/src/fellchensammlung/templates/fellchensammlung/partials/bulma-sex-overview.html new file mode 100644 index 0000000..dbda83e --- /dev/null +++ b/src/fellchensammlung/templates/fellchensammlung/partials/bulma-sex-overview.html @@ -0,0 +1,44 @@ +{% load static %} +{% load i18n %} +
+ {% if adoption_notice.num_per_sex.F > 0 %} + + {{ adoption_notice.num_per_sex.F }} x + + {% translate 'weibliche Tiere' %} + + + {% endif %} + + {% if adoption_notice.num_per_sex.I > 0 %} + + {{ adoption_notice.num_per_sex.I }} + + + {% translate 'intersexuelle Tiere' %} + + + {% endif %} + {% if adoption_notice.num_per_sex.M > 0 %} + + {{ adoption_notice.num_per_sex.M }} + + {% translate 'männliche Tiere' %} + + + {% endif %} + {% if adoption_notice.num_per_sex.M_N > 0 %} + + {{ adoption_notice.num_per_sex.M_N }} + + {% translate 'männlich, kastrierte Tiere' %} + + + {% endif %} +
\ No newline at end of file