Admin related widget wrapper with edit / delete link (html)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
{{ widget }}
{% if can_change_related %}
	<a class="related-widget-wrapper-link related-widget-wrapper-change-link" id="edit_id_{{ name }}" data-href-template="{{ change_url_template }}"{% if change_url %} href="{{ change_url }}"{% endif %} title="{{ change_help_text }}">
		<img src="{{ media_prefix }}img/admin/icon_changelink.gif" width="10" height="10" alt="{{ change_help_text }}"/>
	</a>
{% endif %}
{% if can_add_related %}
	<a class="related-widget-wrapper-link related-widget-wrapper-add-link add-related" href="{{ add_url }}" id="add_id_{{ name }}"  title="{{ add_help_text }}">
		<img src="{{ media_prefix }}img/admin/icon_addlink.gif" width="10" height="10" alt="{{ add_help_text }}"/>
	</a>
{% endif %}
{% if can_delete_related %}
	<a class="related-widget-wrapper-link related-widget-wrapper-delete-link" id="delete_id_{{ name }}" data-href-template="{{ delete_url_template }}"{% if delete_url %} href="{{ delete_url }}"{% endif %} title="{{ delete_help_text }}">
		<img src="{{ media_prefix }}img/admin/icon_deletelink.gif" width="10" height="10" alt="{{ delete_help_text }}"/>
	</a>
{% endif %}

More like this

  1. Admin related widget wrapper with edit / delete link (python widget) by nasp 2 years, 6 months ago
  2. Admin related widget wrapper with edit / delete link (widget js) by nasp 2 years, 6 months ago
  3. Admin related widget wrapper with edit / delete link (python model admin) by nasp 2 years, 6 months ago
  4. Replace model select widget in admin with a readonly link to the related object by ekellner 5 years, 7 months ago
  5. View all log entries in the admin 2 by tgandor 4 months ago

Comments

(Forgotten your password?)