Added drag to enable edit mode

This commit is contained in:
Andrew Henry
2015-10-20 21:03:36 -07:00
parent 5382cca435
commit 92573b817f
7 changed files with 50 additions and 29 deletions

View File

@@ -20,13 +20,8 @@
at runtime from the About dialog for additional information.
-->
<div ng-init="
editMode = false;
editBtns = [{ cssclass: 'save',title: 'Save Changes' },{ cssclass: 'cancel',title: 'Discard Changes' }];
"></div>
<a class="s-btn"
style="opacity: 0.9; position:absolute; right: 250px; z-index: 100"
ng-class="{ major:!editMode }"
ng-click="editMode = !editMode">Set EditMode to {{!editMode}}</a>
<span ng-controller="BrowseObjectController">
<div class="object-browse-bar bar l-flex">
<div class="items-select left">
@@ -50,23 +45,20 @@
</div>
</div>
<div class="l-object-wrapper"
<div class="l-object-wrapper edit-main"
ng-class="{ active:editMode }">
<div class="l-object-wrapper-inner l-flex flex-col">
<!-- Toolbar and Save/Cancel buttons -->
<div class="l-edit-controls flex-elem l-flex flex-row"
ng-class="{ active:editMode }">
<mct-toolbar name="mctToolbar"
structure="toolbar.structure"
ng-model="toolbar.state"
class="flex-elem grow">
</mct-toolbar>
<!-- from toolbar.html -->
<!-- <mct-toolbar-x class="flex-elem grow">
<!--<mct-toolbar-x class="flex-elem grow">
<form novalidate>
<div class="tool-bar btn-bar contents abs">
<span class="l-control-group">
@@ -75,17 +67,17 @@
</span>
</div>
</form>
</mct-toolbar-x>-->
</mct-toolbar-x> -->
<mct-representation key="'edit-action-buttons'"
<!--<mct-representation key="'edit-action-buttons'"
mct-object="domainObject"
class='flex-elem conclude-editing'>
</mct-representation>
</mct-representation> -->
<!-- from edit-action-buttons.html -->
<!-- <span>
<!--<span>
<span ng-repeat="btn in editBtns">
<a class='s-btn t-{{btn.cssclass}}'
title='{{btn.title}}'