Created
October 30, 2019 10:31
-
-
Save ohld/ee9b4b501892082f15903bf460a3ed05 to your computer and use it in GitHub Desktop.
Django Admin action Intermediate page code template
This file contains hidden or 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
<!-- my_django_app/templates/admin/broadcast_message.html --> | |
<!-- This block will be included to django admin basic template --> | |
{% extends "admin/base_site.html" %} | |
{% block content %} | |
<form action="" method="post">{% csrf_token %} | |
<!-- The code of the form with all input fields will be automatically generated by Django --> | |
{{ form }} | |
<!-- Show the list of selected objects on the previous step --> | |
<p>Broadcast Message will be sent to these users:</p> | |
<ul>{{ items|unordered_list }}</ul> | |
<!-- Link the action name in hidden params --> | |
<input type="hidden" name="action" value="broadcast" /> | |
<!-- Submit! Apply! --> | |
<input type="submit" name="apply" value="Send" /> | |
</form> | |
{% endblock %} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment