2121 |
29 Mar 06 |
nicklas |
1 |
<%-- $Id$ |
2121 |
29 Mar 06 |
nicklas |
2 |
------------------------------------------------------------------ |
5425 |
23 Sep 10 |
nicklas |
Copyright (C) 2006 Jari Häkkinen, Nicklas Nordborg, Martin Svensson |
3675 |
16 Aug 07 |
jari |
Copyright (C) 2007 Nicklas Nordborg, Martin Svensson |
2121 |
29 Mar 06 |
nicklas |
5 |
|
2304 |
22 May 06 |
jari |
6 |
This file is part of BASE - BioArray Software Environment. |
2304 |
22 May 06 |
jari |
7 |
Available at http://base.thep.lu.se/ |
2121 |
29 Mar 06 |
nicklas |
8 |
|
2121 |
29 Mar 06 |
nicklas |
9 |
BASE is free software; you can redistribute it and/or |
2121 |
29 Mar 06 |
nicklas |
10 |
modify it under the terms of the GNU General Public License |
4476 |
05 Sep 08 |
jari |
11 |
as published by the Free Software Foundation; either version 3 |
2121 |
29 Mar 06 |
nicklas |
12 |
of the License, or (at your option) any later version. |
2121 |
29 Mar 06 |
nicklas |
13 |
|
2121 |
29 Mar 06 |
nicklas |
14 |
BASE is distributed in the hope that it will be useful, |
2121 |
29 Mar 06 |
nicklas |
15 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
2121 |
29 Mar 06 |
nicklas |
16 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
2121 |
29 Mar 06 |
nicklas |
17 |
GNU General Public License for more details. |
2121 |
29 Mar 06 |
nicklas |
18 |
|
2121 |
29 Mar 06 |
nicklas |
19 |
You should have received a copy of the GNU General Public License |
4510 |
11 Sep 08 |
jari |
20 |
along with BASE. If not, see <http://www.gnu.org/licenses/>. |
2121 |
29 Mar 06 |
nicklas |
21 |
------------------------------------------------------------------ |
2121 |
29 Mar 06 |
nicklas |
22 |
|
2121 |
29 Mar 06 |
nicklas |
23 |
|
2121 |
29 Mar 06 |
nicklas |
24 |
@author Nicklas |
2121 |
29 Mar 06 |
nicklas |
25 |
@version 2.0 |
2121 |
29 Mar 06 |
nicklas |
26 |
--%> |
5426 |
24 Sep 10 |
nicklas |
27 |
<%@ page pageEncoding="UTF-8" session="false" |
2121 |
29 Mar 06 |
nicklas |
28 |
import="net.sf.basedb.core.SessionControl" |
2121 |
29 Mar 06 |
nicklas |
29 |
import="net.sf.basedb.core.DbControl" |
2121 |
29 Mar 06 |
nicklas |
30 |
import="net.sf.basedb.core.Item" |
2121 |
29 Mar 06 |
nicklas |
31 |
import="net.sf.basedb.core.ItemContext" |
2121 |
29 Mar 06 |
nicklas |
32 |
import="net.sf.basedb.core.SystemItems" |
2121 |
29 Mar 06 |
nicklas |
33 |
import="net.sf.basedb.core.Permission" |
2121 |
29 Mar 06 |
nicklas |
34 |
import="net.sf.basedb.core.Include" |
2121 |
29 Mar 06 |
nicklas |
35 |
import="net.sf.basedb.core.Client" |
2121 |
29 Mar 06 |
nicklas |
36 |
import="net.sf.basedb.core.Help" |
2121 |
29 Mar 06 |
nicklas |
37 |
import="net.sf.basedb.core.ItemQuery" |
2121 |
29 Mar 06 |
nicklas |
38 |
import="net.sf.basedb.core.ItemResultList" |
2121 |
29 Mar 06 |
nicklas |
39 |
import="net.sf.basedb.core.PermissionDeniedException" |
2121 |
29 Mar 06 |
nicklas |
40 |
import="net.sf.basedb.core.BaseException" |
2121 |
29 Mar 06 |
nicklas |
41 |
import="net.sf.basedb.core.query.Orders" |
2121 |
29 Mar 06 |
nicklas |
42 |
import="net.sf.basedb.core.query.Hql" |
2121 |
29 Mar 06 |
nicklas |
43 |
import="net.sf.basedb.clients.web.Base" |
2121 |
29 Mar 06 |
nicklas |
44 |
import="net.sf.basedb.clients.web.util.HTML" |
2753 |
20 Oct 06 |
nicklas |
45 |
import="net.sf.basedb.util.Values" |
5506 |
19 Nov 10 |
nicklas |
46 |
import="net.sf.basedb.core.plugin.GuiContext" |
5506 |
19 Nov 10 |
nicklas |
47 |
import="net.sf.basedb.clients.web.extensions.ExtensionsControl" |
5506 |
19 Nov 10 |
nicklas |
48 |
import="net.sf.basedb.clients.web.extensions.JspContext" |
5506 |
19 Nov 10 |
nicklas |
49 |
import="net.sf.basedb.clients.web.extensions.edit.EditUtil" |
7604 |
25 Feb 19 |
nicklas |
50 |
import="net.sf.basedb.clients.web.extensions.tabcontrol.TabAction" |
5506 |
19 Nov 10 |
nicklas |
51 |
import="net.sf.basedb.util.extensions.ExtensionsInvoker" |
2121 |
29 Mar 06 |
nicklas |
52 |
import="java.util.List" |
2121 |
29 Mar 06 |
nicklas |
53 |
import="java.util.Set" |
2121 |
29 Mar 06 |
nicklas |
54 |
import="java.util.HashSet" |
2121 |
29 Mar 06 |
nicklas |
55 |
import="java.util.Date" |
2121 |
29 Mar 06 |
nicklas |
56 |
%> |
2121 |
29 Mar 06 |
nicklas |
57 |
<%@ taglib prefix="base" uri="/WEB-INF/base.tld" %> |
2121 |
29 Mar 06 |
nicklas |
58 |
<%@ taglib prefix="t" uri="/WEB-INF/tab.tld" %> |
3036 |
15 Dec 06 |
martin |
59 |
<%@ taglib prefix="tbl" uri="/WEB-INF/table.tld" %> |
3036 |
15 Dec 06 |
martin |
60 |
<%@ taglib prefix="m" uri="/WEB-INF/menu.tld" %> |
6147 |
21 Sep 12 |
nicklas |
61 |
<%@ taglib prefix="ext" uri="/WEB-INF/extensions.tld" %> |
2121 |
29 Mar 06 |
nicklas |
62 |
<% |
2121 |
29 Mar 06 |
nicklas |
63 |
final Item itemType = Item.HELP; |
2121 |
29 Mar 06 |
nicklas |
64 |
final SessionControl sc = Base.getExistingSessionControl(pageContext, true); |
2121 |
29 Mar 06 |
nicklas |
65 |
final ItemContext cc = Base.getAndSetCurrentContext(sc, itemType, null, null); |
2121 |
29 Mar 06 |
nicklas |
66 |
final int itemId = cc.getId(); |
2121 |
29 Mar 06 |
nicklas |
67 |
final int clientId = Values.getInt(request.getParameter("client_id")); |
2121 |
29 Mar 06 |
nicklas |
68 |
final String ID = sc.getId(); |
2121 |
29 Mar 06 |
nicklas |
69 |
final float scale = Base.getScale(sc); |
7954 |
12 May 21 |
nicklas |
70 |
final DbControl dc = sc.newDbControl(":Edit "+itemType); |
2121 |
29 Mar 06 |
nicklas |
71 |
try |
2121 |
29 Mar 06 |
nicklas |
72 |
{ |
2121 |
29 Mar 06 |
nicklas |
73 |
String title = null; |
2121 |
29 Mar 06 |
nicklas |
74 |
Client client = null; |
2121 |
29 Mar 06 |
nicklas |
75 |
Help help = null; |
2405 |
21 Jun 06 |
nicklas |
76 |
String externalId = null; |
2121 |
29 Mar 06 |
nicklas |
77 |
|
2121 |
29 Mar 06 |
nicklas |
78 |
if (itemId == 0) |
2121 |
29 Mar 06 |
nicklas |
79 |
{ |
2121 |
29 Mar 06 |
nicklas |
80 |
title = "Create help"; |
2121 |
29 Mar 06 |
nicklas |
81 |
cc.removeObject("item"); |
2121 |
29 Mar 06 |
nicklas |
82 |
client = Client.getById(dc, clientId); |
2405 |
21 Jun 06 |
nicklas |
83 |
externalId = Values.getString(request.getParameter("external_id"), |
2405 |
21 Jun 06 |
nicklas |
84 |
cc.getPropertyValue("externalId")); |
2121 |
29 Mar 06 |
nicklas |
85 |
} |
2121 |
29 Mar 06 |
nicklas |
86 |
else |
2121 |
29 Mar 06 |
nicklas |
87 |
{ |
2121 |
29 Mar 06 |
nicklas |
88 |
help = Help.getById(dc, itemId); |
6295 |
13 Jun 13 |
nicklas |
89 |
help.checkPermission(Permission.WRITE); |
2121 |
29 Mar 06 |
nicklas |
90 |
cc.setObject("item", help); |
2121 |
29 Mar 06 |
nicklas |
91 |
title = "Edit help text -- " + HTML.encodeTags(help.getName()); |
2405 |
21 Jun 06 |
nicklas |
92 |
externalId = help.getExternalId(); |
2121 |
29 Mar 06 |
nicklas |
93 |
} |
6217 |
14 Dec 12 |
nicklas |
94 |
|
5506 |
19 Nov 10 |
nicklas |
95 |
JspContext jspContext = ExtensionsControl.createContext(dc, pageContext, GuiContext.item(itemType), help); |
7604 |
25 Feb 19 |
nicklas |
96 |
ExtensionsInvoker<TabAction> invoker = EditUtil.useEditExtensions(jspContext); |
2121 |
29 Mar 06 |
nicklas |
97 |
%> |
6295 |
13 Jun 13 |
nicklas |
98 |
<base:page type="popup" title="<%=title%>" id="edit-page"> |
6295 |
13 Jun 13 |
nicklas |
99 |
<base:head scripts="menu.js,tabcontrol-2.js,~help.js" styles="toolbar.css,tabcontrol.css,menu.css"> |
5506 |
19 Nov 10 |
nicklas |
100 |
<ext:scripts context="<%=jspContext%>" /> |
5506 |
19 Nov 10 |
nicklas |
101 |
<ext:stylesheets context="<%=jspContext%>" /> |
2121 |
29 Mar 06 |
nicklas |
102 |
</base:head> |
6295 |
13 Jun 13 |
nicklas |
103 |
<base:body> |
3036 |
15 Dec 06 |
martin |
104 |
<m:menu |
3036 |
15 Dec 06 |
martin |
105 |
id="listtype" |
3040 |
18 Dec 06 |
martin |
106 |
style="display: none;"> |
3036 |
15 Dec 06 |
martin |
107 |
<m:menuitem |
6295 |
13 Jun 13 |
nicklas |
108 |
subclass="auto-init" |
6295 |
13 Jun 13 |
nicklas |
109 |
data-auto-init="enclose-selection" |
6295 |
13 Jun 13 |
nicklas |
110 |
data-prefix="<ol>" |
6295 |
13 Jun 13 |
nicklas |
111 |
data-suffix="</ol>" |
3040 |
18 Dec 06 |
martin |
112 |
title="Ordered list" |
3040 |
18 Dec 06 |
martin |
113 |
tooltip="Insert an ordered list" |
3036 |
15 Dec 06 |
martin |
114 |
/> |
3040 |
18 Dec 06 |
martin |
115 |
<m:menuitem |
6295 |
13 Jun 13 |
nicklas |
116 |
subclass="auto-init" |
6295 |
13 Jun 13 |
nicklas |
117 |
data-auto-init="enclose-selection" |
6295 |
13 Jun 13 |
nicklas |
118 |
data-prefix="<ul>" |
6295 |
13 Jun 13 |
nicklas |
119 |
data-suffix="</ul>" |
3040 |
18 Dec 06 |
martin |
120 |
title="Unordered list" |
3040 |
18 Dec 06 |
martin |
121 |
tooltip="Insert an unordered list" |
3040 |
18 Dec 06 |
martin |
122 |
/> |
3057 |
11 Jan 07 |
martin |
123 |
<m:menuitem |
6295 |
13 Jun 13 |
nicklas |
124 |
subclass="auto-init" |
6295 |
13 Jun 13 |
nicklas |
125 |
data-auto-init="enclose-selection" |
6295 |
13 Jun 13 |
nicklas |
126 |
data-prefix="<li>" |
6295 |
13 Jun 13 |
nicklas |
127 |
data-suffix="</li>" |
3057 |
11 Jan 07 |
martin |
128 |
title="List item" |
3057 |
11 Jan 07 |
martin |
129 |
tooltip="Insert a listitem." |
3057 |
11 Jan 07 |
martin |
130 |
/> |
3036 |
15 Dec 06 |
martin |
131 |
</m:menu> |
3040 |
18 Dec 06 |
martin |
132 |
<m:menu |
3040 |
18 Dec 06 |
martin |
133 |
id="tableitem" |
3040 |
18 Dec 06 |
martin |
134 |
style="display: none;"> |
3040 |
18 Dec 06 |
martin |
135 |
<m:menuitem |
6295 |
13 Jun 13 |
nicklas |
136 |
subclass="auto-init" |
6295 |
13 Jun 13 |
nicklas |
137 |
data-auto-init="enclose-selection" |
6295 |
13 Jun 13 |
nicklas |
138 |
data-prefix="<table>" |
6295 |
13 Jun 13 |
nicklas |
139 |
data-suffix="</table>" |
3040 |
18 Dec 06 |
martin |
140 |
title="Table" |
3040 |
18 Dec 06 |
martin |
141 |
tooltip="Insert a table" |
3040 |
18 Dec 06 |
martin |
142 |
/> |
3040 |
18 Dec 06 |
martin |
143 |
<m:menuitem |
6295 |
13 Jun 13 |
nicklas |
144 |
subclass="auto-init" |
6295 |
13 Jun 13 |
nicklas |
145 |
data-auto-init="enclose-selection" |
6295 |
13 Jun 13 |
nicklas |
146 |
data-prefix="<tr>" |
6295 |
13 Jun 13 |
nicklas |
147 |
data-suffix="</tr>" |
3040 |
18 Dec 06 |
martin |
148 |
title="Row" |
3057 |
11 Jan 07 |
martin |
149 |
tooltip="Insert a tablerow." |
3040 |
18 Dec 06 |
martin |
150 |
/> |
3040 |
18 Dec 06 |
martin |
151 |
<m:menuitem |
6295 |
13 Jun 13 |
nicklas |
152 |
subclass="auto-init" |
6295 |
13 Jun 13 |
nicklas |
153 |
data-auto-init="enclose-selection" |
6295 |
13 Jun 13 |
nicklas |
154 |
data-prefix="<td>" |
6295 |
13 Jun 13 |
nicklas |
155 |
data-suffix="</td>" |
3040 |
18 Dec 06 |
martin |
156 |
title="Cell" |
3057 |
11 Jan 07 |
martin |
157 |
tooltip="Insert a datacell." |
3040 |
18 Dec 06 |
martin |
158 |
/> |
3040 |
18 Dec 06 |
martin |
159 |
</m:menu> |
3040 |
18 Dec 06 |
martin |
160 |
<m:menu |
3040 |
18 Dec 06 |
martin |
161 |
id="textformats" |
3040 |
18 Dec 06 |
martin |
162 |
style="display: none;"> |
3040 |
18 Dec 06 |
martin |
163 |
<m:menuitem |
6295 |
13 Jun 13 |
nicklas |
164 |
subclass="auto-init" |
6295 |
13 Jun 13 |
nicklas |
165 |
data-auto-init="enclose-selection" |
6295 |
13 Jun 13 |
nicklas |
166 |
data-prefix="<imp>" |
6295 |
13 Jun 13 |
nicklas |
167 |
data-suffix="</imp>" |
3040 |
18 Dec 06 |
martin |
168 |
title="Important" |
3040 |
18 Dec 06 |
martin |
169 |
tooltip="Mark text as important" |
3040 |
18 Dec 06 |
martin |
170 |
/> |
3040 |
18 Dec 06 |
martin |
171 |
<m:menuitem |
6295 |
13 Jun 13 |
nicklas |
172 |
subclass="auto-init" |
6295 |
13 Jun 13 |
nicklas |
173 |
data-auto-init="enclose-selection" |
6295 |
13 Jun 13 |
nicklas |
174 |
data-prefix="<lbl>" |
6295 |
13 Jun 13 |
nicklas |
175 |
data-suffix="</lbl>" |
3296 |
07 May 07 |
nicklas |
176 |
title="Label" |
3296 |
07 May 07 |
nicklas |
177 |
tooltip="Mark text as a label appearing in the interface." |
3040 |
18 Dec 06 |
martin |
178 |
/> |
3040 |
18 Dec 06 |
martin |
179 |
<m:menuitem |
6295 |
13 Jun 13 |
nicklas |
180 |
subclass="auto-init" |
6295 |
13 Jun 13 |
nicklas |
181 |
data-auto-init="enclose-selection" |
6295 |
13 Jun 13 |
nicklas |
182 |
data-prefix="<req>" |
6295 |
13 Jun 13 |
nicklas |
183 |
data-suffix="</req>" |
3040 |
18 Dec 06 |
martin |
184 |
title="Required" |
3057 |
11 Jan 07 |
martin |
185 |
tooltip="Mark text as required user input." |
3040 |
18 Dec 06 |
martin |
186 |
/> |
3057 |
11 Jan 07 |
martin |
187 |
<m:menuitem |
6295 |
13 Jun 13 |
nicklas |
188 |
subclass="auto-init" |
6295 |
13 Jun 13 |
nicklas |
189 |
data-auto-init="enclose-selection" |
6295 |
13 Jun 13 |
nicklas |
190 |
data-prefix="<btn>" |
6295 |
13 Jun 13 |
nicklas |
191 |
data-suffix="</btn>" |
3057 |
11 Jan 07 |
martin |
192 |
title="Button text" |
3057 |
11 Jan 07 |
martin |
193 |
tooltip="Mark text to symbol a button." |
3057 |
11 Jan 07 |
martin |
194 |
/> |
3057 |
11 Jan 07 |
martin |
195 |
<m:menuitem |
6295 |
13 Jun 13 |
nicklas |
196 |
subclass="auto-init" |
6295 |
13 Jun 13 |
nicklas |
197 |
data-auto-init="enclose-selection" |
6295 |
13 Jun 13 |
nicklas |
198 |
data-prefix="<mnu>" |
6295 |
13 Jun 13 |
nicklas |
199 |
data-suffix="</mnu>" |
3057 |
11 Jan 07 |
martin |
200 |
title="Menu text" |
3057 |
11 Jan 07 |
martin |
201 |
tooltip="Mark text to symbol a menu." |
3057 |
11 Jan 07 |
martin |
202 |
/> |
3040 |
18 Dec 06 |
martin |
203 |
</m:menu> |
3046 |
20 Dec 06 |
martin |
204 |
<m:menu |
3046 |
20 Dec 06 |
martin |
205 |
id="link" |
3046 |
20 Dec 06 |
martin |
206 |
style="display: none;" |
3046 |
20 Dec 06 |
martin |
207 |
> |
3046 |
20 Dec 06 |
martin |
208 |
<m:menuitem |
6295 |
13 Jun 13 |
nicklas |
209 |
subclass="auto-init" |
6295 |
13 Jun 13 |
nicklas |
210 |
data-auto-init="enclose-selection" |
6295 |
13 Jun 13 |
nicklas |
211 |
data-prefix="{@include " |
6295 |
13 Jun 13 |
nicklas |
212 |
data-suffix="}" |
3046 |
20 Dec 06 |
martin |
213 |
title="Insert helptext" |
3046 |
20 Dec 06 |
martin |
214 |
tooltip="Insert another helptext in this text." |
3046 |
20 Dec 06 |
martin |
215 |
/> |
3046 |
20 Dec 06 |
martin |
216 |
<m:menuitem |
6295 |
13 Jun 13 |
nicklas |
217 |
subclass="auto-init" |
6295 |
13 Jun 13 |
nicklas |
218 |
data-auto-init="enclose-selection" |
6295 |
13 Jun 13 |
nicklas |
219 |
data-prefix="{@link " |
6295 |
13 Jun 13 |
nicklas |
220 |
data-suffix="}" |
3297 |
07 May 07 |
nicklas |
221 |
title="Internal link" |
3297 |
07 May 07 |
nicklas |
222 |
tooltip="Insert a link to another help topic." |
3046 |
20 Dec 06 |
martin |
223 |
/> |
3046 |
20 Dec 06 |
martin |
224 |
<m:menuitem |
6295 |
13 Jun 13 |
nicklas |
225 |
subclass="auto-init" |
6295 |
13 Jun 13 |
nicklas |
226 |
data-auto-init="enclose-selection" |
6295 |
13 Jun 13 |
nicklas |
227 |
data-prefix="<a href="">" |
6295 |
13 Jun 13 |
nicklas |
228 |
data-suffix="</a>" |
3297 |
07 May 07 |
nicklas |
229 |
title="External link" |
3297 |
07 May 07 |
nicklas |
230 |
tooltip="Insert a link to an external web page." |
3046 |
20 Dec 06 |
martin |
231 |
/> |
3046 |
20 Dec 06 |
martin |
232 |
<m:menuitem |
6295 |
13 Jun 13 |
nicklas |
233 |
subclass="auto-init" |
6295 |
13 Jun 13 |
nicklas |
234 |
data-auto-init="enclose-selection" |
6295 |
13 Jun 13 |
nicklas |
235 |
data-prefix="<a name="">" |
6295 |
13 Jun 13 |
nicklas |
236 |
data-suffix="</a>" |
3046 |
20 Dec 06 |
martin |
237 |
title="Bookmark" |
3046 |
20 Dec 06 |
martin |
238 |
tooltip="Insert a bookmark" |
3046 |
20 Dec 06 |
martin |
239 |
/> |
3046 |
20 Dec 06 |
martin |
240 |
</m:menu> |
5921 |
10 Jan 12 |
nicklas |
241 |
<h1><%=title%> <base:help tabcontrol="settings" /></h1> |
6162 |
10 Oct 12 |
nicklas |
242 |
<form action="index.jsp?ID=<%=ID%>" method="post" name="help"> |
2121 |
29 Mar 06 |
nicklas |
243 |
<input type="hidden" name="cmd" value="UpdateItem"> |
2121 |
29 Mar 06 |
nicklas |
244 |
<input type="hidden" name="client_id" value="<%=clientId%>"> |
2121 |
29 Mar 06 |
nicklas |
245 |
|
5921 |
10 Jan 12 |
nicklas |
246 |
<t:tabcontrol id="settings" |
5921 |
10 Jan 12 |
nicklas |
247 |
subclass="content dialogtabcontrol" |
5506 |
19 Nov 10 |
nicklas |
248 |
position="bottom" remember="<%=help != null%>" |
5506 |
19 Nov 10 |
nicklas |
249 |
extensions="<%=invoker%>"> |
6295 |
13 Jun 13 |
nicklas |
250 |
<t:tab id="info" title="Help text" helpid="help.edit"> |
5921 |
10 Jan 12 |
nicklas |
251 |
<table class="fullform input100 smaller"> |
2121 |
29 Mar 06 |
nicklas |
252 |
<tr> |
5921 |
10 Jan 12 |
nicklas |
253 |
<th>Title</th> |
6295 |
13 Jun 13 |
nicklas |
254 |
<td><input class="text required auto-init" type="text" name="name" data-auto-init="<%=help == null ? "focus-select" : "focus" %>" |
2121 |
29 Mar 06 |
nicklas |
255 |
value="<%=HTML.encodeTags(help == null ? Values.getString(cc.getPropertyValue("name"), "New help") : help.getName())%>" |
5921 |
10 Jan 12 |
nicklas |
256 |
maxlength="<%=Help.MAX_NAME_LENGTH%>"></td> |
5921 |
10 Jan 12 |
nicklas |
257 |
<td></td> |
2121 |
29 Mar 06 |
nicklas |
258 |
</tr> |
2121 |
29 Mar 06 |
nicklas |
259 |
<tr> |
5921 |
10 Jan 12 |
nicklas |
260 |
<th>External ID</th> |
6217 |
14 Dec 12 |
nicklas |
261 |
<td><input class="text required" type="text" name="external_id" |
2405 |
21 Jun 06 |
nicklas |
262 |
value="<%=HTML.encodeTags(externalId)%>" |
5921 |
10 Jan 12 |
nicklas |
263 |
maxlength="<%=Help.MAX_EXTERNAL_ID_LENGTH%>"></td> |
5921 |
10 Jan 12 |
nicklas |
264 |
<td></td> |
3036 |
15 Dec 06 |
martin |
265 |
</tr> |
5921 |
10 Jan 12 |
nicklas |
266 |
<tr> |
5921 |
10 Jan 12 |
nicklas |
267 |
<th>Help text</th> |
5921 |
10 Jan 12 |
nicklas |
268 |
<td colspan="2" style="padding: 0px;"> |
6610 |
20 Nov 14 |
nicklas |
269 |
<tbl:toolbar subclass="bottomborder topborder bg-filled-50"> |
3036 |
15 Dec 06 |
martin |
270 |
<tbl:button |
6295 |
13 Jun 13 |
nicklas |
271 |
subclass="auto-init" |
6295 |
13 Jun 13 |
nicklas |
272 |
data-auto-init="enclose-selection" |
6295 |
13 Jun 13 |
nicklas |
273 |
data-prefix="<b>" |
6295 |
13 Jun 13 |
nicklas |
274 |
data-suffix="</b>" |
3080 |
22 Jan 07 |
martin |
275 |
tooltip="Bold" |
3036 |
15 Dec 06 |
martin |
276 |
image="text_bold.png" |
3036 |
15 Dec 06 |
martin |
277 |
/> |
3036 |
15 Dec 06 |
martin |
278 |
<tbl:button |
6295 |
13 Jun 13 |
nicklas |
279 |
subclass="auto-init" |
6295 |
13 Jun 13 |
nicklas |
280 |
data-auto-init="enclose-selection" |
6295 |
13 Jun 13 |
nicklas |
281 |
data-prefix="<i>" |
6295 |
13 Jun 13 |
nicklas |
282 |
data-suffix="</i>" |
3036 |
15 Dec 06 |
martin |
283 |
tooltip="Italic" |
3036 |
15 Dec 06 |
martin |
284 |
image="text_italic.png" |
3036 |
15 Dec 06 |
martin |
285 |
/> |
3036 |
15 Dec 06 |
martin |
286 |
<tbl:button |
6295 |
13 Jun 13 |
nicklas |
287 |
subclass="auto-init" |
6295 |
13 Jun 13 |
nicklas |
288 |
data-auto-init="enclose-selection" |
6295 |
13 Jun 13 |
nicklas |
289 |
data-prefix="<u>" |
6295 |
13 Jun 13 |
nicklas |
290 |
data-suffix="</u>" |
3036 |
15 Dec 06 |
martin |
291 |
tooltip="Underline" |
3036 |
15 Dec 06 |
martin |
292 |
image="text_underline.png" |
3036 |
15 Dec 06 |
martin |
293 |
/> |
3036 |
15 Dec 06 |
martin |
294 |
<tbl:button |
6295 |
13 Jun 13 |
nicklas |
295 |
subclass="auto-init" |
6295 |
13 Jun 13 |
nicklas |
296 |
data-auto-init="enclose-selection" |
6295 |
13 Jun 13 |
nicklas |
297 |
data-prefix="<h3>" |
6295 |
13 Jun 13 |
nicklas |
298 |
data-suffix="</h3>" |
3036 |
15 Dec 06 |
martin |
299 |
tooltip="Header 3" |
3036 |
15 Dec 06 |
martin |
300 |
image="text_h3.png" |
3036 |
15 Dec 06 |
martin |
301 |
/> |
3036 |
15 Dec 06 |
martin |
302 |
<tbl:button |
6295 |
13 Jun 13 |
nicklas |
303 |
subclass="auto-init" |
6295 |
13 Jun 13 |
nicklas |
304 |
data-auto-init="enclose-selection" |
6295 |
13 Jun 13 |
nicklas |
305 |
data-prefix="<h4>" |
6295 |
13 Jun 13 |
nicklas |
306 |
data-suffix="</h4>" |
3036 |
15 Dec 06 |
martin |
307 |
tooltip="Header 4" |
3036 |
15 Dec 06 |
martin |
308 |
image="text_h4.png" |
3036 |
15 Dec 06 |
martin |
309 |
/> |
3036 |
15 Dec 06 |
martin |
310 |
<tbl:button |
6295 |
13 Jun 13 |
nicklas |
311 |
subclass="auto-init" |
6295 |
13 Jun 13 |
nicklas |
312 |
data-auto-init="menu-anchor" |
6295 |
13 Jun 13 |
nicklas |
313 |
data-menu-id="textformats" |
3036 |
15 Dec 06 |
martin |
314 |
tooltip="Textstyle" |
6147 |
21 Sep 12 |
nicklas |
315 |
image="text_style_edit.gif" |
3036 |
15 Dec 06 |
martin |
316 |
/> |
3036 |
15 Dec 06 |
martin |
317 |
<tbl:button |
6295 |
13 Jun 13 |
nicklas |
318 |
subclass="auto-init" |
6295 |
13 Jun 13 |
nicklas |
319 |
data-auto-init="menu-anchor" |
6295 |
13 Jun 13 |
nicklas |
320 |
data-menu-id="tableitem" |
3036 |
15 Dec 06 |
martin |
321 |
tooltip="Table" |
3036 |
15 Dec 06 |
martin |
322 |
image="text_table.png" |
3036 |
15 Dec 06 |
martin |
323 |
/> |
3036 |
15 Dec 06 |
martin |
324 |
<tbl:button |
6295 |
13 Jun 13 |
nicklas |
325 |
subclass="auto-init" |
6295 |
13 Jun 13 |
nicklas |
326 |
data-auto-init="menu-anchor" |
6295 |
13 Jun 13 |
nicklas |
327 |
data-menu-id="listtype" |
3040 |
18 Dec 06 |
martin |
328 |
tooltip="List" |
3036 |
15 Dec 06 |
martin |
329 |
image="text_list.gif" |
3036 |
15 Dec 06 |
martin |
330 |
/> |
3036 |
15 Dec 06 |
martin |
331 |
<tbl:button |
6295 |
13 Jun 13 |
nicklas |
332 |
subclass="auto-init" |
6295 |
13 Jun 13 |
nicklas |
333 |
data-auto-init="enclose-selection" |
6295 |
13 Jun 13 |
nicklas |
334 |
data-prefix="<br>" |
6295 |
13 Jun 13 |
nicklas |
335 |
data-suffix="" |
3036 |
15 Dec 06 |
martin |
336 |
tooltip="New line" |
3036 |
15 Dec 06 |
martin |
337 |
image="text_newline.gif" |
3036 |
15 Dec 06 |
martin |
338 |
/> |
3036 |
15 Dec 06 |
martin |
339 |
<tbl:button |
6295 |
13 Jun 13 |
nicklas |
340 |
subclass="auto-init" |
6295 |
13 Jun 13 |
nicklas |
341 |
data-auto-init="enclose-selection" |
6295 |
13 Jun 13 |
nicklas |
342 |
data-prefix="<p>" |
6295 |
13 Jun 13 |
nicklas |
343 |
data-suffix="</p>" |
3036 |
15 Dec 06 |
martin |
344 |
tooltip="New paragraph" |
3036 |
15 Dec 06 |
martin |
345 |
image="text_paragraph.gif" |
3046 |
20 Dec 06 |
martin |
346 |
/> |
3046 |
20 Dec 06 |
martin |
347 |
<tbl:button |
6295 |
13 Jun 13 |
nicklas |
348 |
subclass="auto-init" |
6295 |
13 Jun 13 |
nicklas |
349 |
data-auto-init="menu-anchor" |
6295 |
13 Jun 13 |
nicklas |
350 |
data-menu-id="link" |
3046 |
20 Dec 06 |
martin |
351 |
tooltip="New link" |
3080 |
22 Jan 07 |
martin |
352 |
image="text_link.png" |
3046 |
20 Dec 06 |
martin |
353 |
/> |
3036 |
15 Dec 06 |
martin |
354 |
</tbl:toolbar> |
5921 |
10 Jan 12 |
nicklas |
355 |
</td> |
5921 |
10 Jan 12 |
nicklas |
356 |
</tr> |
5921 |
10 Jan 12 |
nicklas |
357 |
<tr class="dynamic"> |
5921 |
10 Jan 12 |
nicklas |
358 |
<th class="subprompt"></th> |
5921 |
10 Jan 12 |
nicklas |
359 |
<td> |
6610 |
20 Nov 14 |
nicklas |
360 |
<textarea class="text" rows="8" name="description" id="description" |
2121 |
29 Mar 06 |
nicklas |
361 |
><%=HTML.encodeTags(help == null ? cc.getPropertyValue("description") : help.getDescription())%></textarea> |
2121 |
29 Mar 06 |
nicklas |
362 |
</td> |
5921 |
10 Jan 12 |
nicklas |
363 |
<td style="width: 20px;"> |
6215 |
13 Dec 12 |
nicklas |
364 |
<base:zoom textarea="description" title="Help text" /> |
5921 |
10 Jan 12 |
nicklas |
365 |
</td> |
2121 |
29 Mar 06 |
nicklas |
366 |
</tr> |
2121 |
29 Mar 06 |
nicklas |
367 |
</table> |
2121 |
29 Mar 06 |
nicklas |
368 |
</t:tab> |
2121 |
29 Mar 06 |
nicklas |
369 |
</t:tabcontrol> |
5921 |
10 Jan 12 |
nicklas |
370 |
</form> |
5921 |
10 Jan 12 |
nicklas |
371 |
|
5921 |
10 Jan 12 |
nicklas |
372 |
<div class="legend"> |
5946 |
03 Feb 12 |
nicklas |
373 |
<base:icon image="required.png" />= required information |
5921 |
10 Jan 12 |
nicklas |
374 |
</div> |
2121 |
29 Mar 06 |
nicklas |
375 |
|
5921 |
10 Jan 12 |
nicklas |
376 |
<base:buttongroup subclass="dialogbuttons"> |
6295 |
13 Jun 13 |
nicklas |
377 |
<base:button id="btnSave" title="Save" /> |
6295 |
13 Jun 13 |
nicklas |
378 |
<base:button id="close" title="Cancel" /> |
5921 |
10 Jan 12 |
nicklas |
379 |
</base:buttongroup> |
2121 |
29 Mar 06 |
nicklas |
380 |
</base:body> |
2121 |
29 Mar 06 |
nicklas |
381 |
</base:page> |
2121 |
29 Mar 06 |
nicklas |
382 |
<% |
2121 |
29 Mar 06 |
nicklas |
383 |
} |
2121 |
29 Mar 06 |
nicklas |
384 |
finally |
2121 |
29 Mar 06 |
nicklas |
385 |
{ |
2121 |
29 Mar 06 |
nicklas |
386 |
if (dc != null) dc.close(); |
2121 |
29 Mar 06 |
nicklas |
387 |
} |
2121 |
29 Mar 06 |
nicklas |
388 |
%> |