SAE-A2-TruthInquiry/truthinquiry/templates/admin/npc.html
2023-03-29 10:11:55 +02:00

37 lines
1.2 KiB
HTML

<!DOCTYPE html>
<html lang="fr">
<head>
<title>NPC</title>
<meta charset="UTF-8">
<link rel="stylesheet" href="/static/css/admin_ui.css">
<script src="/static/js/api.js"></script>
<script src="/static/js/admin.js"></script>
</head>
<body>
<a href="/admin"> go Back </a> <br>
<section id="npc">
<section>
<span>Npc name: </span>
<input id="npc_id" value="{{ npc.get('id') or ''}}" hidden>
<input id="npc_name" value="{{ npc.get('name') or ''}}">
<img href="{{npc.get('img')}}">
</section>
<section>
<p>Answers:</p>
{%for answer_type in npc.get("answers") or []%}
<section class="answerType">
{%for answer in answer_type%}
<input value="{{answer}}">
{%endfor%}
</section>
{%endfor%}
</section>
</section>
<button onclick="saveFormNpc()">Save changes</button>
<button onclick="deleteNpc()">Delete Npc</button>
</body>
</html>