{% extends "base/base_rest_api.html" %} {% load url from future %} {% load rest_framework %} {% load static %} {% block top_menu %} {% include "includes/menus/top_nav.html" %} {% endblock %} {% block style_links %} {% endblock %} {% block extra_styles %} body{ background: url("/static/rest_framework/img/grid.png") repeat-x; background-attachment: fixed; } body, .navbar .navbar-inner .container-fluid { max-width: 1150px; margin: 0 auto; } ul.breadcrumb { margin: 15px 0 0 0; } .form-switcher { margin-bottom: 0; } .well { -webkit-box-shadow: none; -moz-box-shadow: none; box-shadow: none; } .well .form-actions { padding-bottom: 0; margin-bottom: 0; } .well form { margin-bottom: 0; } .well form .help-block { color: #999; } .nav-tabs { border: 0; } .nav-tabs > li { float: right;} .nav-tabs li a { margin-right: 0;} .nav-tabs > .active > a { background: #f5f5f5; } .nav-tabs > .active > a:hover { background: #f5f5f5; } .tabbable.first-tab-active .tab-content { border-top-right-radius: 0; } .nav-tabs > li > a:hover, .nav-tabs > li > a:focus { border-color: #eeeeee #eeeeee #dddddd; background-color: #eee !important; color: #0069d6 !important; } .clearfix { margin: 4px 0px 4px 0px !important; } fieldset { padding: 0px !important; margin: 0px !important; } {% endblock %} {% block script_links %} {% endblock %} {% block pageload_scripts %} prettyPrint(); $('a[data-toggle="tab"]:first').on('shown', function (e) { $(e.target).parents('.tabbable').addClass('first-tab-active'); }); $('a[data-toggle="tab"]:not(:first)').on('shown', function (e) { $(e.target).parents('.tabbable').removeClass('first-tab-active'); }); $('.form-switcher a:first').tab('show'); {% if has_filters %} var filtermenu = new ui.filtermenu({ object_type: '{{ object_type }}', rawURL: '{{ request.path }}' }); filtermenu.initialize(); {% endif %} {% endblock %} {% block content %} {% block breadcrumbs %} {% endblock %}
{% if 'GET' in allowed_methods %}
GET
{% endif %} {% if options_form %}
{% csrf_token %}
{% endif %} {% if has_filters and not delete_form %}
FILTER {% include "includes/filter_menu.html" %}
{% endif %} {% if delete_form %}
{% csrf_token %}
{% endif %}
{{ description }}
{% include "includes/messages.html" %} {% include "includes/selected_filters.html" %}
{{ request.method }} {{ request.get_full_path }}
HTTP {{ response.status_code }} {{ response.status_text }}{% autoescape off %} {% for key, val in response.items %}{{ key }}: {{ val|break_long_headers|urlize_quoted_links }} {% endfor %}
{{ content|urlize_quoted_links }}
{% endautoescape %}
{% if response.status_code != 403 %} {% if post_form or raw_data_post_form %}
{% if post_form %} {% endif %}
{% if post_form %}
{% with form=post_form %}
{{ post_form }}
{% endwith %}
{% endif %}
{% with form=raw_data_post_form %}
{% include "rest_framework/raw_data_form.html" %}
{% endwith %}
{% endif %} {% if put_form or raw_data_put_form or raw_data_patch_form %}
{% if put_form %} {% endif %}
{% if put_form %}
{% with form=put_form %}
{{ put_form }}
{% endwith %}
{% endif %}
{% with form=raw_data_put_or_patch_form %}
{% include "rest_framework/raw_data_form.html" %}
{% if raw_data_put_form %} {% endif %} {% if raw_data_patch_form %} {% endif %}
{% endwith %}
{% endif %} {% endif %}
{% endblock %}