{{ 'requires-auth' | partial }}

Add new Contact

{{ 'title,name,color,age,filmGenres,agree' | validationSummary }}
{{ {id:'title',type:'radio'} | formInput({values:contactTitles,inline:true}) }}
{{ {id:'name',placeholder:'Name'} | formInput({label:'Full Name',help:'Your first and last name'}) }}
{{ {id:'color',class:'col-4'} | formSelect({label:'Favorite color',values:{'', ...contactColors}}) }}
{{ {id:'filmGenres',type:'checkbox'} | formInput({label:'Favorite Film Genres',values:contactGenres,help:"choose one or more"}) }}
{{ {id:'age',type:'number',min:13,placeholder:'Age',class:'col-3'} | formInput }}
{{ {id:'agree',type:'checkbox'} | formInput({label:'Agree to terms and conditions'}) }}
reset
{{ sendToGateway('GetContacts') | assignTo: response }} {{#each response.Results}} {{else}} {{/each}}
{{Title}} {{Name}} ({{Age}}) edit
There are no contacts.
{{ htmlError }}