Move add button. Reindent.
This commit is contained in:
parent
2884ce78aa
commit
281eebbd62
@ -16,101 +16,102 @@
|
|||||||
-->
|
-->
|
||||||
<!-- vim: set tw=80 ts=2 sw=2 sts=2: -->
|
<!-- vim: set tw=80 ts=2 sw=2 sts=2: -->
|
||||||
<!-- Row with entry table -->
|
<!-- Row with entry table -->
|
||||||
<div>
|
<div class="row">
|
||||||
<div class="row">
|
<table class="table table-striped table-condensed table-hover">
|
||||||
<div class="col-md-3 col-md-offset-1">
|
<!-- Head of the table containing column headers and size -->
|
||||||
<button class="btn btn-success" ng-click="addAccount()">Ajouter</button>
|
<thead>
|
||||||
</div>
|
<tr>
|
||||||
</div>
|
<th class="">Nom du compte</th>
|
||||||
|
<th class="col-md-1">Solde courant</th>
|
||||||
|
<th class="col-md-1">Solde pointé</th>
|
||||||
|
<th class="col-md-1">Découvert autorisé</th>
|
||||||
|
<th class="col-md-1">Actions</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
|
||||||
<div class="row">
|
<!-- Body of the table containing the entries -->
|
||||||
<table class="table table-striped table-condensed table-hover">
|
<tbody>
|
||||||
<!-- Head of the table containing column headers and size -->
|
<tr>
|
||||||
<thead>
|
<td colspan="5">
|
||||||
<tr>
|
<button class="btn btn-success btn-success"
|
||||||
<th class="">Nom du compte</th>
|
ng-click="addAccount()">Ajouter</button>
|
||||||
<th class="col-md-1">Solde courant</th>
|
</td>
|
||||||
<th class="col-md-1">Solde pointé</th>
|
</tr>
|
||||||
<th class="col-md-1">Découvert autorisé</th>
|
|
||||||
<th class="col-md-1">Actions</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
|
|
||||||
<!-- Body of the table containing the entries -->
|
<tr id="{{ account.id }}"
|
||||||
<tbody>
|
class="form-inline" ng-class="rowClass(account)"
|
||||||
<tr id="{{ account.id }}" class="form-inline" ng-class="rowClass(account)" ng-repeat="account in accounts">
|
ng-repeat="account in accounts">
|
||||||
<td>
|
<td>
|
||||||
<span editable-text="account.name"
|
<span editable-text="account.name"
|
||||||
e-placeholder="Nom du compte"
|
e-placeholder="Nom du compte"
|
||||||
e-style="width: 100%"
|
e-style="width: 100%"
|
||||||
e-name="name" e-form="rowform" e-required>
|
e-name="name" e-form="rowform" e-required>
|
||||||
<a href="account/{{ account.id }}/entries">{{ account.name }}</a>
|
<a href="account/{{ account.id }}/entries">{{ account.name }}</a>
|
||||||
</span>
|
</span>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
<td>
|
<td>
|
||||||
<span ng-class="valueClass(account, account.current)">
|
<span ng-class="valueClass(account, account.current)">
|
||||||
{{ account.current }}
|
{{ account.current }}
|
||||||
</span>
|
</span>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
<td>
|
<td>
|
||||||
<span ng-class="valueClass(account, account.pointed)">
|
<span ng-class="valueClass(account, account.pointed)">
|
||||||
{{ account.pointed }}
|
{{ account.pointed }}
|
||||||
</span>
|
</span>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
<td>
|
<td>
|
||||||
<span editable-number="account.authorized_overdraft"
|
<span editable-number="account.authorized_overdraft"
|
||||||
e-max="0"
|
e-max="0"
|
||||||
e-style="width: 100%"
|
e-style="width: 100%"
|
||||||
e-name="authorized_overdraft" e-form="rowform">
|
e-name="authorized_overdraft" e-form="rowform">
|
||||||
{{ account.authorized_overdraft }}
|
{{ account.authorized_overdraft }}
|
||||||
</span>
|
</span>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
<td>
|
<td>
|
||||||
<form editable-form name="rowform"
|
<form editable-form name="rowform"
|
||||||
onbeforesave="saveAccount($data, $index)" shown="!account.id">
|
onbeforesave="saveAccount($data, $index)" shown="!account.id">
|
||||||
<div class="btn-group">
|
<div class="btn-group">
|
||||||
<!-- Save account. -->
|
<!-- Save account. -->
|
||||||
<button type="submit" class="btn btn-xs btn-success"
|
<button type="submit" class="btn btn-xs btn-success"
|
||||||
ng-if="rowform.$visible">
|
ng-if="rowform.$visible">
|
||||||
<span class="fa fa-floppy-o"></span>
|
<span class="fa fa-floppy-o"></span>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<!-- Cancel account edition. -->
|
<!-- Cancel account edition. -->
|
||||||
<button type="button" class="btn btn-xs btn-default"
|
<button type="button" class="btn btn-xs btn-default"
|
||||||
ng-if="rowform.$visible"
|
ng-if="rowform.$visible"
|
||||||
ng-click="cancelEdit(rowform, account, $index)">
|
ng-click="cancelEdit(rowform, account, $index)">
|
||||||
<span class="fa fa-times"></span>
|
<span class="fa fa-times"></span>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<!-- Edit account. -->
|
<!-- Edit account. -->
|
||||||
<button type="button" class="btn btn-xs btn-success"
|
<button type="button" class="btn btn-xs btn-success"
|
||||||
ng-show="!rowform.$visible"
|
ng-show="!rowform.$visible"
|
||||||
ng-click="rowform.$show()">
|
ng-click="rowform.$show()">
|
||||||
<span class="fa fa-pencil-square-o"></span>
|
<span class="fa fa-pencil-square-o"></span>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<!-- Delete account, with confirm. -->
|
<!-- Delete account, with confirm. -->
|
||||||
<button type="button" class="btn btn-xs btn-default"
|
<button type="button" class="btn btn-xs btn-default"
|
||||||
ng-if="account.id"
|
ng-if="account.id"
|
||||||
ng-click="deleteAccount(account, $index)">
|
ng-click="deleteAccount(account, $index)">
|
||||||
<span class="fa fa-trash-o"></span>
|
<span class="fa fa-trash-o"></span>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<!-- Open account scheduler. -->
|
<!-- Open account scheduler. -->
|
||||||
<a class="btn btn-xs btn-default"
|
<a class="btn btn-xs btn-default"
|
||||||
ng-if="!isNew(account)"
|
ng-if="!isNew(account)"
|
||||||
href="account/{{ account.id }}/scheduler">
|
href="account/{{ account.id }}/scheduler">
|
||||||
<span class="fa fa-clock-o"></span>
|
<span class="fa fa-clock-o"></span>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user