fix workflow form

(cherry picked from commit db4f5f9011)
This commit is contained in:
Benjamin Gamard 2018-12-05 17:23:19 +01:00
parent 98fa89bd80
commit 5169deb005
2 changed files with 12 additions and 11 deletions

View File

@ -1,3 +1,4 @@
'use strict'; 'use strict';
/** /**

View File

@ -136,6 +136,18 @@
</div> </div>
</div> </div>
<div class="clearfix form-group mt-10">
<div class="col-sm-offset-2 col-sm-10">
<button type="submit" class="btn btn-primary" ng-click="edit()" ng-disabled="!editWorkflowForm.$valid">
<span class="fas fa-pencil-alt"></span> {{ 'save' | translate }}
</button>
<button type="button" class="btn btn-danger" ng-click="remove()" ng-show="isEdit()">
<span class="fas fa-trash"></span> {{ 'delete' | translate }}
</button>
</div>
</div>
</form>
<div class="panel panel-default mt-30" ng-show="isEdit()"> <div class="panel panel-default mt-30" ng-show="isEdit()">
<div class="panel-body"> <div class="panel-body">
<p translate="settings.workflow.edit.acl_info"></p> <p translate="settings.workflow.edit.acl_info"></p>
@ -145,16 +157,4 @@
creator="workflow.creator"></acl-edit> creator="workflow.creator"></acl-edit>
</div> </div>
</div> </div>
<div class="clearfix form-group mt-10">
<div class="col-sm-offset-2 col-sm-10">
<button type="submit" class="btn btn-primary" ng-click="edit()" ng-disabled="!editWorkflowForm.$valid">
<span class="fas fa-pencil-alt"></span> {{ isEdit() ? 'save' : 'add' | translate }}
</button>
<button type="button" class="btn btn-danger" ng-click="remove()" ng-show="isEdit()">
<span class="fas fa-trash"></span> {{ 'delete' | translate }}
</button>
</div>
</div>
</form>
</div> </div>