-
Notifications
You must be signed in to change notification settings - Fork 702
Expand file tree
/
Copy pathpost.twig
More file actions
40 lines (36 loc) · 1.49 KB
/
post.twig
File metadata and controls
40 lines (36 loc) · 1.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="icon" href="{{ asset("icons/favicon.ico") }}">
<title>{% trans %}Sending message{% endtrans %}</title>
<link rel="stylesheet" href="{{ asset("css/postSubmit.css") }}">
<script src="{{ asset("js/post.js") }}"></script>
</head>
<body>
<form method="post" action="{{ destination }}">
{#- We need to add this element and call the click method, because calling submit() on the form causes failed
submissions if the form has another element with name or id of submit. See:
https://developer.mozilla.org/en/DOM/form.submit#Specification
#}
<input type="submit" id="postLoginSubmitButton">
{%- for name, value in post %}
{%- if value is iterable %}
{%- for index, item in value %}
<input type="hidden" name="{{ name }}[{{ index }}]" value="{{ item }}">
{%- endfor %}
{%- else %}
<input type="hidden" name="{{ name }}" value="{{ value }}">
{%- endif %}
{%- endfor %}
<noscript>
<h2>{% trans %}Warning{% endtrans %}</h2>
<p>{% trans %}Since your browser does not support Javascript, you must press the button below to proceed.{%
endtrans %}</p>
<button type="submit">{% trans %}Yes, continue{% endtrans %}</button>
</noscript>
</form>
</body>
</html>