36 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			36 lines
		
	
	
		
			1.1 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>
 | 
						|
    </body>
 | 
						|
</html>
 |