Salome HOME
Fix: document removing is fixed. Unit tests for StudyDAO and StepService.removeDocume...
[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     <script language="JavaScript">
4
5     function checkin (message) {
6 //  --------------------------
7       if (confirm(message)) {
8         window.location = "checkin-scenario";
9       }
10       return false;
11     }
12     </script>
13 <!-- Properties form
14      =============================================================================================================================
15   -->
16       <div id=article-box>
17         <div id=section>
18           <s:text name="title.prop.scenario">
19             <s:param><s:property value="%{title}"/></s:param>
20           </s:text>
21         </div>
22         <div id=article-body class=text>
23
24 <!-- Scenario checked-out (not editable)
25   -->   <s:if test="%{isCheckedout()}">
26           <table class="text">
27             <tr>
28               <td colspan=3>
29                 <s:text name="message.checkedout">
30                   <s:param><s:property value="%{author.displayName}"/></s:param>
31                   <s:param><s:property value="%{lastModificationDate}"/></s:param>
32                   <s:param><s:property value="%{author.firstName}"/></s:param>
33                 </s:text>
34               </td>
35             </tr>
36             <tr height=10><td></td></tr>
37             <tr align=middle>
38               <td align=right>
39                 <a href="mailto:<s:property value="author.mailAddress"/>?subject=<s:property value="subject"/>">
40                 <input type="button" name="mailto" value="<s:text name="button.mailto"><s:param><s:property value="%{author.firstName}"/></s:param></s:text>"/>
41                 </a>
42               </td>
43               <td>&nbsp;<s:text name="label.or"/>&nbsp;</td>
44               <td align=left>
45                 <input type="button" name="checkin" value="<s:text name="button.checkin"/>" onClick="checkin('<s:text name="message.checkin"/>')"/>
46               </td>
47             </tr>
48           </table>
49         </s:if>
50
51 <!-- Scenario ckecked-in (editable)
52   -->   <s:else>
53         <form name="property" action="valid-rename" method="post">
54           <table class="text">
55             <tr>
56               <td><s:text name="field.scenariotitle"/>*:&nbsp;</td>
57               <td>
58                 <input type=text size="25" name=title value="<s:property value="title"/>">
59               </td>
60               <td>
61                 <input type="submit" name="save"   value="<s:text name="button.save"/>"/>
62               </td>
63             </tr>
64           </table>
65         </form>
66         </s:else>
67
68         </div>
69       </div>