airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hes...@apache.org
Subject svn commit: r1411419 - in /airavata/sandbox/client-api-demo/src/main/webapp: index.html js/x_app_descriptor_edit_json.js js/x_host_descriptor_save_json.js x_host_descriptor_view_json.html
Date Mon, 19 Nov 2012 21:15:24 GMT
Author: heshan
Date: Mon Nov 19 21:15:23 2012
New Revision: 1411419

URL: http://svn.apache.org/viewvc?rev=1411419&view=rev
Log:
Adding Bootrap js classes.

Modified:
    airavata/sandbox/client-api-demo/src/main/webapp/index.html
    airavata/sandbox/client-api-demo/src/main/webapp/js/x_app_descriptor_edit_json.js
    airavata/sandbox/client-api-demo/src/main/webapp/js/x_host_descriptor_save_json.js
    airavata/sandbox/client-api-demo/src/main/webapp/x_host_descriptor_view_json.html

Modified: airavata/sandbox/client-api-demo/src/main/webapp/index.html
URL: http://svn.apache.org/viewvc/airavata/sandbox/client-api-demo/src/main/webapp/index.html?rev=1411419&r1=1411418&r2=1411419&view=diff
==============================================================================
--- airavata/sandbox/client-api-demo/src/main/webapp/index.html (original)
+++ airavata/sandbox/client-api-demo/src/main/webapp/index.html Mon Nov 19 21:15:23 2012
@@ -49,14 +49,14 @@
 						<li><a href="x_app_descriptor_save_json.html">Save App Descriptors</a></li>
                         <li class="nav-header">Edit Descriptors</li>
                         <li><a href="x_host_descriptor_edit_json.html">Edit Host
Descriptors</a></li>
-                        <!--<li><a href="x_app_descriptor_save_json.html">Save
App Descriptors</a></li>-->
+                        <li><a href="x_app_descriptor_edit_json.html">Save App
Descriptors</a></li>
                         <li class="nav-header">Monitor</li>
                         <li><a href="x_workflow_monitor.html">Workflow Monitor</a></li>
                         <li class="nav-header">Others</li>
-						<!--<li><a href="html/x_host_descriptor_save.html">Save Host	Descriptors</a></li>-->
-						<!--<li><a href="html/x_app_descriptor_save.html">Save App Descriptors</a></li>-->
-						<!--<li><a href="html/x_host_display.html">Registry Service Test	Get</a></li>-->
-						<!--<li><a href="html/x_host_save.html">Registry Service Test Post</a></li>-->
+						<li><a href="html/x_host_descriptor_save.html">Save Host	Descriptors</a></li>
+						<li><a href="html/x_app_descriptor_save.html">Save App Descriptors</a></li>
+						<li><a href="html/x_host_display.html">Registry Service Test	Get</a></li>
+						<li><a href="html/x_host_save.html">Registry Service Test Post</a></li>
 					</ul>
 				</div>
 			</div>

Modified: airavata/sandbox/client-api-demo/src/main/webapp/js/x_app_descriptor_edit_json.js
URL: http://svn.apache.org/viewvc/airavata/sandbox/client-api-demo/src/main/webapp/js/x_app_descriptor_edit_json.js?rev=1411419&r1=1411418&r2=1411419&view=diff
==============================================================================
--- airavata/sandbox/client-api-demo/src/main/webapp/js/x_app_descriptor_edit_json.js (original)
+++ airavata/sandbox/client-api-demo/src/main/webapp/js/x_app_descriptor_edit_json.js Mon
Nov 19 21:15:23 2012
@@ -55,6 +55,8 @@ function initButtons() {
     });
 
     $("#updateAppButton").click(function(){
+        alert("Update clicked!");
+
         var appName = $("#appName1").val();
         var hostName = $("#hostName1").val();
         var serviceName = $("#serviceName1").val();
@@ -139,6 +141,8 @@ function initButtons() {
     });
 
     $("#deleteAppButton").click(function(){
+        alert("Delete clicked!");
+
         var appName = $("#appName1").val();
         var hostName = $("#hostName1").val();
         var serviceName = $("#serviceName1").val();
@@ -231,5 +235,6 @@ function initButtons() {
 }
 
 $(document).ready(function(){
+    alert("Document ready function called!");
     initButtons();
 });
\ No newline at end of file

Modified: airavata/sandbox/client-api-demo/src/main/webapp/js/x_host_descriptor_save_json.js
URL: http://svn.apache.org/viewvc/airavata/sandbox/client-api-demo/src/main/webapp/js/x_host_descriptor_save_json.js?rev=1411419&r1=1411418&r2=1411419&view=diff
==============================================================================
--- airavata/sandbox/client-api-demo/src/main/webapp/js/x_host_descriptor_save_json.js (original)
+++ airavata/sandbox/client-api-demo/src/main/webapp/js/x_host_descriptor_save_json.js Mon
Nov 19 21:15:23 2012
@@ -57,7 +57,7 @@ function initButtons() {
         }
         console.log(xmlString);
 
-        var url = "http://localhost:7080/airavata-rest-services/registry/api/descriptors/hostdescriptor/save"
+        var url = "http://localhost:7080/airavata-rest-services/registry/api/descriptors/hostdescriptor/save";
 //        var url = "http://localhost:7080/airavata-registry-rest-services/registry/api/hostdescriptor/save";
 
         if (("" == hostEndpoint) || ("" == gatekeeperEndpoint)) {

Modified: airavata/sandbox/client-api-demo/src/main/webapp/x_host_descriptor_view_json.html
URL: http://svn.apache.org/viewvc/airavata/sandbox/client-api-demo/src/main/webapp/x_host_descriptor_view_json.html?rev=1411419&r1=1411418&r2=1411419&view=diff
==============================================================================
--- airavata/sandbox/client-api-demo/src/main/webapp/x_host_descriptor_view_json.html (original)
+++ airavata/sandbox/client-api-demo/src/main/webapp/x_host_descriptor_view_json.html Mon
Nov 19 21:15:23 2012
@@ -20,18 +20,46 @@
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
         "http://www.w3.org/TR/html4/loose.dtd">
 <html>
+
 <head>
-    <title></title>
+    <title>View Host Description</title>
+    <link href="bootstrap/css/bootstrap.min.css" rel="stylesheet" media="screen">
+    <script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js" type="text/javascript"></script>
+    <script type="text/javascript" src="js/x_host_descriptor_view_json.js" ></script>
 </head>
 <body>
 
-<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js" type="text/javascript"></script>
-<script type="text/javascript" src="js/x_host_descriptor_view_json.js" ></script>
+<div class="navbar navbar-inverse navbar-fixed-top">
+    <div class="navbar-inner">
+        <div class="container-fluid">
+            <a class="brand" href="index.html">Airavata API Demo</a>
+        </div>
+    </div>
+</div>
+<br><br>
 
 <h1>Get Host Descriptor Information </h1>
 <button name="btn2">Click</button>
 
-<table id="display"></table>
+<table class="table table-striped" id="display"></table>
+
+<h3>Register Host Description</h3>
+<div class="well row">
+    <div class="span7">
+        <p class="span7">
+            <label class="span3">Host Name</label><input class="span4" type="text"
name="hostName" id="hostName1" size="75">
+            <label class="span3">Host Address</label><input class="span4"
type="text" name="hostAddress" id="hostAddress1" size="75">
+            <label class="span3">Host Type</label> <select class="span4" id="hostType">
+            <option selected="selected">Local</option>
+            <option>Globus</option>
+        </select>
+            <label class="span3 endpoint">Host Endpoint</label><input class="span4
endpoint" type="text" name="hostEndpoint" id="hostEndpoint1" size="75">
+            <label class="span3 endpoint">Gatekeeper Endpoint</label><input
class="span4 endpoint" type="text" name="gatekeeperEndpoint" id="gatekeeperEndpoint1" size="75">
+        </p>
+    </div>
+</div>
+<button class="btn btn-primary btn-medium" id="saveHostButton">Save	Host</button>
+
 
 </body>
 </html>
\ No newline at end of file



Mime
View raw message