Index: lams_central/web/author2.jsp =================================================================== diff -u -r874c54709961f76c4ca248e7f9dec90d79d6f30a -r3764cd835f0cd39d0a151f12185ae229e9aaff37 --- lams_central/web/author2.jsp (.../author2.jsp) (revision 874c54709961f76c4ca248e7f9dec90d79d6f30a) +++ lams_central/web/author2.jsp (.../author2.jsp) (revision 3764cd835f0cd39d0a151f12185ae229e9aaff37) @@ -61,6 +61,12 @@
Arrange
+
+ Copy +
+
+ Paste +
@@ -82,50 +88,65 @@
-
-
Open sequence
+ +
+
Open sequence
- - -
-
+
+
-
+
+
- +
+ Recently used sequences
-
-
-
+ + + + + + + +
Title: - +
Grouping: - +
+ Offline Activity: + + +
+ Define in Monitor: + + +
@@ -136,11 +157,36 @@ Title: - +
+
+ + + + + + + + + +
+ Title: + + +
+ Title: + + +
+
\ No newline at end of file Index: lams_central/web/css/authoring.css =================================================================== diff -u -ra3d8ca871cecdad8f45756fdcae6d697bd0e8499 -r3764cd835f0cd39d0a151f12185ae229e9aaff37 --- lams_central/web/css/authoring.css (.../authoring.css) (revision a3d8ca871cecdad8f45756fdcae6d697bd0e8499) +++ lams_central/web/css/authoring.css (.../authoring.css) (revision 3764cd835f0cd39d0a151f12185ae229e9aaff37) @@ -1,3 +1,5 @@ +/**** Global styles ****/ + .ygtv-highlight1, .ygtv-highlight1 .ygtvlabel { background-color: #dfeffc; } @@ -6,6 +8,10 @@ border-bottom: none; } + + +/**** Dialog styles ****/ + .ui-dialog { font-size: 12px; } @@ -15,35 +21,44 @@ display: none; } -#infoDialog { - font-weight: bold; -} - div.dialogTitle { padding: 5px 0px 5px 0px; font-weight: bold; text-align: center; } -div#openLearningDesignDialog > table { + + +div.propertiesDialogContainer .ui-dialog-titlebar { + padding: 0 0 0 5px; +} + + +div#infoDialog { + font-weight: bold; + display: none; +} + + +div#ldStoreDialog > table { width: 100%; height: 684px; table-layout: fixed; border-top: thin dotted #2E6E9E; } -div#openLearningDesignDialog td#learningDesignTreeCell { +div#ldStoreDialog td#ldStoreDialogTreeCell { padding: 2px 2px 0px 5px; vertical-align: top; width: 200px; border-right: thin dotted #2E6E9E; } -div#openLearningDesignDialog div#learningDesignTree { +div#ldStoreDialog div#ldStoreDialogTree { overflow: auto; } -div#openLearningDesignDialog #recentlyUsedCell { +div#ldStoreDialog #ldStoreDialogRecentlyUsedCell { height: 200px; vertical-align: top; border-top: thin dotted #2E6E9E; @@ -54,21 +69,25 @@ text-align: center; } -div#openLearningDesignDialog td#canvasCell { +div#ldStoreDialog td#ldStoreDialogCanvasCell { text-align: center; padding: 10px 0px 0px 10px; vertical-align: middle; } -div#openLearningDesignDialog div#canvasDiv { +div#ldStoreDialog div#ldStoreDialogCanvasDiv { overflow: auto; height: 665px; } -div#openLearningDesignDialog img#ldScreenshotLoading { +div#ldStoreDialog img#ldScreenshotLoading { padding-top: 200px; } + +/**** Main authoring styles ****/ + + div#toolbar { padding: 3px; height: 27px; @@ -140,12 +159,4 @@ width: 100%; height: 745px; vertical-align: top; -} - -div.propertiesDialog { - font-size: 12px; -} - -div.propertiesDialog .ui-dialog-titlebar { - padding: 0 0 0 5px; } \ No newline at end of file Index: lams_central/web/includes/javascript/authoring/authoringActivity.js =================================================================== diff -u -r874c54709961f76c4ca248e7f9dec90d79d6f30a -r3764cd835f0cd39d0a151f12185ae229e9aaff37 --- lams_central/web/includes/javascript/authoring/authoringActivity.js (.../authoringActivity.js) (revision 874c54709961f76c4ca248e7f9dec90d79d6f30a) +++ lams_central/web/includes/javascript/authoring/authoringActivity.js (.../authoringActivity.js) (revision 3764cd835f0cd39d0a151f12185ae229e9aaff37) @@ -44,14 +44,17 @@ /** * Constructor for a Gate Activity. */ - GateActivity : function(id, x, y) { + GateActivity : function(id, x, y, gateType) { this.id = id; this.type = 'gate'; + this.gateType = gateType || 'permission'; this.transitions = { 'from' : [], 'to' : [] }; + this.loadPropertiesDialogContent = ActivityLib.loadPropertiesDialogContent.gate; + this.draw = ActivityLib.draw.gate; this.draw(x, y); }, @@ -96,8 +99,9 @@ /** * Represents a subsequence of activities. It is not displayed on canvas. */ - BranchActivity : function(id, branchingActivity, transitionFrom) { + BranchActivity : function(id, title, branchingActivity, transitionFrom) { this.id = id; + this.title = title; this.transitionFrom = transitionFrom; this.branchingActivity = branchingActivity; }, @@ -121,10 +125,13 @@ paper.setStart(); var shape = paper.path(Raphael.format('M {0} {1}' + layout.defs.activity, x, y)) .attr({ - 'fill' : layout.colors.activity + 'fill' : this.offline ? layout.colors.offlineActivity : layout.colors.activity }); paper.image(layout.toolIcons[this.toolID], x + 47, y + 2, 30, 30); - paper.text(x + 62, y + 40, ActivityLib.shortenActivityTitle(this.title)); + paper.text(x + 62, y + 40, ActivityLib.shortenActivityTitle(this.title)) + .attr({ + 'fill' : this.offline ? layout.colors.offlineActivityText : layout.colors.activityText + }); this.items = paper.setFinish(); this.items.shape = shape; @@ -176,12 +183,12 @@ // create activity SVG elements paper.setStart(); - var shape = paper.path(Raphael.format('M {0} {1}' + layout.defs.gate, x, y)) + var shape = paper.path(Raphael.format('M {0} {1}' + layout.defs.gate, x + 8, y)) .attr({ 'fill' : layout.colors.gate }); - paper.text(x + 7, y + 14, 'STOP') + paper.text(x + 15, y + 14, 'STOP') .attr({ 'font-size' : 9, 'font' : 'sans-serif', @@ -240,20 +247,25 @@ if (!content) { // first run, create the content content = activity.propertiesContent = $('#propertiesContentTool').clone().show(); - $('.title', content).val(activity.title); + $('.propertiesContentFieldTitle', content).val(activity.title); $('input, select', content).change(function(){ // extract changed properties and redraw the activity - activity.title = $('.title', activity.propertiesContent).val(); - activity.grouping = $('.grouping option:selected', activity.propertiesContent) + activity.title = $('.propertiesContentFieldTitle', activity.propertiesContent).val(); + activity.grouping = $('.propertiesContentFieldGrouping option:selected', activity.propertiesContent) .data('grouping'); + activity.offline = $('.propertiesContentFieldOffline', activity.propertiesContent) + .is(':checked'); + activity.defineInMonitor = $('.propertiesContentFieldDefineMonitor', activity.propertiesContent) + .is(':checked'); + activity.draw(); }); } // find all groupings on canvas and fill dropdown menu with their titles var emptyOption = $('