2005-11-27 06:46:31 +08:00
|
|
|
{% load admin_modify adminmedia %}
|
2005-11-26 05:20:09 +08:00
|
|
|
{% output_all bound_field.form_fields %}
|
|
|
|
{% if bound_field.raw_id_admin %}
|
2005-11-29 13:50:31 +08:00
|
|
|
<a href="../../../{{ bound_field.field.rel.to.app_label }}/{{ bound_field.field.rel.to.module_name }}/" 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>
|
2005-11-26 05:20:09 +08:00
|
|
|
{% else %}
|
|
|
|
{% if bound_field.needs_add_label %}
|
2005-11-29 13:50:31 +08:00
|
|
|
<a href="../../../{{ bound_field.field.rel.to.app_label }}/{{ bound_field.field.rel.to.module_name }}/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>
|
2005-11-27 06:46:31 +08:00
|
|
|
{% endif %}{% endif %}
|