diff options
author | brantje <brantje@gmail.com> | 2016-12-28 18:20:45 +0300 |
---|---|---|
committer | brantje <brantje@gmail.com> | 2016-12-28 18:20:45 +0300 |
commit | 43d26aafe0a667d0944363d81f2e49a5c494e695 (patch) | |
tree | ab769b88733ed2c1ebe7faccc1dc40448d920c20 /templates | |
parent | a4e08bcff0995d83667c95fe9775622c6d3b681e (diff) |
Fix custom fields always beeing added as text fields
Diffstat (limited to 'templates')
-rw-r--r-- | templates/views/partials/forms/edit_credential/custom_fields.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/views/partials/forms/edit_credential/custom_fields.html b/templates/views/partials/forms/edit_credential/custom_fields.html index 27d43830..45507ebf 100644 --- a/templates/views/partials/forms/edit_credential/custom_fields.html +++ b/templates/views/partials/forms/edit_credential/custom_fields.html @@ -21,7 +21,7 @@ </span> </div> <div class="col-xs-4 selectType"> - <select class="form-control" ng-model="$parent.selected_field_type"> + <select class="form-control" ng-model="new_custom_field.field_type"> <option value="text">{{ 'text' | translate}}</option> <option value="password">{{ 'password' | translate}}</option> <option value="file">{{ 'file' | translate}}</option> @@ -30,7 +30,7 @@ </div> <div class="row"> <div class="col-xs-12"> - <ng-password-meter ng-if="selected_field_type ==='password'" + <ng-password-meter ng-if="new_custom_field.field_type ==='password'" password="new_custom_field.value"></ng-password-meter> </div> </div> |