spinner on submit button via http://jsfiddle.net/xc6nx235/16/
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
ng-options="account.name for account in accounts track by account.id"></select>
|
||||
</div>
|
||||
|
||||
<div class="col-md-offset-4 col-md-4 col-xs-offset-1 col-xs-10">
|
||||
<div class="col-md-offset-4 col-md-4 col-xs-12">
|
||||
|
||||
<div ng-show="lastSubmission" class="lastSubmission col-xs-offset-1 alert alert-info" role="alert">
|
||||
{{lastSubmission.date | date:'dd.MM.yyyy'}}
|
||||
@@ -17,8 +17,8 @@
|
||||
<span style='color: red; font-weight: bold;'><a href='' ng-click='deleteLastSubmission()'>löschen</a></span>
|
||||
</div>
|
||||
|
||||
<div class="row" style="margin-top:2em;">
|
||||
<form name="form" ng-submit="postTransaction()">
|
||||
<div class="row" style="margin: 2em 2ex 2ex 2ex;">
|
||||
<form name="form" ng-submit="submitTransaction()">
|
||||
|
||||
<div class="row form-group">
|
||||
<label for="amountInput">Betrag</label>
|
||||
@@ -72,9 +72,12 @@
|
||||
<label class='userLabel' ng-repeat="user in accountUsers"><input name='expenseBy' ng-model='$parent.transaction.creditor' type='radio' value="{{user._links.self.href}}" /> {{user.name}} </label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row form-group" style="text-align:center;">
|
||||
<input type="submit" ng-disabled="form.amount.$error.pattern" class="btn btn-primary" />
|
||||
|
||||
<div class="row form-group" style="text-align: center;">
|
||||
<button id="transactionSubmit" type="submit" class="btn btn-primary" ng-disabled="form.amount.$error.pattern">
|
||||
<span ng-show="waitingForSubmission"><i class="glyphicon glyphicon-refresh spinning"></i> </span>
|
||||
Senden
|
||||
</button>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
|
||||
Reference in New Issue
Block a user