bit more bootstrappy
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
var transactionControllers = angular.module('transactionControllers', ['ngResource']);
|
||||
|
||||
transactionControllers.controller('TransactionListCtrl', [ '$http', '$scope', '$location', '$resource', '$q', function($http, $scope, $location, $resource, $q) {
|
||||
transactionControllers.controller('TransactionListCtrl', [ '$scope', '$location', '$resource', '$q', function($scope, $location, $resource, $q) {
|
||||
|
||||
$scope.refreshList = function() {
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
|
||||
<div><select ng-model='account' ng-change='refreshList()' ng-options="account.name for account in accounts track by account.id"></select></div>
|
||||
<div><select ng-model='account' ng-change='refreshList()' ng-options="account.name for account in accounts track by account.id" class="btn"></select></div>
|
||||
|
||||
<div class="col-md-offset-1 col-md-10 col-xs-12">
|
||||
|
||||
@@ -17,8 +17,6 @@
|
||||
<div class="row">
|
||||
<form name="form" ng-submit="postTransaction()" class="col-md-offset-4 col-xs-offset-1">
|
||||
|
||||
<br />
|
||||
|
||||
<div class="row form-group">
|
||||
<label for="inputAmount">Betrag:</label>
|
||||
<input id="inputAmount"
|
||||
@@ -32,59 +30,42 @@
|
||||
<span ng-show="form.amount.$error.pattern"><br/>The value is not valid!</span>
|
||||
</div>
|
||||
|
||||
<br />
|
||||
|
||||
<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()'
|
||||
class="form-control"></select>
|
||||
</div>
|
||||
<div class="row form-group">
|
||||
<label for="inputCategory">Kategorie:</label>
|
||||
<select id="inputCategory"
|
||||
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>
|
||||
|
||||
<br />
|
||||
|
||||
<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
|
||||
class="form-control" />
|
||||
</div>
|
||||
<div class="row form-group">
|
||||
<label for="inputDate">Datum:</label>
|
||||
<input id="inputDate"
|
||||
ng-model='transaction.date'
|
||||
type='date'
|
||||
placeholder="yyyy-MM-dd"
|
||||
required
|
||||
class="form-control" />
|
||||
</div>
|
||||
|
||||
<br />
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-1 col-xs-2 input-heading">Notiz:</div>
|
||||
<div class="col-md-11 col-xs-10">
|
||||
<input ng-model="transaction.description"
|
||||
uib-typeahead="address for address in updateSuggestions($viewValue)"
|
||||
typeahead-loading="loadingLocations"
|
||||
class="form-control">
|
||||
</div>
|
||||
<div class="row form-group">
|
||||
<label for="inputAmount">Notiz:</label>
|
||||
<input id="inputAmount"
|
||||
ng-model="transaction.description"
|
||||
uib-typeahead="address for address in updateSuggestions($viewValue)"
|
||||
typeahead-loading="loadingLocations"
|
||||
class="form-control">
|
||||
</div>
|
||||
|
||||
<br />
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-1 col-xs-2 input-heading">Auslage:</div>
|
||||
<div class="col-md-11 col-xs-10">
|
||||
<!-- label class='userLabel'><input name='expenseBy' ng-model='transaction.creditor' ng-value='none' type='radio' checked='checked' />Keine</label -->
|
||||
<!-- label ng-repeat="user in accountUsers" class='userLabel'><input name='expenseBy' ng-model='$parent.transaction.creditor' ng-value='{{user.name}}' type='radio' />{{user.name}}</label -->
|
||||
|
||||
<label class='userLabel'><input id='noCreditorRadioButton' name='expenseBy' ng-model='transaction.creditor' type='radio' value='' checked='checked' />Keine </label>
|
||||
<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 class="row form-group">
|
||||
<label for="inputExpense">Auslage:</label>
|
||||
<div id="inputExpense">
|
||||
<label class='userLabel'><input id='noCreditorRadioButton' name='expenseBy' ng-model='transaction.creditor' type='radio' value='' checked='checked' /> Keine </label>
|
||||
<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>
|
||||
|
||||
<br />
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-6 text-center">
|
||||
<input type="submit" ng-disabled="form.amount.$error.pattern" class="btn btn-primary" />
|
||||
|
||||
Reference in New Issue
Block a user