-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
51 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
34 changes: 34 additions & 0 deletions
34
templates/partner_programs/admin/program_manager_change_form.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,34 @@ | ||
{% extends "admin/change_form.html" %} | ||
{% load i18n %} | ||
|
||
{% block submit_buttons_bottom %} | ||
|
||
|
||
{{ block.super }} | ||
<div class="submit-row"> | ||
<input type="button" class="export-btn" value="Экспорт" onclick="export_profiles()"/> | ||
</div> | ||
|
||
|
||
|
||
|
||
<div class="submit-row"> | ||
<input type="button" class="export-btn" value="Выгрузка оценок" onclick="partner_programs_export_rates()"/> | ||
</div> | ||
<script> | ||
function export_profiles() { | ||
|
||
{% if object_id %} | ||
window.open("{% url 'admin:export_profiles' object_id %}", '_blank').focus() | ||
{% endif %} | ||
} | ||
|
||
|
||
function partner_programs_export_rates() { | ||
{% if object_id %} | ||
window.open("{% url 'admin:partner_programs_export_rates' object_id %}", '_blank').focus() | ||
{% endif %} | ||
} | ||
</script> | ||
|
||
{% 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