Skip to content

Commit

Permalink
✨ Add types blades on signage detail
Browse files Browse the repository at this point in the history
  • Loading branch information
LePetitTim committed Jan 19, 2023
1 parent 7623264 commit 3458b92
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ CHANGELOG
2.94.0+dev (XXXX-XX-XX)
-----------------------

**Minor improvements**

- Add types blades on signage detail (#3325)

**Warning**

Bionic (Ubuntu 18.04) instances need to install deadsnakes PPA to handle python3.8 updates:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ <h3>{% trans "Blades" %}</h3>
{% if object.order_blades %}
<tr>
<th>{% trans "Code" %}</th>
<th>{% trans "Type" %}</th>
<th>{% trans "Color" %}</th>
{% if not is_direction_on_lines_enabled %}
<th>{% trans "Direction" %}</th>
Expand All @@ -95,6 +96,7 @@ <h3>{% trans "Blades" %}</h3>
<tr {% if blade.order_lines.all|length > 1 %}class="dashed-line"{% endif %}>
{% if not is_direction_on_lines_enabled %}
<td><a href="{% url 'signage:blade_detail' blade.pk %}">{{ blade }}</a></td>
<td>{{ blade.type|default_if_none:"" }}</td>
<td>{{ blade.color|default_if_none:"" }}</td>
<td>{{ blade.direction }}</td>
<td>{{ blade.condition|default_if_none:"" }}</td>
Expand All @@ -111,6 +113,7 @@ <h3>{% trans "Blades" %}</h3>
{% endfor %}
{% else %}
<td><a href="{% url 'signage:blade_detail' blade.pk %}">{{ blade }}</a></td>
<td>{{ blade.type|default_if_none:"" }}</td>
<td>{{ blade.color|default_if_none:"" }}</td>
<td>{{ blade.condition|default_if_none:"" }}</td>
{% for line in blade.order_lines.all %}
Expand Down

0 comments on commit 3458b92

Please sign in to comment.