blob: 7b4239e714e599a26923e3d798f68a6139b0e46c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
<html>
<head>
<link rel="stylesheet" type="text/css" href="@@file/style.css" />
<meta http-equiv="Content-Type"
tal:attributes="content string:text/html;; charset=${request/client/charset}" />
<tal:block tal:condition="python:request.form.has_key('property')">
<title>Generic submit page for framed helper windows</title>
<script language="Javascript" type="text/javascript"
tal:content="structure string:<!--
// this is the name of the field in the original form that we're working on
form = parent.opener.document.${request/form/form/value};
callingform=form
field = '${request/form/property/value}';
var listform = null
function listPresent() {
return document.frm_help.cb_listpresent.checked
}
function getListForm() {
if (listPresent()) {
return parent.list.document.forms.dummyform
} else {
return null
}
}
function checkListForm() {
// global listform
if (listform != null)
if (parent.list.document.dummyform) {
listform = parent.list.document.dummyform
alert(listform)
}
var bol= listform != null
alert('checkListForm: bol='+bol)
return bol
}
//-->">
</script>
<script src="@@file/help_controls.js" type="text/javascript"></script>
</tal:block>
</head>
<body class="body" onload="parent.focus();" id="submit">
<pre tal:content="request/env/QUERY_STRING" tal:condition=false />
<form name="frm_help"
tal:define="batch request/batch;
props python:request.form['properties'].value.split(',')"
class="help-submit"
id="classhelp-controls">
<div style="width:100%;text-align:left;margin-bottom:0.2em">
<input type="text" name="text_preview" size="24" class="preview"
onchange="f=getListForm();if(f){ reviseList_framed(f, this)};"
/>
</div>
<input type=checkbox name="cb_listpresent" readonly="readonly" style="display:none">
<input type="button" id="btn_cancel"
value=" Cancel " onclick="parent.close();return false;"
i18n:attributes="value" />
<input type="reset" id="btn_reset"
onclick="text_field.value=original_field;f=getListForm();if (f) {reviseList_framed(f, this)};return false"
/>
<input type="submit" id="btn_apply" class="apply"
value=" Apply " onclick="callingform[field].value=text_field.value; parent.close();"
i18n:attributes="value" />
</form>
<script type="text/javascript"><!--
var text_field = document.frm_help.text_preview;
original_field=form[field].value;
text_field.value=original_field;
//--></script>
</body>
</html>
<!-- SHA: 1de39ac0d15dc59c64187b6c691d58ba20931372 -->
|