This repository has been archived by the owner on Jun 12, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #43 from industrydive/TECH-7721-UX-Changes
TECH-7721 UX updates to source change form
- Loading branch information
Showing
5 changed files
with
53 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
.object-tools a:link.change-link, .object-tools a:visited.change-link { | ||
align-items: center; | ||
background: #417690; | ||
display: flex; | ||
} | ||
|
||
.object-tools .change-link img { | ||
margin-right: 3px; | ||
padding-bottom: 2px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
{% extends 'admin/change_form.html' %} | ||
{% load static %} | ||
{% load admin_urls %} | ||
|
||
{% block extrahead %} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{% extends 'admin/change_form.html' %} | ||
{% load static %} | ||
|
||
{% block content_title %} | ||
{% if request.GET.edit %} | ||
<h1>Edit {{ opts.verbose_name }}</h1> | ||
{% else %} | ||
<h1>View {{ opts.verbose_name }}</h1> | ||
{% endif %} | ||
{% endblock %} | ||
|
||
{% block object-tools-items %} | ||
{{ block.super }} | ||
{% if not '?edit=true' in request.get_full_path %} | ||
<li> | ||
<a href="{% url 'admin:sources_person_change' object_id %}?edit=true" class="change-link"/> | ||
<img src="{% static 'img/admin/sources/icon-pencil.svg' %}" width="11px" height="11px" > | ||
<span>Edit</span> | ||
</a> | ||
</li> | ||
{% elif '?edit=true' in request.get_full_path %} | ||
<li> | ||
<a href="{% url 'admin:sources_person_change' object_id %}" class="change-link"> | ||
<span>View</span> | ||
</a> | ||
</li> | ||
{% endif %} | ||
{% endblock %} | ||
|
||
{% comment %} | ||
Keeping this empty removes the submit buttons | ||
at the top of the page | ||
{% endcomment %} | ||
{% block submit_buttons_top %} | ||
{% block submit-row %} | ||
|
||
{% endblock %} | ||
{% endblock %} |
This file was deleted.
Oops, something went wrong.