{% extends 'modal_base.html' %}
{% load i18n %}

{% block title %}
	{% trans 'Create a copy in Shared activities' %}
{% endblock %}

{% block body %}
	<form action="{{ object.get_public_library_duplicate_url }}?next_url={{ next_url }}" method="post" id="duplicate-form">{% csrf_token %}
		<div class="modal-body">
			{% include 'extras/form.html' %}
		</div>
		<div class="modal-footer clearfix">
			<button type="button" class="btn btn-default pull-left" data-dismiss="modal">{% trans 'Cancel' %}</button>
			<input class="btn btn-danger pull-right" type="submit" value="{% trans 'Confirm' %}" />
		</div>
	</form>
	<script type="text/javascript">
		$(document).ready(function(){
			$('#duplicate-form').autoAjaxForm();
		});
	</script>
{% endblock %}
