1 <af-form ctrl=
"modelListCtrl" >
2 <div crm-ui-debug=
"modelListCtrl.getEntity('parent')" />
3 <div crm-ui-debug=
"modelListCtrl.getData('parent')" />
4 <af-entity type=
"Contact" data=
"{contact_type: 'Individual'}" name=
"parent" label=
"Parent" url-autofill=
"1" autofill=
"user" />
5 <af-entity type=
"Contact" name=
"spouse" label=
"Spouse" url-autofill=
"1" />
6 <af-entity type=
"Contact" name=
"home" label=
"Home" />
8 <af-fieldset model=
"parent">
10 <af-field name=
"first_name" defn='{title: ts(
"Your First Name")}'
/>
11 <af-field name=
"last_name" />
12 <af-field name=
"contact_sub_type" defn=
"{widget: hidden}" value=
"Student" />
13 <af-field name=
"gender_id" />
14 <af-field name=
"constituent_information.Marital_Status" />
15 <af-field name=
"constituent_information.Marriage_Date" />
16 <af-field name=
"constituent_information.Most_Important_Issue" />
19 <af-fieldset model=
"spouse">
20 <af-field name=
"first_name" defn='{title: ts(
"Spouse First Name")}'
/>
21 <af-field name=
"last_name" />
24 <!-- General elements: FIELDSET, UL, BUTTON, P, H1 should work anywhere -->
25 <button ng-click=
"modelListCtrl.submit()">Submit
</button>