<!DOCTYPE html>
<html>
    <head>
        <title>Speaker Editor</title>
    </head>

    <body>
        <select name='speaker_id' id='speaker_id' onchange='retrieveSpeaker()'>
            <option value='0'>-- Speaker --</option>
            {% for s in speakers %}
            <option value='{{ s.id }}'>{{ s.name }}</option>
            {% endfor %}
        </select>&nbsp;&nbsp;
        <input type='text' name='speaker_name' id='speaker_name' />&nbsp;&nbsp;
        <input type='button' name='save' value='Save' onclick='saveSpeaker()' />&nbsp;&nbsp;
        <a href='/'>Back</a>
        
        <script src='{{ asset("js/script.js") }}'></script>
    </body>
</html>