From 9920d8c97eb8a3f6281956aa00ebf39a8da91cfe Mon Sep 17 00:00:00 2001 From: brantje Date: Mon, 16 Jan 2017 13:13:54 +0100 Subject: [PATCH] Fix input fields not changes when field type changes --- js/templates.js | 2 +- .../views/partials/forms/edit_credential/custom_fields.html | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/js/templates.js b/js/templates.js index 4ebeb550..e976cea7 100644 --- a/js/templates.js +++ b/js/templates.js @@ -21,7 +21,7 @@ angular.module('views/partials/forms/edit_credential/basics.html', []).run(['$te angular.module('views/partials/forms/edit_credential/custom_fields.html', []).run(['$templateCache', function($templateCache) { 'use strict'; $templateCache.put('views/partials/forms/edit_credential/custom_fields.html', - '
{{ \'label\' | translate}}{{ \'value\' | translate}}{{ \'type\' | translate}}{{ \'actions\' | translate}}
{{ field.label || "empty" }}{{ field.value || \'empty\' | translate }} * {{field.value.filename}} ({{field.value.size | bytes}}){{ field.field_type }}
'); + '
{{ \'label\' | translate}}{{ \'value\' | translate}}{{ \'type\' | translate}}{{ \'actions\' | translate}}
{{ field.label || "empty" }}{{ field.value || \'empty\' | translate }} * {{field.value.filename}} ({{field.value.size | bytes}}){{ field.field_type }}
'); }]); angular.module('views/partials/forms/edit_credential/files.html', []).run(['$templateCache', function($templateCache) { diff --git a/templates/views/partials/forms/edit_credential/custom_fields.html b/templates/views/partials/forms/edit_credential/custom_fields.html index 45507ebf..8260fe32 100644 --- a/templates/views/partials/forms/edit_credential/custom_fields.html +++ b/templates/views/partials/forms/edit_credential/custom_fields.html @@ -12,10 +12,10 @@
- - + - +