feat: Add tags for sex

This commit is contained in:
moanos [he/him] 2025-05-01 18:41:35 +02:00
parent 4c9c1e13a5
commit 1bb05dbf1c
6 changed files with 44 additions and 27 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 KiB

View File

@ -15,33 +15,6 @@
<div class="cell"> <div class="cell">
<!--- General Information ---> <!--- General Information --->
<div class="grid"> <div class="grid">
<div class="cell">
{% if adoption_notice.num_per_sex.F > 0 %}
{{ adoption_notice.num_per_sex.F }}
<img class="icon" src="{% static 'fellchensammlung/img/sexes/F.png' %}"
alt="{% translate 'weibliche Tiere' %}">
{% endif %}
{% if adoption_notice.num_per_sex.F_N > 0 %}
{{ adoption_notice.num_per_sex.F_N }}
<img class="icon" src="{% static 'fellchensammlung/img/sexes/F_N.png' %}"
alt="{% translate 'weiblich, kastrierte Tiere' %}">
{% endif %}
{% if adoption_notice.num_per_sex.I > 0 %}
{{ adoption_notice.num_per_sex.I }}
<img class="icon" src="{% static 'fellchensammlung/img/sexes/I.png' %}"
alt="{% translate 'intersexuelle Tiere' %}">
{% endif %}
{% if adoption_notice.num_per_sex.M > 0 %}
{{ adoption_notice.num_per_sex.M }}
<img class="icon" src="{% static 'fellchensammlung/img/sexes/M.png' %}"
alt="{% translate 'männliche Tiere' %}">
{% endif %}
{% if adoption_notice.num_per_sex.M_N > 0 %}
{{ adoption_notice.num_per_sex.M_N }}
<img class="icon" src="{% static 'fellchensammlung/img/sexes/M_N.png' %}"
alt="{% translate 'männlich, kastrierte Tiere' %}">
{% endif %}
</div>
<div class="cell"> <div class="cell">
<h2><strong>{% translate "Ort" %}</strong></h2> <h2><strong>{% translate "Ort" %}</strong></h2>
@ -51,6 +24,50 @@
{{ adoption_notice.location_string }} {{ adoption_notice.location_string }}
{% endif %}</p> {% endif %}</p>
</div> </div>
<div class="cell">
<div class="grid">
{% if adoption_notice.num_per_sex.F > 0 %}
<span class="cell icon-text tag is-medium">
<span class="has-text-weight-bold is-size-4">{{ adoption_notice.num_per_sex.F }} x </span>
<span class="icon">
<img class="icon" src="{% static 'fellchensammlung/img/sexes/Female.png' %}"
alt="{% translate 'weibliche Tiere' %}">
</span>
</span>
{% endif %}
{% if adoption_notice.num_per_sex.I > 0 %}
<span class="cell icon-text tag is-medium">
<span class="has-text-weight-bold is-size-4">{{ adoption_notice.num_per_sex.I }}</span>
<span class="icon">
<img class="icon"
src="{% static 'fellchensammlung/img/sexes/Intersex.png' %}"
alt="{% translate 'intersexuelle Tiere' %}">
</span>
</span>
{% endif %}
{% if adoption_notice.num_per_sex.M > 0 %}
<span class="cell icon-text tag is-medium">
<span class="has-text-weight-bold is-size-4">{{ adoption_notice.num_per_sex.M }}</span>
<span class="icon">
<img class="icon" src="{% static 'fellchensammlung/img/sexes/Male.png' %}"
alt="{% translate 'männliche Tiere' %}">
</span>
</span>
{% endif %}
{% if adoption_notice.num_per_sex.M_N > 0 %}
<span class="cell icon-text tag is-medium">
<span class="has-text-weight-bold is-size-4">{{ adoption_notice.num_per_sex.M_N }}</span>
<span class="icon">
<img class="icon"
src="{% static 'fellchensammlung/img/sexes/Male Neutered.png' %}"
alt="{% translate 'männlich, kastrierte Tiere' %}">
</span>
</span>
{% endif %}
</div>
</div>
</div> </div>
</div> </div>
</div> </div>