{{ 'requires-auth' | partial }} {{ '/validation/server/contacts/' | assignTo: continue }} {{ { id } | sendToGateway('GetContact', {catchError:'ex'}) | assignTo: response }} {{#with response.Result}}

Update Contact

{{ 'title,name,color,filmGenres,age' | validationSummary }} {{ {continue,errorView:`/validation/server/contacts/${id}/edit`} | htmlHiddenInputs }}
{{ {id:'title',type:'radio',value:Title} | formInput({values:contactTitles,inline:true}) }}
{{ {id:'name',value:Name} | formInput({label:'Name'}) }}
{{ {id:'color',class:'col-4',value:Color} | formSelect({label:'Favorite color',values:contactColors}) }}
{{ {id:'filmGenres',type:'checkbox',value:FilmGenres} | formInput({label:'Favorite Film Genres',values:contactGenres,help:"choose one or more"}) }}
{{ {id:'age',type:'number',min:13,value:Age,class:'col-3'} | formInput({label:'Age'}) }}
cancel
{{else if ex}}
{{ex.Message}}

< back

{{/with}} {{ htmlError }}