Convert comment posting system to flask framework
This commit is contained in:
26
youtube/templates/delete_comment.html
Normal file
26
youtube/templates/delete_comment.html
Normal 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 %}
|
||||
|
||||
Reference in New Issue
Block a user