2024-07-23 21:51:42 +01:00
|
|
|
<div class="individual_truth">
|
2024-08-01 22:45:40 +01:00
|
|
|
<a href="/{{ truth.week }}#{{ truth.number }}"><h3 id="{{ truth.number }}">Vérité {{ truth.number }}</h3></a>
|
2024-07-23 21:51:42 +01:00
|
|
|
<p>{{ truth.rendered_text | safe }}</p>
|
2024-08-01 21:18:30 +01:00
|
|
|
<div class="truth_tags">
|
|
|
|
{% for tag in truth.tags %}
|
|
|
|
<form action="/{{ week_data.number }}/untag/{{ truth.id }}" method="post">
|
|
|
|
<button name="name" value="{{ tag.name }}">❌</button>
|
|
|
|
</form>
|
|
|
|
<a class="tag" href="/tags/filter?tags={{ tag.name }}" style="background-color: {{ tag.color }}">
|
|
|
|
{{ tag.name }}
|
|
|
|
</a>
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
2024-07-23 21:51:42 +01:00
|
|
|
<hr/>
|
2024-08-01 21:18:30 +01:00
|
|
|
<form class="truth_edit_form" action="/{{ week_data.number }}/edit/{{ truth.number }}" method="POST">
|
2024-07-27 22:41:06 +01:00
|
|
|
{% include "weeks/truth_editor" %}
|
2024-07-23 21:51:42 +01:00
|
|
|
</form>
|
2024-08-01 22:49:41 +01:00
|
|
|
{% if tags | length > 0 and tags | length > truth.tags | length %}
|
|
|
|
<form class="truth_edit_form" action="/{{ week_data.number }}/tag/{{ truth.id }}" method="post">
|
|
|
|
<label>Thème supplémentaire:
|
|
|
|
<select name="name">
|
|
|
|
{% for tag in tags %}
|
|
|
|
{% if not truth.tags is containing(tag) %}
|
|
|
|
<option value="{{ tag.name }}" style="background-color: {{ tag.color }}">{{ tag.name }}</option>
|
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
|
|
|
</select>
|
|
|
|
</label>
|
|
|
|
<button>Ajouter un thème</button>
|
|
|
|
</form>
|
|
|
|
{% endif %}
|
2024-07-23 21:51:42 +01:00
|
|
|
</div>
|