From fe466900e1d9a3d6519b471c48ee70aacaba5433 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20A=2E=20S=C3=A1nchez=20L=C3=B3pez?= Date: Tue, 26 Apr 2011 14:54:16 +0000 Subject: [PATCH] Insert a button to perform the last step of autopost via POST request. Fixes #650 - Legacy-Id: 3064 --- ietf/submit/views.py | 9 +++++++-- ietf/templates/submit/last_confirmation_step.html | 15 +++++++++++++++ 2 files changed, 22 insertions(+), 2 deletions(-) create mode 100644 ietf/templates/submit/last_confirmation_step.html diff --git a/ietf/submit/views.py b/ietf/submit/views.py index 497f397244..8e85a4841b 100644 --- a/ietf/submit/views.py +++ b/ietf/submit/views.py @@ -214,8 +214,13 @@ def draft_confirm(request, submission_id, auth_key): elif detail.status_id != WAITING_AUTHENTICATION: message = ('error', 'The submission can not be autoposted because it is in state: %s' % detail.status.status_value) else: - message = ('success', 'Authorization key accepted. Auto-Post complete') - perform_post(detail) + if request.method=='POST': + message = ('success', 'Authorization key accepted. Auto-Post complete') + perform_post(detail) + else: + return render_to_response('submit/last_confirmation_step.html', + {'detail': detail, }, + context_instance=RequestContext(request)) return draft_status(request, submission_id, message=message) diff --git a/ietf/templates/submit/last_confirmation_step.html b/ietf/templates/submit/last_confirmation_step.html new file mode 100644 index 0000000000..5dfe5f686c --- /dev/null +++ b/ietf/templates/submit/last_confirmation_step.html @@ -0,0 +1,15 @@ +{% extends "submit/submit_base.html" %} + +{% block title %}Confirm Auto-Post{% endblock %} + + +{% block submit_content %} + +

Confirm auto-post

+

+Authorization key accepted. Please the button below to finish Auto-Post of {{ detail.filename }}-{{ detail.revision }} +

+
+ +
+{% endblock %}