Merge pull request #95 from alberanid/master

fixes #90: custom boolean values are shown also when off
This commit is contained in:
Davide Alberani 2016-04-16 20:37:25 +02:00
commit fb0632cbb4

View file

@ -60,7 +60,7 @@
</td> </td>
<td class="text-center" ng-repeat="col in customFields"> <td class="text-center" ng-repeat="col in customFields">
<span ng-if="col.type == 'boolean'"> <span ng-if="col.type == 'boolean'">
<button class="btn btn-link" ng-click="setPersonAttribute(person, col.key, !person[col.key])"><span class="fa fa-lg {{(person[col.key]) && 'fa-check-circle text-success' || 'da-times-circle text-danger'}}"></span></button> <button class="btn btn-link" ng-click="setPersonAttribute(person, col.key, !person[col.key])"><span class="fa fa-lg {{(person[col.key]) && 'fa-check-circle text-success' || 'fa-times-circle text-danger'}}"></span></button>
</span> </span>
<span ng-if="col.type != 'boolean'"> <span ng-if="col.type != 'boolean'">
{{person[col.key]}} {{person[col.key]}}