Insert a button to perform the last step of autopost via POST request. Fixes #650
- Legacy-Id: 3064
This commit is contained in:
parent
af039fba02
commit
fe466900e1
|
@ -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)
|
||||
|
||||
|
||||
|
|
15
ietf/templates/submit/last_confirmation_step.html
Normal file
15
ietf/templates/submit/last_confirmation_step.html
Normal file
|
@ -0,0 +1,15 @@
|
|||
{% extends "submit/submit_base.html" %}
|
||||
|
||||
{% block title %}Confirm Auto-Post{% endblock %}
|
||||
|
||||
|
||||
{% block submit_content %}
|
||||
|
||||
<h2>Confirm auto-post</h2>
|
||||
<p>
|
||||
Authorization key accepted. Please the button below to finish Auto-Post of <strong>{{ detail.filename }}-{{ detail.revision }}</strong>
|
||||
</p>
|
||||
<form action="" method="post">
|
||||
<input type="submit" value="Auto-Post" />
|
||||
</form>
|
||||
{% endblock %}
|
Loading…
Reference in a new issue