]> SALOME platform Git repositories - tools/siman.git/blob - Workspace/Siman/WebContent/study/editScenarioProperties.jsp
Salome HOME
ab046b24c920f85d4bdd064b12bda9966451bd00
[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=main-pane>
27       <div id=article-box>
28         <div id=section>
29           <s:text name="title.prop.scenario">
30             <s:param><s:property value="%{title}"/></s:param>
31           </s:text>
32         </div>
33         <div id=article-body class=text>
34
35 <!-- Scenario checked-out (not editable)
36   -->   <s:if test="%{isCheckedout()}">
37           <table class="text">
38             <tr>
39               <td colspan=3>
40                 <s:text name="message.checkedout">
41                   <s:param><s:property value="%{author.displayName}"/></s:param>
42                   <s:param><s:property value="%{lastModificationDate}"/></s:param>
43                   <s:param><s:property value="%{author.firstName}"/></s:param>
44                 </s:text>
45               </td>
46             </tr>
47             <tr height=10><td></td></tr>
48             <tr align=middle>
49               <td align=right>
50                 <a href="mailto:<s:property value="author.mailAddress"/>?subject=<s:property value="subject"/>">
51                 <input type="button" name="mailto" value="<s:text name="button.mailto"><s:param><s:property value="%{author.firstName}"/></s:param></s:text>"/>
52                 </a>
53               </td>
54               <td>&nbsp;<s:text name="label.or"/>&nbsp;</td>
55               <td align=left>
56                 <input type="button" name="checkin" value="<s:text name="button.checkin"/>" onClick="checkin('<s:text name="message.checkin"/>')"/>
57               </td>
58             </tr>
59           </table>
60         </s:if>
61
62 <!-- Scenario ckecked-in (editable)
63   -->   <s:else>
64         <form name="property" action="valid-rename" method="post">
65           <table class="text">
66             <tr>
67               <td><s:text name="field.scenariotitle"/>*:&nbsp;</td>
68               <td>
69                 <input type=text size="25" name=title value="<s:property value="title"/>">
70               </td>
71               <td>
72                 <input type="submit" name="save"   value="<s:text name="button.save"/>"/>
73               </td>
74             </tr>
75           </table>
76         </form>
77         </s:else>
78
79         </div>
80       </div>
81     </div>
82
83   </body>
84 </html>