mirror of
https://github.com/skylanix/MamieHenriette.git
synced 2026-02-06 14:50:34 +01:00
55 lines
1.6 KiB
HTML
55 lines
1.6 KiB
HTML
{% extends "template.html" %}
|
|
|
|
{% block content %}
|
|
<h1>Commandes de Mamie</h1>
|
|
<p>Gérez les commandes personnalisées du bot. Ces commandes peuvent être activées sur Discord et/ou Twitch selon vos besoins.</p>
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th>Commande</th>
|
|
<th>Réponse</th>
|
|
<th>Discord</th>
|
|
<th>Twitch</th>
|
|
<th>Actions</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for commande in commandes %}
|
|
<tr>
|
|
<td>{{ commande.trigger }}</td>
|
|
<td>{{ commande.response }}</td>
|
|
<td>
|
|
<a href="{{ url_for('toggle_discord_commande', commande_id = commande.id) }}" class="icon">
|
|
{{ '✅' if commande.discord_enable else '❌' }}
|
|
</a>
|
|
</td>
|
|
<td>
|
|
<a href="{{ url_for('toggle_twitch_commande', commande_id = commande.id) }}" class="icon">
|
|
{{ '✅' if commande.twitch_enable else '❌' }}
|
|
</a>
|
|
</td>
|
|
<td>
|
|
<a href="{{ url_for('delete_commande', commande_id = commande.id) }}" onclick="return confirm('Êtes-vous sûr de vouloir supprimer cette commande ?')">Supprimer</a>
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
|
|
<h2>Ajouter une commande</h2>
|
|
<form action="{{ url_for('add_commande') }}" method="POST">
|
|
<label for="trigger">Commande</label>
|
|
<input name="trigger" type="text" />
|
|
<label for="response">Réponse</label>
|
|
<textarea name="response" rows="5" cols="50"></textarea>
|
|
<div>
|
|
<label for="discord_enable">Discord</label>
|
|
<input name="discord_enable" type="checkbox" checked />
|
|
</div>
|
|
<div>
|
|
<label for="twitch_enable">Twitch</label>
|
|
<input name="twitch_enable" type="checkbox" unchecked />
|
|
</div>
|
|
<input type="Submit" value="Ajouter">
|
|
</form>
|
|
{% endblock %} |