From 88b2d89608544fa132e3b92be0444b752262b17f Mon Sep 17 00:00:00 2001 From: xq2005 Date: Fri, 29 Apr 2011 05:42:36 +0000 Subject: [PATCH] add a guide page for users git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9428 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-UI/js/manual/manual.js | 15 +++++++++++++++ xCAT-UI/js/ui.js | 7 ++++++- xCAT-UI/manual.php | 17 +++++++++++++++++ 3 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 xCAT-UI/js/manual/manual.js create mode 100644 xCAT-UI/manual.php diff --git a/xCAT-UI/js/manual/manual.js b/xCAT-UI/js/manual/manual.js new file mode 100644 index 000000000..22a0710a8 --- /dev/null +++ b/xCAT-UI/js/manual/manual.js @@ -0,0 +1,15 @@ +function loadManualPage(){ + // Create monitor tab + var tab = new Tab(); + tab.init(); + $('#content').append(tab.object()); + //add the help content + var helpForm = $('
'); + helpForm.append('
Quick Start
    ' + + '
  1. 1. Discover hardwares
    Discover all hardwares in the cluster. Define them into xCAT database. Initialize your cluster fast and easily. It is in the Discover tab.
  2. ' + + '
  3. 2. Verify defined nodes
    See nodes definition by groups in table style and graphical layout style.
  4. ' + + '
  5. 3. Install compute nodes
    Copy useful files from DVD into harddisk. Create Linux image. Install compute nodesin stateful, stateless and statelite style. It\'s all here.
  6. ' + + '
  7. 4. Monitor Cluster
    Allows you to plug-in one or more third party monitoring software such as Ganglia, RMC etc. to monitor the xCAT cluster.
' + + '
Advanced
  1. a. Edit the xCAT database tables directly
  2. b. Update the xCAT RPM on Management node automatically
'); + tab.add('monitorTab', 'Guide', helpForm, false); +} \ No newline at end of file diff --git a/xCAT-UI/js/ui.js b/xCAT-UI/js/ui.js index 086a3a8ab..7cac4b0d7 100644 --- a/xCAT-UI/js/ui.js +++ b/xCAT-UI/js/ui.js @@ -511,7 +511,12 @@ function initPage() { includeJs("js/monitor/gangliamon.js"); headers.eq(3).css('background-color', '#A9D0F5'); loadMonitorPage(); - } else { + } else if (page == 'manual.php') { + includeJs("js/manual/manual.js"); + headers.eq(4).css('background-color', '#A9D0F5'); + loadManualPage(); + } + else { includeJs("js/jquery/jquery.topzindex.min.js"); includeJs("js/nodes/nodeset.js"); includeJs("js/nodes/rnetboot.js"); diff --git a/xCAT-UI/manual.php b/xCAT-UI/manual.php new file mode 100644 index 000000000..8529d430a --- /dev/null +++ b/xCAT-UI/manual.php @@ -0,0 +1,17 @@ + \ No newline at end of file