mirror of
https://github.com/Crocmagnon/charasheet.git
synced 2024-11-22 22:48:03 +01:00
Remove card for capabilities
This commit is contained in:
parent
2d9635fd17
commit
6320545afd
1 changed files with 21 additions and 23 deletions
|
@ -1,13 +1,12 @@
|
||||||
{% load character_extras %}
|
{% load character_extras %}
|
||||||
<div class="col-12 col-md-6 col-xl-4">
|
<div class="col-12 col-md-6 col-xl-4">
|
||||||
<div class="card">
|
<h5>
|
||||||
<h5 class="card-header">
|
|
||||||
{{ path.display_name }} ({{ path|max_rank:character }})
|
{{ path.display_name }} ({{ path|max_rank:character }})
|
||||||
<div class="btn-group btn-group-sm">
|
<div class="btn-group btn-group-sm">
|
||||||
<button hx-get="{% url "character:remove_last_in_path" character_pk=character.pk path_pk=path.pk %}"
|
<button hx-get="{% url "character:remove_last_in_path" character_pk=character.pk path_pk=path.pk %}"
|
||||||
hx-target="#paths-and-capabilities"
|
hx-target="#paths-and-capabilities"
|
||||||
hx-swap="outerHTML"
|
hx-swap="outerHTML"
|
||||||
class="btn btn-primary">
|
class="btn btn-secondary">
|
||||||
<i class="fa-solid fa-minus"></i>
|
<i class="fa-solid fa-minus"></i>
|
||||||
</button>
|
</button>
|
||||||
{% if path|has_next_capability:character %}
|
{% if path|has_next_capability:character %}
|
||||||
|
@ -21,12 +20,11 @@
|
||||||
</div>
|
</div>
|
||||||
</h5>
|
</h5>
|
||||||
{% if path.notes %}
|
{% if path.notes %}
|
||||||
<div class="card-body text-bg-light">{{ path.notes }}</div>
|
<div class="alert alert-primary">{{ path.notes }}</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<div class="accordion accordion-flush capabilities">
|
<div class="accordion capabilities">
|
||||||
{% for capability in capabilities %}
|
{% for capability in capabilities %}
|
||||||
{% include "character/capability.html" %}
|
{% include "character/capability.html" %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
|
Loading…
Reference in a new issue