diff options
Diffstat (limited to 'google_appengine/lib/django/django/contrib/admin/templates/widget/foreign.html')
-rw-r--r-- | google_appengine/lib/django/django/contrib/admin/templates/widget/foreign.html | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/google_appengine/lib/django/django/contrib/admin/templates/widget/foreign.html b/google_appengine/lib/django/django/contrib/admin/templates/widget/foreign.html new file mode 100644 index 0000000..301f521 --- /dev/null +++ b/google_appengine/lib/django/django/contrib/admin/templates/widget/foreign.html @@ -0,0 +1,20 @@ +{% load admin_modify adminmedia %} +{% output_all bound_field.form_fields %} +{% if bound_field.raw_id_admin %} + {% if bound_field.field.rel.limit_choices_to %} + <a href="{{ bound_field.related_url }}?{% for limit_choice in bound_field.field.rel.limit_choices_to.items %}{% if not forloop.first %}&{% endif %}{{ limit_choice|join:"=" }}{% endfor %}" class="related-lookup" id="lookup_{{ bound_field.element_id }}" onclick="return showRelatedObjectLookupPopup(this);"> <img src="{% admin_media_prefix %}img/admin/selector-search.gif" width="16" height="16" alt="Lookup"></a> + {% else %} + <a href="{{ bound_field.related_url }}" class="related-lookup" id="lookup_{{ bound_field.element_id }}" onclick="return showRelatedObjectLookupPopup(this);"> <img src="{% admin_media_prefix %}img/admin/selector-search.gif" width="16" height="16" alt="Lookup"></a> + {% endif %} +{% else %} +{% if bound_field.needs_add_label %} + <a href="{{ bound_field.related_url }}add/" class="add-another" id="add_{{ bound_field.element_id }}" onclick="return showAddAnotherPopup(this);"> <img src="{% admin_media_prefix %}img/admin/icon_addlink.gif" width="10" height="10" alt="Add Another"/></a> +{% endif %}{% endif %} +{% if change %} + {% if bound_field.field.primary_key %} + {{ bound_field.original_value }} + {% endif %} + {% if bound_field.raw_id_admin %} + {% if bound_field.existing_display %} <strong>{{ bound_field.existing_display|truncatewords:"14"|escape }}</strong>{% endif %} + {% endif %} +{% endif %} |