[esb-java-dev] svn commit r9363 - in
trunk/esb/java/modules/distribution/src/main/www/extensions/core:
css js xslt/tasks
svn at wso2.org
svn at wso2.org
Wed Oct 31 23:25:46 PDT 2007
Author: chanaka
Date: Wed Oct 31 23:25:26 2007
New Revision: 9363
Modified:
trunk/esb/java/modules/distribution/src/main/www/extensions/core/css/wso2-esb.css
trunk/esb/java/modules/distribution/src/main/www/extensions/core/js/tasks.js
trunk/esb/java/modules/distribution/src/main/www/extensions/core/xslt/tasks/task_edit.xsl
Log:
task breadcrumb, title and alignment issues
Modified: trunk/esb/java/modules/distribution/src/main/www/extensions/core/css/wso2-esb.css
==============================================================================
--- trunk/esb/java/modules/distribution/src/main/www/extensions/core/css/wso2-esb.css (original)
+++ trunk/esb/java/modules/distribution/src/main/www/extensions/core/css/wso2-esb.css Wed Oct 31 23:25:26 2007
@@ -1177,9 +1177,10 @@
.content-header {
color: black;
- font-family: Tahoma;
- font-size: 16px;
+ font-family: Verdana;
+ font-size: 14px;
vertical-align:middle;
+ line-height:30px;
}
.content-header img {
margin-right:10px;
@@ -2640,7 +2641,7 @@
line-height:30px;
}
.breadcrumb a{
-color:#acacac !important;
+color:#8c8c8c !important;
font-size:11px;
text-decoration:underline;
}
@@ -2648,20 +2649,25 @@
color:#483D4C !important;
font-size:15px;
font-weight:bold !important;
+text-indent:30px;
+height:25px;
+line-height:30px;
}
.title-home{
background-image:url(../images/content-icons/icon-content-home-big.gif);
background-position:0px 0px;
background-repeat:no-repeat;
-text-indent:30px;
-height:25px;
-line-height:30px;
}
.title-proxy-services{
background-image:url(../images/content-icons/icon-menu-proxy-big.gif);
background-position:0px 0px;
background-repeat:no-repeat;
-text-indent:30px;
-height:25px;
-line-height:30px;
+}
+.title-task{
+background-image:url(../images/content-icons/task-icon-big.gif);
+background-position:0px 0px;
+background-repeat:no-repeat;
+}
+.button-space{
+margin-right:10px;
}
\ No newline at end of file
Modified: trunk/esb/java/modules/distribution/src/main/www/extensions/core/js/tasks.js
==============================================================================
--- trunk/esb/java/modules/distribution/src/main/www/extensions/core/js/tasks.js (original)
+++ trunk/esb/java/modules/distribution/src/main/www/extensions/core/js/tasks.js Wed Oct 31 23:25:26 2007
@@ -85,11 +85,10 @@
objdiv.appendChild(taskshowdiv);
var savepanel = document.createElement("div");
- savepanel.className = "sequence-desc";
- savepanel.innerHTML += "<div id='savediv'><table style='margin-left:10em;'><tbody><tr>"
- + "<td><input type='button' class='panelbutton_default' "
- + "onclick='javascript: tasksave(); return false;' value='Schedule'></td><td></td>"
- + "<td><input type='button' class='panelbutton_cancel' "
+ savepanel.innerHTML += "<div id='savediv'><table class='data-table' style='width:400px;'><tbody><tr>"
+ + "<td style='width:150px;'></td><td align='left'><input type='button' class='panelbutton_default button-space' "
+ + "onclick='javascript: tasksave(); return false;' value='Schedule'>"
+ + "<input type='button' class='panelbutton_cancel' "
+ "onclick='javascript: showtasks(); return false;' value='Cancel'/></td>"
+ "</tr></tbody></table></div>";
objdiv.appendChild(savepanel);
@@ -137,19 +136,18 @@
var objdiv = document.getElementById("divTask");
objdiv.innerHTML = "";
- objdiv.innerHTML = "<h2 id='moduleHeader'><a href='#' onclick='javascript: "
- + "showtasks(); return false;'>Manage Tasks</a> >  Schedule New Task</h2><br/><br/>";
+ objdiv.innerHTML = "<div class='breadcrumb'><a href='#' onclick='javascript: "
+ + "showtasks(); return false;'>Manage Tasks</a> >  Schedule New Task</div>";
var taskshowdiv = document.createElement("div");
processXML(internalmodel.task, "tasks/task_edit.xsl", taskshowdiv);
objdiv.appendChild(taskshowdiv);
var savepanel = document.createElement("div");
- savepanel.className = "sequence-desc";
- savepanel.innerHTML += "<div id='savediv'><table style='margin-left:10em;'><tbody><tr>"
- + "<td><input type='button' class='panelbutton_default' "
- + "onclick='javascript: tasksave(); return false;' value='Schedule'></td><td></td>"
- + "<td><input type='button' class='panelbutton_cancel' "
+ savepanel.innerHTML += "<div id='savediv'><table class='data-table' style='width:400px;'><tbody><tr>"
+ + "<td style='width:150px;'></td><td align='left'><input type='button' class='panelbutton_default button-space' "
+ + "onclick='javascript: tasksave(); return false;' value='Schedule'>"
+ + "<input type='button' class='panelbutton_cancel' "
+ "onclick='javascript: showtasks(); return false;' value='Cancel'/></td>"
+ "</tr></tbody></table></div>";
objdiv.appendChild(savepanel);
Modified: trunk/esb/java/modules/distribution/src/main/www/extensions/core/xslt/tasks/task_edit.xsl
==============================================================================
--- trunk/esb/java/modules/distribution/src/main/www/extensions/core/xslt/tasks/task_edit.xsl (original)
+++ trunk/esb/java/modules/distribution/src/main/www/extensions/core/xslt/tasks/task_edit.xsl Wed Oct 31 23:25:26 2007
@@ -20,19 +20,17 @@
<div id="task_edit_div">
- <label class="content-header">
- <img src="extensions/core/images/tasks-icon-big.jpg" style="margin-left:10px;"/>
+ <div class='page-main-title title-task'>
<xsl:choose><xsl:when test="not(@name='')"> Task <xsl:value-of
select="@name"/></xsl:when><xsl:otherwise> New Task </xsl:otherwise></xsl:choose>
- </label>
- <br/>
- <br/>
- <table border="0" style="margin-left: 2em; width: 600px;">
+ </div>
+
+ <table border="0" cellpadding="0" cellspacing="0" class="data-table">
<tbody>
<tr>
- <td style="width: 250px;">Task name </td>
- <td colspan="2">
+ <td style="width: 150px;">Task name </td>
+ <td align="left">
<input type="text" id="task_name" class="esb-edit">
<xsl:if test="not(@name='')">
<xsl:attribute name="value"><xsl:value-of select="@name"/></xsl:attribute>
@@ -43,28 +41,27 @@
</tr>
<tr>
- <td style="width: 250px;">Task implementation </td>
- <td>
+ <td>Task implementation </td>
+ <td align="left">
<input type="text" id="task_class" class="esb-edit">
<xsl:attribute name="value"><xsl:value-of select="@class"/></xsl:attribute>
</input>
- </td>
- <td>
+
<xsl:if test="not(syn:property)">
- <input type="button" href="#" onclick="javascript: loadtaskclass(); return false;" style="width:100px;" value="Load Class" class="panelbutton_default"/>
+ <input type="button" href="#" onclick="javascript: loadtaskclass(); return false;" style="width:100px;margin-left:10px;" value="Load Class" class="panelbutton_default"/>
</xsl:if>
<xsl:if test="syn:property">
- <input type="button" href="#" onclick="javascript: loadtaskclass(); return false;" style="width:100px;" value="Reload Class" class="panelbutton_default"/>
+ <input type="button" href="#" onclick="javascript: loadtaskclass(); return false;" style="width:100px; margin-left:10px;" value="Reload Class" class="panelbutton_default"/>
</xsl:if>
</td>
</tr>
</tbody>
</table>
- <div style="margin-left:3em;">
+ <div>
<xsl:if test="syn:property">
- <p>Properties defined for the Task </p>
- <br/>
+ <div class="sub-small-title">Properties defined for the Task </div>
+
<div id="common_table_content">
<table border="0" cellpadding="0" cellspacing="0" width="600">
<tr>
@@ -76,7 +73,7 @@
<xsl:for-each select="syn:property">
<tr>
<xsl:attribute name="name">syn-property</xsl:attribute>
- <td>
+ <td align="left">
<input type="text" name="property_name" class="esb-edit small_textbox" disabled="true">
<xsl:attribute name="value">
<xsl:value-of select="concat(translate(substring(@name,1,1),
@@ -87,7 +84,7 @@
</td>
<xsl:if test="@value">
- <td>
+ <td align="left">
<select class="esb-edit small_textbox" disabled="true">
<xsl:attribute name="id"><xsl:value-of select="concat('propertyType', at esb_med_pos)"/></xsl:attribute>
<xsl:attribute name="name"><xsl:value-of select="concat('prop_type_', @name)"/></xsl:attribute>
@@ -150,31 +147,33 @@
</div>
</xsl:if>
<xsl:if test="not(syn:property)">
- <br/><p style="color: brown">There are no properties defined for the task</p><br/><br/>
+ <p style="color: brown">There are no properties defined for the task</p>
</xsl:if>
</div>
- <div style="margin-left:3em;">
- <p>Trigger information of the Task </p>
- <br/>
+ <div>
+ <div class="sub-small-title" style="line-height:40px;">Trigger information of the Task </div>
+
<div>
- <table border="0" cellpadding="0" cellspacing="0" width="500">
+ <table border="0" cellpadding="0" cellspacing="0" class="data-table" style="width:500px;">
<tr>
- <td style="width:200px;">Trigger Type</td>
- <td style="width:150px;"><input type="radio" name="task_trigger" value="simple" onclick="javascript: settrigger('simple'); return false;">
+ <td style="width:150px;">Trigger Type</td>
+ <td align="left" style="width:100px;"><input type="radio" name="task_trigger" value="simple" onclick="javascript: settrigger('simple'); return false;">
<xsl:if test="not(syn:trigger/@cron)">
<xsl:attribute name="checked">true</xsl:attribute>
</xsl:if>
</input> Simple</td>
- <td style="width:150px;"><input type="radio" name="task_trigger" value="cron" onclick="javascript: settrigger('cron'); return false;">
+ <td align="left"><input type="radio" name="task_trigger" value="cron" onclick="javascript: settrigger('cron'); return false;">
<xsl:if test="syn:trigger/@cron">
<xsl:attribute name="checked">true</xsl:attribute>
</xsl:if>
</input> Cron</td>
</tr>
+ </table>
+ <table border="0" cellpadding="0" cellspacing="0" class="data-table">
<xsl:if test="not(syn:trigger/@cron)">
<tr>
- <td>Count</td>
- <td colspan="2">
+ <td style="width:150px;">Count</td>
+ <td align="left">
<input type="text" class="esb-edit" id="trigger_count">
<xsl:attribute name="value">
<xsl:value-of select="syn:trigger/@count"/>
@@ -184,7 +183,7 @@
</tr>
<tr>
<td>Interval</td>
- <td colspan="2">
+ <td align="left">
<input type="text" class="esb-edit" id="trigger_interval">
<xsl:attribute name="value">
<xsl:value-of select="syn:trigger/@interval"/>
@@ -196,7 +195,7 @@
<xsl:if test="syn:trigger/@cron">
<tr>
<td>Expression</td>
- <td colspan="2">
+ <td align="left">
<input type="text" class="esb-edit" id="trigger_cron">
<xsl:attribute name="value">
<xsl:value-of select="syn:trigger/@cron"/>
More information about the Esb-java-dev
mailing list