-
Notifications
You must be signed in to change notification settings - Fork 581
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable to rollback sponsorship applications to editing (#1711)
* Enable rollback sponsorship to edit * Admin view to rollback to edit * Add button in sponsorship's change form
- Loading branch information
Showing
6 changed files
with
210 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
templates/sponsors/admin/rollback_sponsorship_to_editing.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{% extends 'admin/base_site.html' %} | ||
{% load i18n admin_static sponsors %} | ||
|
||
{% block extrastyle %}{{ block.super }}<link rel="stylesheet" type="text/css" href="{% static "admin/css/forms.css" %}">{% endblock %} | ||
|
||
{% block title %}Rollback {{ sponsorship }} to editing| python.org{% endblock %} | ||
|
||
{% block breadcrumbs %} | ||
<div class="breadcrumbs"> | ||
<a href="{% url 'admin:index' %}">{% trans 'Home' %}</a> > | ||
<a href="{% url 'admin:app_list' app_label='sponsors' %}">{% trans 'Sponsors' %}</a> > | ||
<a href="{% url 'admin:sponsors_sponsorship_changelist' %}">{% trans 'Sponsorship' %}</a> > | ||
<a href="{% url 'admin:sponsors_sponsorship_change' sponsorship.pk %}">{{ sponsorship }}</a> > | ||
{% trans 'Rollback to editing' %} | ||
</div> | ||
{% endblock %} | ||
|
||
{% block content %} | ||
<h1>Rollback to Editing</h1> | ||
<p>Please review the sponsorship application and click in the Rollback button if you want to proceed.</p> | ||
<div id="content-main"> | ||
<form action="" method="post" id="new_psf_board_meeting_form"> | ||
{% csrf_token %} | ||
|
||
<pre>{% full_sponsorship sponsorship display_fee=True %}</pre> | ||
|
||
<input name="confirm" value="yes" style="display:none"> | ||
|
||
<div class="submit-row"> | ||
<input type="submit" value="Rollback" class="default"> | ||
</div> | ||
|
||
</form> | ||
<div> | ||
</div>{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters