Skip to content

Commit 33c5d9b

Browse files
committed
✨ Add types blades on signage detail
1 parent b25adb9 commit 33c5d9b

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

docs/changelog.rst

+4
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ CHANGELOG
55
2.94.0+dev (XXXX-XX-XX)
66
-----------------------
77

8+
**Minor improvements**
9+
10+
- Add blade type on signage detail view (#3325)
11+
812
**Warning**
913

1014
Bionic (Ubuntu 18.04) instances need to install deadsnakes PPA to handle python3.8 updates:

geotrek/signage/templates/signage/signage_detail_attributes.html

+3
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ <h3>{% trans "Blades" %}</h3>
7676
{% if object.order_blades %}
7777
<tr>
7878
<th>{% trans "Code" %}</th>
79+
<th>{% trans "Type" %}</th>
7980
<th>{% trans "Color" %}</th>
8081
{% if not is_direction_on_lines_enabled %}
8182
<th>{% trans "Direction" %}</th>
@@ -95,6 +96,7 @@ <h3>{% trans "Blades" %}</h3>
9596
<tr {% if blade.order_lines.all|length > 1 %}class="dashed-line"{% endif %}>
9697
{% if not is_direction_on_lines_enabled %}
9798
<td><a href="{% url 'signage:blade_detail' blade.pk %}">{{ blade }}</a></td>
99+
<td>{{ blade.type|default_if_none:"" }}</td>
98100
<td>{{ blade.color|default_if_none:"" }}</td>
99101
<td>{{ blade.direction }}</td>
100102
<td>{{ blade.condition|default_if_none:"" }}</td>
@@ -111,6 +113,7 @@ <h3>{% trans "Blades" %}</h3>
111113
{% endfor %}
112114
{% else %}
113115
<td><a href="{% url 'signage:blade_detail' blade.pk %}">{{ blade }}</a></td>
116+
<td>{{ blade.type|default_if_none:"" }}</td>
114117
<td>{{ blade.color|default_if_none:"" }}</td>
115118
<td>{{ blade.condition|default_if_none:"" }}</td>
116119
{% for line in blade.order_lines.all %}

0 commit comments

Comments
 (0)