mirror of https://github.com/interlegis/sigi.git
Sesostris Vieira
3 years ago
3 changed files with 53 additions and 1 deletions
@ -0,0 +1,17 @@ |
|||||
|
.sigi-object-tools { |
||||
|
background-color: var(--object-tools-bg); |
||||
|
} |
||||
|
|
||||
|
.sigi-object-tools>ul { |
||||
|
display: flex; |
||||
|
padding: 5px 15px; |
||||
|
} |
||||
|
|
||||
|
.sigi-object-tools>ul>li { |
||||
|
padding-right: 20px; |
||||
|
} |
||||
|
|
||||
|
.sigi-object-tools>ul>li>a { |
||||
|
color: var(--object-tools-fg); |
||||
|
border-color: var(--object-tools-fg); |
||||
|
} |
@ -1,3 +1,20 @@ |
|||||
{% extends 'admin/change_form.html' %} |
{% extends 'admin/change_form.html' %} |
||||
|
{% load i18n static admin_modify %} |
||||
|
|
||||
{% block breadcrumbs %}{% endblock %} |
{% block extrastyle %} |
||||
|
{{ block.super }} |
||||
|
<link rel="stylesheet" type="text/css" href="{% static 'css/change_form.css' %}"> |
||||
|
{% endblock %} |
||||
|
{% block breadcrumbs %} |
||||
|
{% if not is_popup %} |
||||
|
<div class="sigi-object-tools"> |
||||
|
<ul> |
||||
|
{% block object-tools-items %} |
||||
|
{% change_form_object_tools %} |
||||
|
{% endblock %} |
||||
|
</ul> |
||||
|
</div> |
||||
|
{% endif %} |
||||
|
{% endblock %} |
||||
|
|
||||
|
{% block object-tools %}{% endblock %} |
@ -0,0 +1,18 @@ |
|||||
|
{% load i18n admin_urls %} |
||||
|
{% block object-tools-items %} |
||||
|
<li> |
||||
|
{% url opts|admin_urlname:'history' original.pk|admin_urlquote as history_url %} |
||||
|
<a href="{% add_preserved_filters history_url %}" class="historylink"> |
||||
|
<i class="left material-icons" aria-hidden="true">history</i> |
||||
|
{% trans "History" %} |
||||
|
</a> |
||||
|
</li> |
||||
|
{% if has_absolute_url %} |
||||
|
<li> |
||||
|
<a href="{{ absolute_url }}" class="viewsitelink"> |
||||
|
<i class="left material-icons" aria-hidden="true">web</i> |
||||
|
{% trans "View on site" %} |
||||
|
</a> |
||||
|
</li> |
||||
|
{% endif %} |
||||
|
{% endblock %} |
Loading…
Reference in new issue