fix: add docstatus for translation

(cherry picked from commit dda272220b)
This commit is contained in:
mahsem
2024-12-06 14:59:16 +01:00
committed by Mergify
parent ebc8bede7f
commit 0a4090a771
4 changed files with 4 additions and 4 deletions

View File

@@ -18,7 +18,7 @@
{% if doc.status == "Open" %}
{{ doc.priority }}
{% else %}
{{ doc.status }}
{{ _(doc.status) }}
{%- endif -%}
</span>
</div>

View File

@@ -20,7 +20,7 @@
</div>
{% else %}
<span class="indicator-pill {{ " red" if doc.status=="Open" else "darkgrey" }}">
{{ doc.status }}</span>
{{ _(doc.status) }}</span>
{% endif %}
</div>
{% if doc["_assign"] %}

View File

@@ -8,7 +8,7 @@
</div>
</div>
<div class="col-sm-3">
<span class="indicator-pill {{ doc.indicator_color or ("blue" if doc.docstatus==1 else "gray") }} list-item-status">{{doc.status}}</span>
<span class="indicator-pill {{ doc.indicator_color or ("blue" if doc.docstatus==1 else "gray") }} list-item-status">{{ _(doc.status) }}</span>
</div>
<div class="col-sm-2">
<div class="small text-muted items-preview ellipsis ellipsis-width">

View File

@@ -38,7 +38,7 @@
<input type="text" class="form-control" name="Hours" readonly value= "{{ doc.hours }}">
<label for="status" class="control-label text-muted small">{{ __("Status") }}</label>
<input type="text" class="form-control" name="status" readonly value= "{{ doc.status }}">
<input type="text" class="form-control" name="status" readonly value= "{{ _(doc.status) }}">
<label for="Note" class="control-label text-muted small">{{ __("Note") }}</label>
<textarea class="form-control" name="Hours" readonly> {{ doc.note }} </textarea>