{% extends "adagios_standard.html" %}
{% block title %}Copy Object{% endblock %}
{% block smallheader %}Copy{% endblock %}
{% block largeheader %}{{ object.object_type }}{% endblock %}
{% block nav1 %}<a href="{% url objectbrowser %}">Object Browser</a>{% endblock %}



{% block content %}
    {% if success %}
        {% for i in copied_objects %}
            <div class="alert alert-success">
                <button class="close" data-dismiss="alert">×</button>
                <strong>Success!</strong>
                {{ i.object_type }} <a href="{% url edit_object i.id  %}">"{{ i.description }}"</a>
                was successfully saved to {{ i.filename }}.
            </div>
        {% endfor %}
    {% else %}
    You are about to copy {{ object.object_type }} "{{ object.description }}".
        <p></p>
        <form action="#" method="POST" class="form-horizontal">{% csrf_token %}
            {% include "bootstrap_fields.html" with fields=form %}
            <button class="btn btn-success" type="submit"><i class=" icon-thumbs-up icon-white"></i> Copy</button>
        </form>
    {% endif %}
{% endblock %}
