mirror of
https://github.com/Crocmagnon/charasheet.git
synced 2024-11-22 14:38:03 +01:00
Display capabilities and paths as accordions to reduce clutter
This commit is contained in:
parent
d80094cf41
commit
10764aaf98
2 changed files with 18 additions and 11 deletions
|
@ -1,9 +1,16 @@
|
||||||
<li class="list-group-item">
|
<div class="accordion-item">
|
||||||
<strong>
|
<h2 class="accordion-header">
|
||||||
{{ capability.rank }}.
|
<button class="accordion-button collapsed" type="button"
|
||||||
{{ capability.name }}
|
data-bs-toggle="collapse" data-bs-target="#cap-{{ capability.pk }}">
|
||||||
{% if capability.spell %}<i class="fa-solid fa-hand-sparkles"></i>{% endif %}
|
{{ capability.rank }}.
|
||||||
{% if capability.limited %}<i class="fa-solid fa-handcuffs"></i>{% endif %}
|
{{ capability.name }}
|
||||||
</strong><br>
|
{% if capability.spell %} <i class="fa-solid fa-hand-sparkles"></i>{% endif %}
|
||||||
{{ capability.description }}
|
{% if capability.limited %} <i class="fa-solid fa-handcuffs"></i>{% endif %}
|
||||||
</li>
|
</button>
|
||||||
|
</h2>
|
||||||
|
<div id="cap-{{ capability.pk }}" class="accordion-collapse collapse">
|
||||||
|
<div class="accordion-body">
|
||||||
|
{{ capability.description }}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
|
@ -23,10 +23,10 @@
|
||||||
{% if path.notes %}
|
{% if path.notes %}
|
||||||
<div class="card-body text-bg-light">{{ path.notes }}</div>
|
<div class="card-body text-bg-light">{{ path.notes }}</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<ul class="list-group list-group-flush capabilities">
|
<div class="accordion accordion-flush capabilities">
|
||||||
{% for capability in capabilities %}
|
{% for capability in capabilities %}
|
||||||
{% include "character/capability.html" %}
|
{% include "character/capability.html" %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue