{% extends 'generic/object_detail.html' %}
{% load helpers %}

{% block content_left_page %}
        <div class="panel panel-default">
            <div class="panel-heading">
                <strong>Details</strong>
            </div>

            <table class="table table-hover panel-body attr-table">
                <tr>
                    <td>Name</td>
                    <td><span>{{ object.name }}</span></td>
                </tr>
                <tr>
                    <td>Owner</td>
                    <td>{{ object.owner|hyperlinked_object }}</td>
                </tr>
                <tr>
                    <td>Description</td>
                    <td>{{ object.description|placeholder }}</td>
                </tr>
            </table>
        </div>

        <div class="panel panel-default">
            <div class="panel-heading">
                <strong>Template</strong>
            </div>
            <table class="table table-hover panel-body attr-table">
                <tr>
                    <td>Object Type</td>
                    <td><span>{{ object.content_type }}</span></td>
                </tr>
                <tr>
                    <td>Mime Type</td>
                    <td><span>{{ object.mime_type }}</span></td>
                </tr>
                <tr>
                    <td>File Extension</td>
                    <td><span>{{ object.file_extension }}</span></td>
                </tr>
            </table>
        </div>
{% endblock content_left_page %}

{% block content_right_page %}
            <div class="panel panel-default">
                <div class="panel-heading">
                    <strong>Code Template</strong>
                </div>
                    {% if object.template_code %} <pre>{{ object.template_code }}</pre> {% else %} {{ None }} {% endif %}
            </div>
{% endblock content_right_page %}
