Skip to content

Commit e19c437

Browse files
committed
CPT editor: add a link to go back to the list of CPTs
1 parent 173525e commit e19c437

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

editor/static/css/custom_part_type/edit.css

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
.page-header {
22
display: grid;
3-
grid-template: "name save-status" / 1fr 12em;
3+
grid-template:
4+
"back ."
5+
"name save-status" / 1fr 12em;
46
align-items: baseline;
57
}
68
.name-header .glyphicon {

editor/templates/custom_part_type/edit.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010

1111
{% block title %}{{object.name}} - Custom part type - {{block.super}}{% endblock %}
1212

13+
{% block body_classes %}{{block.super}} custom-part-type-editor{% endblock %}
14+
1315
{% block stylesheets %}
1416
{{block.super}}
1517
<link href="{% sstatic 'css/custom_part_type/edit.css' %}" type="text/css" rel="stylesheet" />
@@ -87,6 +89,7 @@ <h2>Error</h2>
8789
<div class="loaded-content">
8890
<div class="page-header">
8991
{% block page_header %}
92+
<a class="back" href="{% url 'profile_custom_part_types' request.user.pk %}">Back to custom part types</a>
9093
<h1 class="name-header">
9194
<span class="glyphicon glyphicon-ok"></span>
9295
<span class="name" data-bind="mathjaxHTML: name"></span>

0 commit comments

Comments
 (0)