angular-ui
This commit is contained in:
@@ -19,13 +19,17 @@
|
||||
|
||||
<br />
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-1 col-xs-2 input-heading">Betrag:</div>
|
||||
<div class="col-md-11 col-xs-10">
|
||||
<input name="amount" ng-model='transaction.amount' type='text' required autocomplete="off" autofocus="autofocus"
|
||||
ng-pattern="/^[+-]?(?:\d+(?:[\.,]\d{0,2})?|[\.,]\d{1,2})$/" /><span ng-show="form.amount.$error.pattern"><br/>The value
|
||||
is not valid!</span>
|
||||
</div>
|
||||
<div class="row form-group">
|
||||
<label for="inputAmount">Betrag:</label>
|
||||
<input id="inputAmount"
|
||||
ng-model='transaction.amount'
|
||||
type='text'
|
||||
required
|
||||
autocomplete="off"
|
||||
autofocus="autofocus"
|
||||
ng-pattern="/^[+-]?(?:\d+(?:[\.,]\d{0,2})?|[\.,]\d{1,2})$/"
|
||||
class="form-control" />
|
||||
<span ng-show="form.amount.$error.pattern"><br/>The value is not valid!</span>
|
||||
</div>
|
||||
|
||||
<br />
|
||||
@@ -33,7 +37,11 @@
|
||||
<div class="row">
|
||||
<div class="col-md-1 col-xs-2 input-heading">Kategorie:</div>
|
||||
<div class="col-md-11 col-xs-10">
|
||||
<select ng-model='transaction.category' size='1' ng-options="category.name for category in categories track by category._links.self.href" ng-change='checkCategory()'></select>
|
||||
<select
|
||||
ng-model='transaction.category'
|
||||
size='1' ng-options="category.name for category in categories track by category._links.self.href"
|
||||
ng-change='checkCategory()'
|
||||
class="form-control"></select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -42,7 +50,11 @@
|
||||
<div class="row">
|
||||
<div class="col-md-1 col-xs-2 input-heading">Datum:</div>
|
||||
<div class="col-md-11 col-xs-10">
|
||||
<input ng-model='transaction.date' type='date' placeholder="yyyy-MM-dd" required />
|
||||
<input ng-model='transaction.date'
|
||||
type='date'
|
||||
placeholder="yyyy-MM-dd"
|
||||
required
|
||||
class="form-control" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -51,20 +63,10 @@
|
||||
<div class="row">
|
||||
<div class="col-md-1 col-xs-2 input-heading">Notiz:</div>
|
||||
<div class="col-md-11 col-xs-10">
|
||||
<autocomplete ng-model="transaction.description" data="descriptionSuggestions" on-type="updateSuggestions"></autocomplete>
|
||||
<!-- input ng-model='transaction.description' type='text' size='20' / -->
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<h4>Asynchronous results</h4>
|
||||
<pre>Model: {{asyncSelected | json}}</pre>
|
||||
<input type="text" ng-model="asyncSelected" placeholder="Locations loaded via $http"
|
||||
uib-typeahead="address for address in getLocation($viewValue)" typeahead-loading="loadingLocations"
|
||||
typeahead-no-results="noResults" class="form-control"> <i ng-show="loadingLocations"
|
||||
class="glyphicon glyphicon-refresh"></i>
|
||||
<div ng-show="noResults">
|
||||
<i class="glyphicon glyphicon-remove"></i> No Results Found
|
||||
<input ng-model="transaction.description"
|
||||
uib-typeahead="address for address in updateSuggestions($viewValue)"
|
||||
typeahead-loading="loadingLocations"
|
||||
class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -115,7 +117,7 @@
|
||||
<div style="margin-top: 2em; text-align: center;">
|
||||
<span ng-repeat="user in accountUsers">{{user.name}} {{user.outstandings | number : 2}} €<br/></span>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- div>
|
||||
<pre style="font-size: 75%; color: darkgray;">{{account | json}}</pre>
|
||||
</div -->
|
||||
|
||||
Reference in New Issue
Block a user