Move save button.

This commit is contained in:
Alexis Lahouze 2015-08-19 17:46:59 +02:00
parent 281eebbd62
commit 1d8e82afb2

View File

@ -75,6 +75,13 @@
<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">
<!-- Edit account. -->
<button type="button" class="btn btn-xs btn-success"
ng-show="!rowform.$visible"
ng-click="rowform.$show()">
<span class="fa fa-pencil-square-o"></span>
</button>
<!-- 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">
@ -88,13 +95,6 @@
<span class="fa fa-times"></span> <span class="fa fa-times"></span>
</button> </button>
<!-- Edit account. -->
<button type="button" class="btn btn-xs btn-success"
ng-show="!rowform.$visible"
ng-click="rowform.$show()">
<span class="fa fa-pencil-square-o"></span>
</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"