2011-02-03 23:21:34 +00:00
|
|
|
<label>Name:</label>
|
2011-09-08 20:56:29 +00:00
|
|
|
<input type="text" ng:model="form.name" required>
|
2011-02-03 23:21:34 +00:00
|
|
|
|
|
|
|
|
<div ng:repeat="contact in form.contacts">
|
2011-09-08 20:56:29 +00:00
|
|
|
<select ng:model="contact.type">
|
2011-02-03 23:21:34 +00:00
|
|
|
<option>url</option>
|
|
|
|
|
<option>email</option>
|
|
|
|
|
<option>phone</option>
|
|
|
|
|
</select>
|
2011-09-08 20:56:29 +00:00
|
|
|
<input type="text" ng:model="contact.url">
|
2011-02-03 23:21:34 +00:00
|
|
|
[ <a href="" ng:click="form.contacts.$remove(contact)">X</a> ]
|
|
|
|
|
</div>
|
|
|
|
|
<div>
|
|
|
|
|
[ <a href="" ng:click="form.contacts.$add()">add</a> ]
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<button ng:click="cancel()">Cancel</button>
|
2011-09-08 20:56:29 +00:00
|
|
|
<button ng:click="save()">Save</button>
|