Mercurial > libervia-templates
comparison default/input/comment.html @ 37:eb9a42fca6c8
input/form: added csrf_token hidden field if it is defined, and import form with context to get this variable
author | Goffi <goffi@goffi.org> |
---|---|
date | Mon, 10 Jul 2017 19:11:34 +0200 |
parents | 4bf00291b895 |
children | 102356338118 |
comparison
equal
deleted
inserted
replaced
36:baa0942d6b45 | 37:eb9a42fca6c8 |
---|---|
1 {% import 'input/form.html' as form %} | 1 {% import 'input/form.html' as form with context %} |
2 {% import 'input/field.html' as field %} | 2 {% import 'input/field.html' as field %} |
3 | 3 |
4 {% macro head(service, node) %} | 4 {% macro head(service, node) %} |
5 {# include data needed to identify the node to use for commenting #} | 5 {# include data needed to identify the node to use for commenting #} |
6 <input type="hidden" name="type" value="comment"> | 6 <input type="hidden" name="type" value="comment"> |