Commit 40d197c8 authored by Ajit Deshmukh's avatar Ajit Deshmukh

Added the remarks and enterprise description in the workflow XSL and increased...

Added the remarks and enterprise description in the workflow XSL and increased the width of Remarks field in the header form
parent 2fe016bd
This diff is collapsed.
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<html>
<head>
<link rel="stylesheet" type="text/css" href="/ibase/webitm/css/summary.css"/>
<title>Manage SQL</title>
<style>
html, body {
margin: 0;
padding: 0;
height: 100%;
}
.sum_Container {
height: 100%;
box-sizing: border-box;
overflow: visible;
}
.sum_Content {
height: 100%;
overflow: visible;
padding: 10px 12px;
box-sizing: border-box;
}
.content_Row .txtData {
overflow: visible;
white-space: normal;
}
.txtData.sqlBox {
height: 150px !important;
width: 600px !important;
overflow-y: auto !important;
overflow-x: auto !important;
border: 1px solid #ccc;
padding: 8px;
background: #f9f9f9;
box-sizing: border-box;
white-space: pre-wrap;
word-wrap: break-word;
font-family: monospace;
scrollbar-gutter: stable;
}
.switch {
position: relative;
display: inline-block;
width: 50px;
height: 24px;
}
.switch input {
opacity: 0;
width: 0;
height: 0;
}
.slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: #ccc;
transition: .3s;
}
.slider:before {
position: absolute;
content: "";
height: 18px;
width: 18px;
left: 3px;
bottom: 3px;
background-color: white;
transition: .3s;
}
input:checked + .slider {
background-color: #4CAF50;
}
input:checked + .slider:before {
transform: translateX(26px);
}
.slider.round {
border-radius: 24px;
}
.slider.round:before {
border-radius: 50%;
}
.twoColumnLayout {
display: flex;
gap: 20px;
}
.leftColumn {
width: 40%;
}
.rightColumn {
width: 60%;
}
.leftColumn .content_Row {
display: flex;
margin-bottom: 8px;
}
.rightColumn .content_Row {
display: block;
}
.txtlbl {
width: 150px;
}
.txtData {
flex: 1;
}
</style>
<script>
function setValue(obj) {
obj.setAttribute("ISCHANGED", "true");
obj.setAttribute("value", obj.value);
}
</script>
</head>
<body>
<div class="sum_Container">
<div class="sum_Content">
<form id="detail" method="POST" style="margin-bottom:0;">
<div class="sum_Header">
<img src="/ibase/webitm/images/Summary/Header.png"
class="sum_Icon pdLeft_16"
alt="Header Icon"/>
Manage SQL
</div>
<xsl:for-each select="//Detail1">
<xsl:variable name="dbID">
<xsl:value-of select="@dbID" />
</xsl:variable>
<xsl:variable name="domID">
<xsl:value-of select="@domID" />
</xsl:variable>
<xsl:variable name="review_yn">
<xsl:value-of select="review_yn" />
</xsl:variable>
<input type="hidden" id="DBIDVAL" name="DBIDVAL" value="{$domID}" isReq="false" ISCHANGED="false" class="descriptions"/>
<input type="hidden" id="DBIDVAL1" name="DBIDVAL1" value="{$dbID}" isReq="false" ISCHANGED="false" class="descriptions"/>
<div class="content_BG twoColumnLayout">
<div class="leftColumn">
<!-- Add User -->
<div class="content_Row">
<div class="txtlbl txtdark">Add User:</div>
<div class="txtData" contentEditable="false">
<xsl:value-of select="concat(users_name, ' (', emp_code__merge, ')')"/>
</div>
</div>
<!-- Enterprise -->
<div class="content_Row">
<div class="txtlbl txtdark">Enterprise:</div>
<div class="txtData" contentEditable="false">
<xsl:choose>
<xsl:when test="normalize-space(enterprises) != ''">
<xsl:value-of select="enterprises"/>
<span> (
<xsl:value-of select="enterprise_descr"/> )
</span>
</xsl:when>
<xsl:otherwise>
All Enterprise
</xsl:otherwise>
</xsl:choose>
</div>
</div>
<!-- Remarks -->
<!-- Review Required -->
<div class="content_Row">
<!-- LABEL -->
<div class="txtlbl txtdark">Review Required?:</div>
<!-- VALUE -->
<div class="txtData">
<select class="editInputClass"
id="Detail1.{normalize-space($dbID)}.review_yn"
NAME="Detail1.{normalize-space($dbID)}.review_yn"
fontCase="any"
TABINDEX="10"
TABORDER="30"
MAXLENGTH="1"
POPUPEXISTS="false"
protectExpr=""
ISCHANGED="true"
SRVCALLONCHANGE="true"
REQUIRED=""
onfocus="gotFocus(this)"
onblur="gotBlur(this)"
title="Review Required?">
<option value="Y">
<xsl:if test="$review_yn = 'Y'">
<xsl:attribute name="selected">true</xsl:attribute>
</xsl:if>
<![CDATA[Yes]]>
</option>
<option value="N">
<xsl:if test="$review_yn = 'N'">
<xsl:attribute name="selected">true</xsl:attribute>
</xsl:if>
<![CDATA[No]]>
</option>
</select>
</div>
</div>
</div>
<!-- SQL Statement -->
<div class="rightColumn">
<div class="content_Row">
<div class="txtlbl txtdark">Developer Remarks:</div>
<div class="txtData sqlBox">
<xsl:choose>
<xsl:when test="normalize-space(remarks) != ''">
<div style="margin-bottom:8px;">
<xsl:value-of select="remarks"/>
</div>
</xsl:when>
<xsl:otherwise>
-
</xsl:otherwise>
</xsl:choose>
</div>
<!-- SQL Statement -->
<div class="content_Row">
<div class="txtlbl txtdark">SQL Statement:</div>
<div class="txtData sqlBox">
<xsl:for-each select="//Detail2">
<div style="margin-bottom:8px;">
<xsl:number format="1. "/>
<xsl:value-of select="ora_stmnt"/>
</div>
</xsl:for-each>
</div>
</div>
</div>
</div>
</div>
</xsl:for-each>
</form>
</div>
</div>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
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