Salome HOME
ff01292977d6063886630b5763a14b074f740a4a
[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 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
4 <html>
5
6   <head>
7     <link href=<s:url value="/skin/default.css"/> rel="stylesheet" type="text/css">
8     
9     <script language="JavaScript">
10
11     function checkin (message) {
12 //  --------------------------
13       if (confirm(message)) {
14         window.location = "checkin-scenario";
15       }
16       return false;
17     }
18     </script>
19   </head>
20
21   <body>
22
23 <!-- Properties form
24      =============================================================================================================================
25   -->
26       <div id=article-box>
27         <div id=section>
28           <s:text name="title.prop.scenario">
29             <s:param><s:property value="%{title}"/></s:param>
30           </s:text>
31         </div>
32         <div id=article-body class=text>
33
34 <!-- Scenario checked-out (not editable)
35   -->   <s:if test="%{isCheckedout()}">
36           <table class="text">
37             <tr>
38               <td colspan=3>
39                 <s:text name="message.checkedout">
40                   <s:param><s:property value="%{author.displayName}"/></s:param>
41                   <s:param><s:property value="%{lastModificationDate}"/></s:param>
42                   <s:param><s:property value="%{author.firstName}"/></s:param>
43                 </s:text>
44               </td>
45             </tr>
46             <tr height=10><td></td></tr>
47             <tr align=middle>
48               <td align=right>
49                 <a href="mailto:<s:property value="author.mailAddress"/>?subject=<s:property value="subject"/>">
50                 <input type="button" name="mailto" value="<s:text name="button.mailto"><s:param><s:property value="%{author.firstName}"/></s:param></s:text>"/>
51                 </a>
52               </td>
53               <td>&nbsp;<s:text name="label.or"/>&nbsp;</td>
54               <td align=left>
55                 <input type="button" name="checkin" value="<s:text name="button.checkin"/>" onClick="checkin('<s:text name="message.checkin"/>')"/>
56               </td>
57             </tr>
58           </table>
59         </s:if>
60
61 <!-- Scenario ckecked-in (editable)
62   -->   <s:else>
63         <form name="property" action="valid-rename" method="post">
64           <table class="text">
65             <tr>
66               <td><s:text name="field.scenariotitle"/>*:&nbsp;</td>
67               <td>
68                 <input type=text size="25" name=title value="<s:property value="title"/>">
69               </td>
70               <td>
71                 <input type="submit" name="save"   value="<s:text name="button.save"/>"/>
72               </td>
73             </tr>
74           </table>
75         </form>
76         </s:else>
77
78         </div>
79       </div>
80
81   </body>
82 </html>