made changes to the token and removed extra handling errors

This commit is contained in:
Beverly Nguyen
2024-03-08 15:05:44 -08:00
parent 2822b63a49
commit 7479a6c4ea
3 changed files with 9 additions and 23 deletions

View File

@@ -22,7 +22,8 @@
{{ template|string }}
<div class="bottom-gutter-3-2">
<form method="get" enctype="multipart/form-data" action="{{url_for('main.preview_job', service_id=current_service.id, template_id=template_id, upload_id=upload_id)}}" class='page-footer'>
<form method="post" enctype="multipart/form-data" action="{{url_for('main.preview_job', service_id=current_service.id, template_id=template_id, upload_id=upload_id)}}" class='page-footer'>
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}" />
{% if choose_time_form %}
{{ choose_time_form.scheduled_for(param_extensions={
'formGroup': {'classes': 'bottom-gutter-2-3'},

View File

@@ -46,11 +46,12 @@
{{ template|string }}
<div class="js-stick-at-bottom-when-scrolling">
<form method="get" enctype="multipart/form-data" action="{{url_for(
<form method="post" enctype="multipart/form-data" action="{{url_for(
'main.preview_notification',
service_id=current_service.id,
template_id=template.id
)}}" class='page-footer'>
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}" />
{% if not error %}
{% if choose_time_form %}
{{ choose_time_form.scheduled_for(param_extensions={