{% extends "admin/change_form.html" %}
{% load i18n admin_urls static admin_modify activation_admin %}

{% block submit_buttons_top %}{% endblock %}

{% block submit_buttons_bottom %}{% activation_submit_row %}{% endblock %}

{% block admin_change_form_document_ready %}
{{ block.super }}
<script type="text/javascript">
	(function($){
		$(document).ready(function(){
			$(".js-setActive").on('click', function(e){
				resp = confirm({% trans "Are You sure you want to set as active?" %});
				if(!resp){
					return false;
				}

			});
			$(".js-setInactive").on('click', function(e){
				resp = confirm({% trans "Are You sure you want to set as inactive?" %});
				if(!resp){
					return false;
				}
			});
		});
	})(django.jQuery);
</script>
{% endblock %}
