Edition et suppression des notes

This commit is contained in:
Justine Pelletreau
2022-03-16 23:28:00 +01:00
parent fba3ebebff
commit 818e4fb68e
6 changed files with 113 additions and 23 deletions

28
src/templates/edit.html Normal file
View File

@ -0,0 +1,28 @@
<html>
<head>
<link rel="stylesheet" href="{{ url_for('static', filename='styles/main.css') }}" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<link href='https://fonts.googleapis.com/css?family=Source Sans Pro' rel='stylesheet'>
<title>squip_notes</title>
</head>
<body>
<h1>$ ~/squip_notes</h3>
<div class="div1">
<form action="." method="POST">
<textarea type="text" name="title" class="title">{{ ntitle }}</textarea><br>
<textarea type="text" name="text" rows = "5" cols = "60*" class="text">{{ ntext }}</textarea><br>
<button type="submit" name="submit">OK</button>
</form>
You are editing {{ notenumber }} <br>
<!--Its title is {{ ntitle }} <br>
Its text says {{ ntext }} <br>-->
<br>
{{ nr }}
<div>
</body>
</meta>
</html>