Useing 'yesno' filter to display Boolean value
In Project and User detail pages displaying the enabled boolean field in True and False. Which is not correct or match with other boolean displays. This patch using the 'yesno' filter and 'capfirst' filter to display the value in Yes and No format. Change-Id: Ib5ffd2b05b5ed59a36571d134fbbe3781b866c84 Closes-Bug: #1469651
This commit is contained in:
parent
8a48ed34e0
commit
d1e2d52777
@ -11,7 +11,7 @@
|
|||||||
<dt>{% trans "Project ID" %}</dt>
|
<dt>{% trans "Project ID" %}</dt>
|
||||||
<dd>{{ project.id }}</dd>
|
<dd>{{ project.id }}</dd>
|
||||||
<dt>{% trans "Enabled" %}</dt>
|
<dt>{% trans "Enabled" %}</dt>
|
||||||
<dd>{{ project.enabled }}</dd>
|
<dd>{{ project.enabled|yesno|capfirst }}</dd>
|
||||||
<dt>{% trans "Description" %}</dt>
|
<dt>{% trans "Description" %}</dt>
|
||||||
<dd>{{ project.description|default:_("None") }}</dd>
|
<dd>{{ project.description|default:_("None") }}</dd>
|
||||||
</dl>
|
</dl>
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
<dt>{% trans "Email" %}</dt>
|
<dt>{% trans "Email" %}</dt>
|
||||||
<dd>{{ user.email|default:_("None") }}</dd>
|
<dd>{{ user.email|default:_("None") }}</dd>
|
||||||
<dt>{% trans "Enabled" %}</dt>
|
<dt>{% trans "Enabled" %}</dt>
|
||||||
<dd>{{ user.enabled }}</dd>
|
<dd>{{ user.enabled|yesno|capfirst }}</dd>
|
||||||
<dt>{% trans "Project ID" %}</dt>
|
<dt>{% trans "Project ID" %}</dt>
|
||||||
<dd>{{ user.project_id }}</dd>
|
<dd>{{ user.project_id }}</dd>
|
||||||
</dl>
|
</dl>
|
||||||
|
Loading…
Reference in New Issue
Block a user