Your template is looking for 3 properties: {name:'',email:'',phone:''}
But the object you are passing has only the single options
property. So it cannot find these values and leaves them blank.
You can:
Adjust the template to use the
options
block:<fieldset> {{#with options}} <input type="text" class="" value="{{name}}" /> <input type="text" class="" value="{{email}}" /> <input type="text" class="" value="{{phone}}" /> {{/with}} </fieldset>
Adjust the template to use the correct path
<fieldset> <input type="text" class="" value="{{options.name}}" /> <input type="text" class="" value="{{options.email}}" /> <input type="text" class="" value="{{options.phone}}" /> </fieldset>
Leave the template alone and adjust the javascript to not wrap these values in an options field:
edit_contact_html = template(current_data);