radio buttons
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
<div>
|
||||
Betrag: <input name="amount" ng-model='transaction.amount' type='text' required ng-pattern="/^[+-]?(?:\d+(?:[\.,]\d{0,2})?|[\.,]\d{1,2})$/" />
|
||||
</div>
|
||||
<span ng-show="form.amount.$error.pattern"">The value is not a valid value!</span>
|
||||
<span ng-show="form.amount.$error.pattern">The value is not valid!</span>
|
||||
<div>
|
||||
Kategorie: <select ng-model='transaction.category' size='1'
|
||||
ng-options="category.name for category in categories track by category._links.self.href">
|
||||
@@ -18,6 +18,13 @@
|
||||
<div>
|
||||
Notiz: <input ng-model='transaction.description' type='text' size='20' />
|
||||
</div>
|
||||
<div>
|
||||
Auslage: <label><input name='expenseBy' type='radio' checked='checked' />Keine</label>
|
||||
<label ng-repeat="user in users"><input name='expenseBy' type='radio' />{{user.name}}</label>
|
||||
|
||||
|
||||
<input name='expenseBy' id='expenseBy{{id}}' type='radio' value='{{id}}' /><label for="expenseBy{{id}}">{{name}}</label>
|
||||
</div>
|
||||
<div>
|
||||
<input type="submit" ng-disabled="form.amount.$error.pattern" />
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user