Commit 5789c3e9 authored by Alain Takoudjou's avatar Alain Takoudjou

Update Layout: Define menu groups

parent 4f072e7d
...@@ -28,7 +28,7 @@ td{ ...@@ -28,7 +28,7 @@ td{
border-right: 1px solid #A8A8A8; border-right: 1px solid #A8A8A8;
} }
td.propertie{padding-left:10px; color:blue;width: 178px;} td.propertie{padding-left:10px; color:blue;width: 178px;}
.slapvalues{display:block;width: 375px;word-wrap: break-word} .slapvalues{display:block;width: 522px;word-wrap: break-word}
td.first{border-left: 1px solid #A8A8A8;} td.first{border-left: 1px solid #A8A8A8;}
th{ th{
background: #2281C1; background: #2281C1;
...@@ -122,7 +122,7 @@ overflow-y: scroll; ...@@ -122,7 +122,7 @@ overflow-y: scroll;
margin:0; margin:0;
margin-top:1px; margin-top:1px;
padding:0; padding:0;
margin-left:40px; margin-left:20px;
} }
.space{ .space{
...@@ -163,11 +163,11 @@ overflow-y: scroll; ...@@ -163,11 +163,11 @@ overflow-y: scroll;
text-shadow:1px 1px 0 #E6EDF2; text-shadow:1px 1px 0 #E6EDF2;
} }
.wmenu ul li.sep{border-right: 1px solid #c2c2c2; min-width:22px; height:34px}
.wmenu ul li a{ .wmenu ul li a{
display:block; display:block;
height: 20px; height: 20px;
Color:#000; Color:#275777;
/*background: url(../images/sep.png) right center no-repeat;*/ /*background: url(../images/sep.png) right center no-repeat;*/
border-right: 1px solid #c2c2c2; border-right: 1px solid #c2c2c2;
/*font-weight:bold;*/ /*font-weight:bold;*/
......
...@@ -181,7 +181,7 @@ function setRunningState(data) { ...@@ -181,7 +181,7 @@ function setRunningState(data) {
if ($current !== undefined) { if ($current !== undefined) {
$current.empty(); $current.empty();
$current.append("Run " + processType.toLowerCase()); $current.append("Run " + processType.toLowerCase());
$current.css("color", "#000"); $current.css("color", "#275777");
$current = undefined; $current = undefined;
currentState = false; currentState = false;
$("#error").Popup("Slapgrid finished running your " + processType + " Profile", {type: 'info', duration: 3000}); $("#error").Popup("Slapgrid finished running your " + processType + " Profile", {type: 'info', duration: 3000});
......
...@@ -49,16 +49,16 @@ $(document).ready(function () { ...@@ -49,16 +49,16 @@ $(document).ready(function () {
url: $SCRIPT_ROOT + '/getFileContent', url: $SCRIPT_ROOT + '/getFileContent',
data: {file: file}, data: {file: file},
success: function (data) { success: function (data) {
var name, start; var name, start, path = file;
if (data.code === 1) { if (data.code === 1) {
$("#edit_info").empty(); $("#edit_info").empty();
name = file.split('/'); name = file.split('/');
if (file.length > 60) { if (file.length > 60) {
//substring title. //substring title.
start = file.length - 60; start = file.length - 60;
file = "..." + file.substring(file.indexOf("/", (start + 1))); path = "..." + file.substring(file.indexOf("/", (start + 1)));
} }
$("#edit_info").append(" " + file); $("#edit_info").append(" " + path);
$("a#option").show(); $("a#option").show();
editor.getSession().setValue(data.result); editor.getSession().setValue(data.result);
setEditMode(name[name.length - 1]); setEditMode(name[name.length - 1]);
...@@ -102,18 +102,17 @@ $(document).ready(function () { ...@@ -102,18 +102,17 @@ $(document).ready(function () {
} */ } */
function switchContent() { function switchContent() {
var root = projectDir;
if (!softwareDisplay) { if (!softwareDisplay) {
$("#switch").empty(); $("#switch").empty();
$("#switch").append("Switch to Profile "); $("#switch").append("Switch to Profile ");
root = currentProject; $('#fileTreeFull').show();
$('#fileTree').hide();
} else { } else {
$("#switch").empty(); $("#switch").empty();
$("#switch").append("Switch to Project"); $("#switch").append("Switch to Project");
$('#fileTree').show();
$('#fileTreeFull').hide();
} }
$('#fileTree').fileTree({ root: root, script: $SCRIPT_ROOT + script, folderEvent: 'click', expandSpeed: 750, collapseSpeed: 750, multiFolder: false, selectFolder: true }, function (file) {
selectFile(file);
}, function (file) { openFile(file); });
$("#info").empty(); $("#info").empty();
$("#info").append("Selection: " + base_path()); $("#info").append("Selection: " + base_path());
selection = ""; selection = "";
...@@ -199,6 +198,9 @@ $(document).ready(function () { ...@@ -199,6 +198,9 @@ $(document).ready(function () {
$('#fileTree').fileTree({ root: projectDir, script: $SCRIPT_ROOT + script, folderEvent: 'click', expandSpeed: 750, collapseSpeed: 750, multiFolder: false, selectFolder: true }, function (file) { $('#fileTree').fileTree({ root: projectDir, script: $SCRIPT_ROOT + script, folderEvent: 'click', expandSpeed: 750, collapseSpeed: 750, multiFolder: false, selectFolder: true }, function (file) {
selectFile(file); selectFile(file);
}, function (file) { openFile(file); }); }, function (file) { openFile(file); });
$('#fileTreeFull').fileTree({ root: currentProject, script: $SCRIPT_ROOT + script, folderEvent: 'click', expandSpeed: 750, collapseSpeed: 750, multiFolder: false, selectFolder: true }, function (file) {
selectFile(file);
}, function (file) { openFile(file); });
$("#info").append("Selection: " + base_path()); $("#info").append("Selection: " + base_path());
/*setDetailBox();*/ /*setDetailBox();*/
......
...@@ -65,14 +65,16 @@ ...@@ -65,14 +65,16 @@
<div class="wmenu"> <div class="wmenu">
<ul> <ul>
<li><a href="{{ url_for('editSoftwareProfile') }}">Profiles</a></li> <li><a href="{{ url_for('editSoftwareProfile') }}">Profiles</a></li>
<li><a href="{{ url_for('browseWorkspace') }}">Workspace</a></li>
<li class='sep'></li>
<li><a href="{{ url_for('runSoftwareProfile') }}" id="softrun">Run software</a></li> <li><a href="{{ url_for('runSoftwareProfile') }}" id="softrun">Run software</a></li>
<li><a href="{{ url_for('viewSoftwareLog') }}">Software log</a></li> <li><a href="{{ url_for('viewSoftwareLog') }}">Software log</a></li>
<li><a href="{{ url_for('inspectSoftware') }}">SR result</a></li> <li><a href="{{ url_for('inspectSoftware') }}">SR result</a></li>
<li class='sep'></li>
<li><a href="{{ url_for('runInstanceProfile') }}" id="instrun">Run instance</a></li> <li><a href="{{ url_for('runInstanceProfile') }}" id="instrun">Run instance</a></li>
<li><a href="{{ url_for('viewInstanceLog') }}">Instance log</a></li> <li><a href="{{ url_for('viewInstanceLog') }}">Instance log</a></li>
<li><a href="{{ url_for('inspectInstance') }}">Inspect instance</a></li> <li><a href="{{ url_for('inspectInstance') }}">Inspect instance</a></li>
<li><a id="removeIst" href="#">Remove instance</a></li> <li><a id="removeIst" href="#">Destroy instance</a></li>
<li><a href="{{ url_for('browseWorkspace') }}">Workspace</a></li>
</ul> </ul>
</div> </div>
<div class="clear"></div> <div class="clear"></div>
......
...@@ -25,6 +25,7 @@ ...@@ -25,6 +25,7 @@
<div class="clear"></div> <div class="clear"></div>
<div id="details_box"> <div id="details_box">
<div id="fileTree" class="file_tree_short" title="Double click to edit selected file..."></div> <div id="fileTree" class="file_tree_short" title="Double click to edit selected file..."></div>
<div id="fileTreeFull" style='display:none' class="file_tree_short" title="Double click to edit selected file..."></div>
<div class="box_software"> <div class="box_software">
<input type="text" name="file" id="file" size='12' value="Name here..." /> <input type="text" name="file" id="file" size='12' value="Name here..." />
&nbsp;<select name="type" id="type"> &nbsp;<select name="type" id="type">
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment