Remove card for capabilities

This commit is contained in:
Gabriel Augendre 2022-11-01 19:08:38 +01:00
parent 2d9635fd17
commit 6320545afd

View file

@ -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>