Skip to content

Commit 129596b

Browse files
committed
[UPD] Add CSS to csp page.
1 parent 2954ba8 commit 129596b

File tree

3 files changed

+55
-37
lines changed

3 files changed

+55
-37
lines changed

cls/kutac/monitor/utils/Installer.cls.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ do ##class(kutac.monitor.utils.Installer).setup(.pVars)</Description>
314314
do filestream.Rewind()
315315
316316
set CSPPath = $system.CSP.GetFileName($system.CSP.GetDefaultApp($namespace)_"/")
317-
set fileDirectory = $Piece(url, CSPDirInRepo, 2)
317+
set fileDirectory = $Piece(url, CSPDirInRepo, *)
318318
set dirChain = $p(CSPPath_fileDirectory,$p($translate(CSPPath_fileDirectory,"\","/"),"/",*),1)
319319
do ##class(%File).CreateDirectoryChain(dirChain)
320320
set st = filestream.LinkToFile(CSPPath_fileDirectory)

csp-data/csp/confpage.csp.xml

Lines changed: 52 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
<Export generator="Cache" version="25">
33
<CSP name="confpage.csp" application="/csp/sysmon/" default="1"><![CDATA[
44
<html>
5-
<head>
6-
7-
<title>SYSMON Configure page</title>
8-
9-
</head>
5+
<head>
6+
<link rel="stylesheet" href="./lib/css/bootstrap.min.css">
7+
<link rel="stylesheet" href="./lib/css/bootstrap-theme.min.css">
8+
<title>SYSMON Configure page</title>
9+
</head>
1010
1111
<script language="javascript">
1212
function classChk(checked, class_name)
@@ -89,38 +89,54 @@ if sc=1 {
8989
}
9090
</csp:method>
9191
92-
<body>
93-
94-
<script language="cache" runat="server">
95-
new $namespace
96-
set $namespace = "%SYS"
97-
kill ^SYSMONClassTemp
98-
Set Rset = ##class(%Library.ResultSet).%New("%Monitor.ItemGroup:Classes")
99-
s Rset.RuntimeMode=1
100-
d Rset.Execute()
101-
</script>
102-
103-
<b>Sysmon Applicatin Classes configuration:</b><br/>
104-
<form name="configform">
105-
<csp:while condition="Rset.Next()" counter="i">
106-
<script language="cache" runat="server">
107-
if Rset.GetData(2) {set chkd = "checked"}
108-
else {set chkd = ""}
109-
</script>
110-
<input type="checkbox" name="#(i)#" value="#(Rset.GetData(1))#" #(chkd)# onclick="classChk(this.checked, this.value)">
111-
<a name="#(i)#" href = "##(i)#" onClick="docLoc('#($p(Rset.GetData(1),"%",2))#'); return false;">#(Rset.GetData(1))#</a></br>
112-
</csp:while>
113-
<input type="button" value="Apply" onclick="submitAll();"/>
114-
</form>
115-
116-
<br/><br/>
92+
<body>
93+
<script language="cache" runat="server">
94+
new $namespace
95+
set $namespace = "%SYS"
96+
kill ^SYSMONClassTemp
97+
Set Rset = ##class(%Library.ResultSet).%New("%Monitor.ItemGroup:Classes")
98+
s Rset.RuntimeMode=1
99+
d Rset.Execute()
100+
</script>
117101
118-
<b>Control System Monitor:</b><br/>
119-
<form name="stspform">
120-
<input type="button" value="Start SYSMON" onclick="startMon();"/>
121-
<input type="button" value="Stop SYSMON" onclick="stopMon();"/>
122-
</form>
123-
</body>
102+
<div style="width: 30%; margin: auto;">
103+
<div>
104+
<div style="text-align: center;">
105+
<h4><b>Sysmon Applicatin Classes configuration:</b></h4>
106+
</div>
107+
<div style="padding: auto;">
108+
<form name="configform">
109+
<csp:while condition="Rset.Next()" counter="i">
110+
<script language="cache" runat="server">
111+
if Rset.GetData(2) {set chkd = "checked"}
112+
else {set chkd = ""}
113+
</script>
114+
<div style="margin-bottom: 1px;" class="input-group">
115+
<span style="text-align: left; font-size: 12px; padding: 4px 12px;" class="input-group-addon" >
116+
<input type="checkbox" name="#(i)#" value="#(Rset.GetData(1))#" #(chkd)# onclick="classChk(this.checked, this.value)">
117+
</span>
118+
<span style="text-align: left; font-size: 12px; padding: 4px 12px;" class="input-group-addon">
119+
<a name="#(i)#" href = "##(i)#" onClick="docLoc('#($p(Rset.GetData(1),"%",2))#'); return false;">#(Rset.GetData(1))#</a></br>
120+
</span>
121+
</div>
122+
</csp:while>
123+
<div style="margin: auto; width: 252px;">
124+
<input style="margin-top: 2px; width: 250px;" class="btn btn-success" type="button" value="Apply" onclick="submitAll();"/>
125+
</div>
126+
</form>
127+
</div>
128+
</div>
129+
<div style="margin-top: 3em;">
130+
<div style="text-align: center;">
131+
<h4><b>Control System Monitor:</b></h4>
132+
</div>
133+
<div style="width: 243px; margin: auto;">
134+
<input class="btn btn-primary" type="button" value="Start SYSMON" onclick="startMon();"/>
135+
<input class="btn btn-danger" type="button" value="Stop SYSMON" onclick="stopMon();"/>
136+
</div>
137+
</div>
138+
</div>
139+
</body>
124140
</html>
125141
]]></CSP>
126142
</Export>

sc-list.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
<cspapp>/confpage.csp
2+
<cspapp>/lib/css/bootstrap-theme.min.css
3+
<cspapp>/lib/css/bootstrap.min.css
24
dash-actions-State Info.dashboard.dfi
35
dash-perf-history-Dash1.dashboard.dfi
46
dash-perf-history-ECP.dashboard.dfi

0 commit comments

Comments
 (0)