equal
deleted
inserted
replaced
|
1 {% load admin_modify adminmedia %} |
|
2 {% output_all bound_field.form_fields %} |
|
3 {% if bound_field.raw_id_admin %} |
|
4 {% if bound_field.field.rel.limit_choices_to %} |
|
5 <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> |
|
6 {% else %} |
|
7 <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> |
|
8 {% endif %} |
|
9 {% else %} |
|
10 {% if bound_field.needs_add_label %} |
|
11 <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> |
|
12 {% endif %}{% endif %} |
|
13 {% if change %} |
|
14 {% if bound_field.field.primary_key %} |
|
15 {{ bound_field.original_value }} |
|
16 {% endif %} |
|
17 {% if bound_field.raw_id_admin %} |
|
18 {% if bound_field.existing_display %} <strong>{{ bound_field.existing_display|truncatewords:"14" }}</strong>{% endif %} |
|
19 {% endif %} |
|
20 {% endif %} |