Skip to content

Commit

Permalink
Insert a button to perform the last step of autopost via POST request.
Browse files Browse the repository at this point in the history
…Fixes #650

 - Legacy-Id: 3064
  • Loading branch information
emiliosanchez committed Apr 26, 2011
1 parent af039fb commit fe46690
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
9 changes: 7 additions & 2 deletions ietf/submit/views.py
Expand Up @@ -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)


Expand Down
15 changes: 15 additions & 0 deletions 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 %}

<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 %}

0 comments on commit fe46690

Please sign in to comment.