Added save buttons

This commit is contained in:
Henry 2015-10-21 11:54:35 -07:00
parent 92573b817f
commit 15ed91f651
2 changed files with 8 additions and 10 deletions

View File

@ -47,16 +47,21 @@
<div class="l-object-wrapper edit-main" <div class="l-object-wrapper edit-main"
ng-class="{ active:editMode }"> ng-class="{ active:editMode }">
<div style="text-align: right;">
<mct-representation key="'edit-action-buttons'"
mct-object="domainObject"
class='flex-elem conclude-editing'></div>
</mct-representation>
<div class="l-object-wrapper-inner l-flex flex-col"> <div class="l-object-wrapper-inner l-flex flex-col">
<!-- Toolbar and Save/Cancel buttons --> <!-- Toolbar and Save/Cancel buttons -->
<div class="l-edit-controls flex-elem l-flex flex-row" <div class="l-edit-controls flex-elem l-flex flex-row"
ng-class="{ active:editMode }"> ng-class="{ active:editMode }">
<mct-toolbar name="mctToolbar" <!--<mct-toolbar name="mctToolbar"
structure="toolbar.structure" structure="toolbar.structure"
ng-model="toolbar.state" ng-model="toolbar.state"
class="flex-elem grow"> class="flex-elem grow">
</mct-toolbar> </mct-toolbar> -->
<!-- from toolbar.html --> <!-- from toolbar.html -->
<!--<mct-toolbar-x class="flex-elem grow"> <!--<mct-toolbar-x class="flex-elem grow">
<form novalidate> <form novalidate>
@ -69,13 +74,6 @@
</form> </form>
</mct-toolbar-x> --> </mct-toolbar-x> -->
<!--<mct-representation key="'edit-action-buttons'"
mct-object="domainObject"
class='flex-elem conclude-editing'>
</mct-representation> -->
<!-- from edit-action-buttons.html --> <!-- from edit-action-buttons.html -->
<!--<span> <!--<span>
<span ng-repeat="btn in editBtns"> <span ng-repeat="btn in editBtns">

View File

@ -72,7 +72,7 @@ define(
if (editMode){ if (editMode){
$scope.domainObject = domainObject && new EditableDomainObject(domainObject, $q); $scope.domainObject = domainObject && new EditableDomainObject(domainObject, $q);
} else { } else {
$scope.domainObject = (domainObject.getDomainObject && domainObject.getDomainObject) || domainObject; $scope.domainObject = (domainObject.getDomainObject && domainObject.getDomainObject()) || domainObject;
} }
} }