about summary refs log tree commit diff
path: root/uploader/templates/macro-forms.html
diff options
context:
space:
mode:
Diffstat (limited to 'uploader/templates/macro-forms.html')
-rw-r--r--uploader/templates/macro-forms.html9
1 files changed, 9 insertions, 0 deletions
diff --git a/uploader/templates/macro-forms.html b/uploader/templates/macro-forms.html
new file mode 100644
index 0000000..0ccab32
--- /dev/null
+++ b/uploader/templates/macro-forms.html
@@ -0,0 +1,9 @@
+{%macro add_http_feature_flags()%}
+{%for flag in http_feature_flags():%}
+{%if (request.args.get(flag) or request.form.get(flag) or ""):%}
+<input type="hidden"
+       name="{{flag}}"
+       value="{{(request.args.get(flag) or request.form.get(flag))}}" />
+{%endif%}
+{%endfor%}
+{%endmacro%}