simplePad2/templates/pad.html.twig
2019-12-22 20:40:15 +01:00

37 lines
1.5 KiB
Twig

<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<title>{{ page_title|e('html') }}</title>
{% block stylesheets %}
<link href="{{ asset('/css/style.css') }}" type="text/css" rel="stylesheet" />
{% endblock %}
<script src="{{ asset('js/main.js') }}"></script>
<script src="{{ asset('js/sjcl.js') }}"></script>
</head>
<body onload="ready()">
<h1>{{head_title|e('html')}} </h1>
<nav>
<img alt="menu" title="plus d'options" src="img/menus.svg" id="showOptions" class="link"/>
<em id="moreoptions" class="hidden-by-default">
Chiffrer le pad:
<input type="text" id="key" placeholder="Clef de chiffrement"/>
<input type="button" id="buttonCrypt" value="chiffrer"/>
<input type="button" id="buttonUncrypt" value="déchiffrer"/>
</em>
</nav>
{{ form_start(form) }}
{{ form_widget(form.crypt_iv, {}) }}
{{ form_widget(form.crypt_v, {}) }}
{{ form_widget(form.crypt_iter, {}) }}
{{ form_widget(form.crypt_ks, {}) }}
{{ form_widget(form.crypt_ts, {}) }}
{{ form_widget(form.crypt_mode, {}) }}
{{ form_widget(form.crypt_adata, {}) }}
{{ form_widget(form.crypt_cipher, {"value": "none"}) }}
{{ form_widget(form.crypt_salt, {}) }}
{{ form_widget(form.content, {}) }}
{{ form_end(form) }}
</body>
</html>