Salome HOME
It was impossible to edit the body of the knowledge when the ordered or unordered...
[tools/siman.git] / Workspace / Siman / WebContent / study / editScenarioProperties.jsp
1 <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
2 <%@ taglib prefix="s" uri="/struts-tags"%>
3
4 <s:url id="rename_scenario" value="valid-rename.action" includeParams="none" escapeAmp="false" />
5
6     <script language="JavaScript">
7
8     function checkin (message) {
9 //  --------------------------
10       if (confirm(message)) {
11         window.location = "checkin-scenario";
12       }
13       return false;
14     }
15     </script>
16 <!-- Properties form
17      =============================================================================================================================
18   -->
19       <div id=article-box>
20         <div id=section>
21           <s:text name="title.prop.scenario">
22             <s:param><s:property value="%{selectedScenarioTitle}"/></s:param>
23           </s:text>
24         </div>
25         <div id=article-body class=text>
26
27 <!-- Scenario checked-out (not editable)
28   -->   <s:if test="%{isCheckedout()}">
29           <table class="text">
30             <tr>
31               <td colspan=3>
32                 <s:text name="message.checkedout">
33                   <s:param><s:text name="%{author.displayName}"/></s:param>
34                   <s:param><s:property value="%{lastModificationDate}"/></s:param>
35                   <s:param><s:property value="%{author.firstName}"/></s:param>
36                 </s:text>
37               </td>
38             </tr>
39             <tr height=10><td></td></tr>
40             <tr align=middle>
41               <td align=right>
42                 <a href="mailto:<s:property value="author.mailAddress"/>?subject=<s:property value="subject"/>">
43                 <input type="button" name="mailto" value="<s:text name="button.mailto"><s:param><s:property value="%{author.firstName}"/></s:param></s:text>"/>
44                 </a>
45               </td>
46               <td>&nbsp;<s:text name="label.or"/>&nbsp;</td>
47               <td align=left>
48                 <input type="button" name="checkin" value="<s:text name="button.checkin"/>" onClick="checkin('<s:text name="message.checkin"/>')"/>
49               </td>
50             </tr>
51           </table>
52         </s:if>
53
54 <!-- Scenario ckecked-in (editable)
55   -->   <s:else>
56         <s:form name="property" action="valid-rename" method="post" validate="true" cssClass="text">
57             <tr>
58               <td><s:text name="field.scenariotitle"/>:&nbsp;<span class="error">*</span></td>
59               <td>
60                 <s:textfield size="25" name="selectedScenarioTitle" value="%{selectedScenarioTitle}" theme="simple"/>
61               </td>
62               <td>
63                 <input type="submit" name="save"   value="<s:text name="button.save"/>"/>
64               </td>
65             </tr>
66         </s:form>
67         </s:else>
68
69         </div>
70       </div>