mirror of
https://github.com/Crocmagnon/charasheet.git
synced 2025-04-12 12:46:32 +02:00
30 lines
1.3 KiB
HTML
30 lines
1.3 KiB
HTML
{% load character_extras %}
|
|
<div class="col-xl-3 col-md-6" data-path-id="{{ path.pk }}">
|
|
<div class="card">
|
|
<h5 class="card-header">
|
|
{{ path.display_name }}
|
|
<button hx-get="{% url "character:remove_last_in_path" character_pk=character.pk path_pk=path.pk %}"
|
|
hx-target="[data-path-id='{{ path.pk }}']"
|
|
hx-swap="outerHTML"
|
|
class="btn btn-sm btn-primary">
|
|
<i class="fa-solid fa-minus"></i>
|
|
</button>
|
|
{% if path|has_next_capability:character %}
|
|
<button hx-get="{% url "character:add_next_in_path" character_pk=character.pk path_pk=path.pk %}"
|
|
hx-target="[data-path-id='{{ path.pk }}']"
|
|
hx-swap="outerHTML"
|
|
class="btn btn-sm btn-primary">
|
|
<i class="fa-solid fa-plus"></i>
|
|
</button>
|
|
{% endif %}
|
|
</h5>
|
|
{% if path.notes %}
|
|
<div class="card-body text-bg-light">{{ path.notes }}</div>
|
|
{% endif %}
|
|
<ul class="list-group list-group-flush capabilities">
|
|
{% for capability in capabilities %}
|
|
{% include "character/capability.html" %}
|
|
{% endfor %}
|
|
</ul>
|
|
</div>
|
|
</div>
|