PageRenderTime 41ms CodeModel.GetById 19ms RepoModel.GetById 0ms app.codeStats 0ms

/django/contrib/admin/templates/admin/change_form.html

https://code.google.com/p/mango-py/
HTML | 71 lines | 57 code | 14 blank | 0 comment | 0 complexity | 1662092bfa91802a1b8fe9be3f48230a MD5 | raw file
Possible License(s): BSD-3-Clause
  1. {% extends "admin/base_site.html" %}
  2. {% load i18n admin_modify adminmedia %}
  3. {% load url from future %}
  4. {% block extrahead %}{{ block.super }}
  5. {% url 'admin:jsi18n' as jsi18nurl %}
  6. <script type="text/javascript" src="{{ jsi18nurl|default:"../../../jsi18n/" }}"></script>
  7. {{ media }}
  8. {% endblock %}
  9. {% block extrastyle %}{{ block.super }}<link rel="stylesheet" type="text/css" href="{% admin_media_prefix %}css/forms.css" />{% endblock %}
  10. {% block coltype %}{% if ordered_objects %}colMS{% else %}colM{% endif %}{% endblock %}
  11. {% block bodyclass %}{{ opts.app_label }}-{{ opts.object_name.lower }} change-form{% endblock %}
  12. {% block breadcrumbs %}{% if not is_popup %}
  13. <div class="breadcrumbs">
  14. <a href="../../../">{% trans "Home" %}</a> &rsaquo;
  15. <a href="../../">{{ app_label|capfirst|escape }}</a> &rsaquo;
  16. {% if has_change_permission %}<a href="../">{{ opts.verbose_name_plural|capfirst }}</a>{% else %}{{ opts.verbose_name_plural|capfirst }}{% endif %} &rsaquo;
  17. {% if add %}{% trans "Add" %} {{ opts.verbose_name }}{% else %}{{ original|truncatewords:"18" }}{% endif %}
  18. </div>
  19. {% endif %}{% endblock %}
  20. {% block content %}<div id="content-main">
  21. {% block object-tools %}
  22. {% if change %}{% if not is_popup %}
  23. <ul class="object-tools">
  24. {% block object-tools-items %}
  25. <li><a href="history/" class="historylink">{% trans "History" %}</a></li>
  26. {% if has_absolute_url %}<li><a href="../../../r/{{ content_type_id }}/{{ object_id }}/" class="viewsitelink">{% trans "View on site" %}</a></li>{% endif%}
  27. {% endblock %}
  28. </ul>
  29. {% endif %}{% endif %}
  30. {% endblock %}
  31. <form {% if has_file_field %}enctype="multipart/form-data" {% endif %}action="{{ form_url }}" method="post" id="{{ opts.module_name }}_form">{% csrf_token %}{% block form_top %}{% endblock %}
  32. <div>
  33. {% if is_popup %}<input type="hidden" name="_popup" value="1" />{% endif %}
  34. {% if save_on_top %}{% submit_row %}{% endif %}
  35. {% if errors %}
  36. <p class="errornote">
  37. {% blocktrans count errors|length as counter %}Please correct the error below.{% plural %}Please correct the errors below.{% endblocktrans %}
  38. </p>
  39. {{ adminform.form.non_field_errors }}
  40. {% endif %}
  41. {% for fieldset in adminform %}
  42. {% include "admin/includes/fieldset.html" %}
  43. {% endfor %}
  44. {% block after_field_sets %}{% endblock %}
  45. {% for inline_admin_formset in inline_admin_formsets %}
  46. {% include inline_admin_formset.opts.template %}
  47. {% endfor %}
  48. {% block after_related_objects %}{% endblock %}
  49. {% submit_row %}
  50. {% if adminform and add %}
  51. <script type="text/javascript">document.getElementById("{{ adminform.first_field.id_for_label }}").focus();</script>
  52. {% endif %}
  53. {# JavaScript for prepopulated fields #}
  54. {% prepopulated_fields_js %}
  55. </div>
  56. </form></div>
  57. {% endblock %}