From 510ff1e83650584ea38a22c02920c4469963d944 Mon Sep 17 00:00:00 2001 From: Charles Shin Date: Thu, 29 Jun 2017 16:01:48 -0700 Subject: [PATCH] DIV-255: Updated alias type to always use also known as --- edivorce/apps/core/static/js/functions.js | 5 +++-- .../core/templates/partials/alias_field.html | 16 ++++++++++------ 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/edivorce/apps/core/static/js/functions.js b/edivorce/apps/core/static/js/functions.js index 21f08d48..28a04e39 100644 --- a/edivorce/apps/core/static/js/functions.js +++ b/edivorce/apps/core/static/js/functions.js @@ -118,9 +118,10 @@ var getValue = function(el, question){ } // for adding other_name fields, create list of [aliasType, alias] else if (question == "other_name_you" || question == "other_name_spouse"){ - var aliasType; + var aliasType = "also known as"; $('#other_names_fields').find("input[type=text]").each(function () { - aliasType = $(this).val() == '' ? '' : $(this).siblings(".alias-type").val(); + // as per request, alias type will always be also known as for now + // aliasType = $(this).val() == '' ? '' : $(this).siblings(".alias-type").val(); value.push([aliasType, $(this).val()]); }); return JSON.stringify(value); diff --git a/edivorce/apps/core/templates/partials/alias_field.html b/edivorce/apps/core/templates/partials/alias_field.html index 633c7f3a..34333b58 100644 --- a/edivorce/apps/core/templates/partials/alias_field.html +++ b/edivorce/apps/core/templates/partials/alias_field.html @@ -1,11 +1,15 @@ {% load input_field %}
- + {% comment As per request, alias type will fixed to "also know as" %} + + {% endcomment %} + + {% input_field type="text" name=name value=value multiple="true" class="form-control response-textbox" %}
\ No newline at end of file