]> git.parisson.com Git - teleforma.git/commitdiff
fix admin user menu
authorGuillaume Pellerin <guillaume.pellerin@parisson.com>
Tue, 23 Jun 2026 17:53:23 +0000 (19:53 +0200)
committerGuillaume Pellerin <guillaume.pellerin@parisson.com>
Tue, 23 Jun 2026 17:53:23 +0000 (19:53 +0200)
teleforma/templates/teleforma/base.html

index 1605eb8d0891fdea3b55cb8802276ac739a75521..84e9f3ae78086a45d5690a95a55348df12a6df19 100644 (file)
               {% if user.is_staff %}
               <li><a href="{% url 'teleforma-help' %}">{% trans "Help" %}</a></li>
               {% endif %}
-              <li><a href="{% url 'teleforma-logout' %}">{% trans "Sign out" %}</a></li>
+              <li><form action="{% url 'teleforma-logout' %}" method="post">
+                {% csrf_token %}
+                <button type="submit">{% trans "Sign out" %}</button>
+                </form>)
+              </li>
             </ul>
           </li>
           {% else %}