Salome HOME
a4d0495cd2e5704d522a16305e3a849b14d6265e
[tools/siman.git] / Workspace / Siman / WebContent / study / editScenarioProperties.jsp
1 <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
2     pageEncoding="ISO-8859-1"
3 %>
4 <%@
5     taglib prefix="s" uri="/struts-tags"
6 %>
7 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
8 <html>
9
10   <head>
11     <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
12     <title><s:text name="name.module"/></title>
13     <link href=<s:url value="/skin/default.css"/> rel="stylesheet" type="text/css">
14     <script language="JavaScript">
15
16     function checkin (message) {
17 //  --------------------------
18       if (confirm(message)) {
19         window.location = "checkin-scenario";
20       }
21       return false;
22     }
23     </script>
24   </head>
25
26   <body>
27 <!-- Menu-bar
28      =============================================================================================================================
29   -->
30     <jsp:include page="/jsp/menubar.jsp" />
31
32 <!-- Title-bar
33      =============================================================================================================================
34   -->
35     <jsp:include page="/jsp/titlebar.jsp">
36       <jsp:param name="entity"  value="study" />
37       <jsp:param name="disable" value="true" />
38     </jsp:include>
39
40 <!-- Left pane
41      =============================================================================================================================
42   -->
43     <div id=left-pane>
44       <jsp:include page="/jsp/toolbar.jsp">
45         <jsp:param name="tools" value="back" />
46       </jsp:include>
47       <div id=top-spacer></div>
48       <jsp:include page="/jsp/menuitem.jsp">
49         <jsp:param name="menu" value="open" />
50       </jsp:include>
51       <jsp:include page="/jsp/studyProperties.jsp" />
52     </div>
53
54 <!-- Properties form
55      =============================================================================================================================
56   -->
57     <div id=main-pane>
58       <div id=article-box>
59         <div id=section>
60           <s:text name="title.prop.scenario">
61             <s:param><s:property value="%{title}"/></s:param>
62           </s:text>
63         </div>
64         <div id=article-body class=text>
65
66 <!-- Scenario checked-out (not editable)
67   -->   <s:if test="%{isCheckedout()}">
68           <table class="text">
69             <tr>
70               <td colspan=3>
71                 <s:text name="message.checkedout">
72                   <s:param><s:property value="%{author.displayName}"/></s:param>
73                   <s:param><s:property value="%{lastModificationDate}"/></s:param>
74                   <s:param><s:property value="%{author.firstName}"/></s:param>
75                 </s:text>
76               </td>
77             </tr>
78             <tr height=10><td></td></tr>
79             <tr align=middle>
80               <td align=right>
81                 <a href="mailto:<s:property value="author.mailAddress"/>?subject=<s:property value="subject"/>">
82                 <input type="button" name="mailto" value="<s:text name="button.mailto"><s:param><s:property value="%{author.firstName}"/></s:param></s:text>"/>
83                 </a>
84               </td>
85               <td>&nbsp;<s:text name="label.or"/>&nbsp;</td>
86               <td align=left>
87                 <input type="button" name="checkin" value="<s:text name="button.checkin"/>" onClick="checkin('<s:text name="message.checkin"/>')"/>
88               </td>
89             </tr>
90           </table>
91         </s:if>
92
93 <!-- Scenario ckecked-in (editable)
94   -->   <s:else>
95         <form name="property" action="valid-rename" method="post">
96           <table class="text">
97             <tr>
98               <td><s:text name="field.scenariotitle"/>*:&nbsp;</td>
99               <td>
100                 <input type=text size="25" name=title value="<s:property value="title"/>">
101               </td>
102               <td>
103                 <input type="submit" name="save"   value="<s:text name="button.save"/>"/>
104               </td>
105             </tr>
106           </table>
107         </form>
108         </s:else>
109
110         </div>
111       </div>
112     </div>
113
114   </body>
115 </html>