Implement viewing and altering trends
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user