]> SALOME platform Git repositories - tools/siman.git/blob - Workspace/Siman/WebContent/study/editScenarioProperties.jsp
Salome HOME
Tool bar is improved.
[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
37 <!-- Left pane
38      =============================================================================================================================
39   -->
40     <div id=left-pane>
41       <jsp:include page="/jsp/toolbar.jsp" />
42       <div id=top-spacer></div>
43       <jsp:include page="/jsp/menuitem.jsp">
44         <jsp:param name="menu" value="open" />
45       </jsp:include>
46       <jsp:include page="/jsp/studyProperties.jsp" />
47     </div>
48
49 <!-- Properties form
50      =============================================================================================================================
51   -->
52     <div id=main-pane>
53       <div id=article-box>
54         <div id=section>
55           <s:text name="title.prop.scenario">
56             <s:param><s:property value="%{title}"/></s:param>
57           </s:text>
58         </div>
59         <div id=article-body class=text>
60
61 <!-- Scenario checked-out (not editable)
62   -->   <s:if test="%{isCheckedout()}">
63           <table class="text">
64             <tr>
65               <td colspan=3>
66                 <s:text name="message.checkedout">
67                   <s:param><s:property value="%{author.displayName}"/></s:param>
68                   <s:param><s:property value="%{lastModificationDate}"/></s:param>
69                   <s:param><s:property value="%{author.firstName}"/></s:param>
70                 </s:text>
71               </td>
72             </tr>
73             <tr height=10><td></td></tr>
74             <tr align=middle>
75               <td align=right>
76                 <a href="mailto:<s:property value="author.mailAddress"/>?subject=<s:property value="subject"/>">
77                 <input type="button" name="mailto" value="<s:text name="button.mailto"><s:param><s:property value="%{author.firstName}"/></s:param></s:text>"/>
78                 </a>
79               </td>
80               <td>&nbsp;<s:text name="label.or"/>&nbsp;</td>
81               <td align=left>
82                 <input type="button" name="checkin" value="<s:text name="button.checkin"/>" onClick="checkin('<s:text name="message.checkin"/>')"/>
83               </td>
84             </tr>
85           </table>
86         </s:if>
87
88 <!-- Scenario ckecked-in (editable)
89   -->   <s:else>
90         <form name="property" action="valid-rename" method="post">
91           <table class="text">
92             <tr>
93               <td><s:text name="field.scenariotitle"/>*:&nbsp;</td>
94               <td>
95                 <input type=text size="25" name=title value="<s:property value="title"/>">
96               </td>
97               <td>
98                 <input type="submit" name="save"   value="<s:text name="button.save"/>"/>
99               </td>
100             </tr>
101           </table>
102         </form>
103         </s:else>
104
105         </div>
106       </div>
107     </div>
108
109   </body>
110 </html>