Commit | Line | Data |
---|---|---|
1 | {% extends 'base.html' %} | |
2 | {% block title %} | |
3 | Formulaire poste | |
4 | {% endblock %} | |
5 | {% block content %} | |
6 | <form action="" method="post"> | |
7 | <table cellspacing="0"> | |
8 | {{ form.as_table }} | |
9 | </table> | |
10 | <input type="submit" name="submit" value="Sauvegarder" /> | |
11 | </form> | |
12 | <script type="text/javascript"> | |
13 | $('#id_poste').change(function() { | |
14 | window.location = '{% url poste %}/' + $(this).val(); | |
15 | }); | |
16 | </script> | |
17 | {% endblock %} |