Convert comment posting system to flask framework

This commit is contained in:
James Taylor
2019-07-21 21:48:54 -07:00
parent 167483af21
commit fc295ac93d
7 changed files with 149 additions and 112 deletions

View File

@@ -0,0 +1,26 @@
{% extends "base.html" %}
{% block page_title %}Delete comment?{% endblock %}
{% block style %}
main{
display: grid;
grid-template-columns: minmax(0px, 3fr) 640px 40px 500px minmax(0px,2fr);
align-content: start;
}
main > div, main > form{
margin-top:20px;
grid-column:2;
}
{% endblock style %}
{% block main %}
<div>Are you sure you want to delete this comment?</div>
<form action="" method="POST">
{% for parameter_name, parameter_value in parameters %}
<input type="hidden" name="{{ parameter_name }}" value="{{ parameter_value }}">
{% endfor %}
<input type="submit" value="Yes, delete it">
</form>
{% endblock %}