Implement viewing and altering trends

This commit is contained in:
2022-12-18 15:10:28 +00:00
parent b882ba15d0
commit 3a39181261
6 changed files with 160 additions and 13 deletions

View File

@@ -65,12 +65,12 @@
</span>
</span>
</button>
<!-- {% if type == 'page' %}
<a href="#"><button
{% if type == 'page' %}
<a href="{% url 'trenddirections' type=type strategy_id=item.id %}"><button
class="button">
<span class="icon-text">
<span class="icon">
<i class="fa-solid fa-eye"></i>
<span class="icon" data-tooltip="View trends">
<i class="fa-solid fa-arrows-up-down"></i>
</span>
</span>
</button>
@@ -78,18 +78,18 @@
{% else %}
<button
hx-headers='{"X-CSRFToken": "{{ csrf_token }}"}'
hx-get="#"
hx-get="{% url 'trenddirections' type=type strategy_id=item.id %}"
hx-trigger="click"
hx-target="#{{ type }}s-here"
hx-swap="innerHTML"
class="button">
<span class="icon-text">
<span class="icon">
<i class="fa-solid fa-eye"></i>
<span class="icon" data-tooltip="View trends">
<i class="fa-solid fa-arrows-up-down"></i>
</span>
</span>
</button>
{% endif %} -->
{% endif %}
</div>
</td>
</tr>