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:
Masco Kaliyamoorthy 2015-06-29 15:22:40 +05:30
parent 8a48ed34e0
commit d1e2d52777
2 changed files with 2 additions and 2 deletions

View File

@ -11,7 +11,7 @@
<dt>{% trans "Project ID" %}</dt>
<dd>{{ project.id }}</dd>
<dt>{% trans "Enabled" %}</dt>
<dd>{{ project.enabled }}</dd>
<dd>{{ project.enabled|yesno|capfirst }}</dd>
<dt>{% trans "Description" %}</dt>
<dd>{{ project.description|default:_("None") }}</dd>
</dl>

View File

@ -21,7 +21,7 @@
<dt>{% trans "Email" %}</dt>
<dd>{{ user.email|default:_("None") }}</dd>
<dt>{% trans "Enabled" %}</dt>
<dd>{{ user.enabled }}</dd>
<dd>{{ user.enabled|yesno|capfirst }}</dd>
<dt>{% trans "Project ID" %}</dt>
<dd>{{ user.project_id }}</dd>
</dl>