1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/themes/mercurialroundup/html/_generic.help-submit.html Sun Jun 06 16:19:05 2010 +0200
1.3 @@ -0,0 +1,73 @@
1.4 +<html>
1.5 + <head>
1.6 + <link rel="stylesheet" type="text/css" href="@@file/style.css" />
1.7 + <meta http-equiv="Content-Type"
1.8 + tal:attributes="content string:text/html;; charset=${request/client/charset}" />
1.9 + <tal:block tal:condition="python:request.form.has_key('property')">
1.10 + <title>Generic submit page for framed helper windows</title>
1.11 + <script language="Javascript" type="text/javascript"
1.12 + tal:content="structure string:<!--
1.13 +// this is the name of the field in the original form that we're working on
1.14 +form = parent.opener.document.${request/form/form/value};
1.15 +callingform=form
1.16 +field = '${request/form/property/value}';
1.17 +var listform = null
1.18 +function listPresent() {
1.19 + return document.frm_help.cb_listpresent.checked
1.20 +}
1.21 +function getListForm() {
1.22 + if (listPresent()) {
1.23 + return parent.list.document.forms.dummyform
1.24 + } else {
1.25 + return null
1.26 + }
1.27 +}
1.28 +
1.29 +
1.30 +function checkListForm() {
1.31 + // global listform
1.32 + if (listform != null)
1.33 + if (parent.list.document.dummyform) {
1.34 + listform = parent.list.document.dummyform
1.35 + alert(listform)
1.36 + }
1.37 +
1.38 + var bol= listform != null
1.39 + alert('checkListForm: bol='+bol)
1.40 + return bol
1.41 +}
1.42 +//-->">
1.43 + </script>
1.44 + <script src="@@file/help_controls.js" type="text/javascript"></script>
1.45 + </tal:block>
1.46 + </head>
1.47 + <body class="body" onload="parent.focus();" id="submit">
1.48 + <pre tal:content="request/env/QUERY_STRING" tal:condition=false />
1.49 + <form name="frm_help"
1.50 + tal:define="batch request/batch;
1.51 + props python:request.form['properties'].value.split(',')"
1.52 + class="help-submit"
1.53 + id="classhelp-controls">
1.54 + <div style="width:100%;text-align:left;margin-bottom:0.2em">
1.55 + <input type="text" name="text_preview" size="24" class="preview"
1.56 + onchange="f=getListForm();if(f){ reviseList_framed(f, this)};"
1.57 + />
1.58 + </div>
1.59 + <input type=checkbox name="cb_listpresent" readonly="readonly" style="display:none">
1.60 + <input type="button" id="btn_cancel"
1.61 + value=" Cancel " onclick="parent.close();return false;"
1.62 + i18n:attributes="value" />
1.63 + <input type="reset" id="btn_reset"
1.64 + onclick="text_field.value=original_field;f=getListForm();if (f) {reviseList_framed(f, this)};return false"
1.65 + />
1.66 + <input type="submit" id="btn_apply" class="apply"
1.67 + value=" Apply " onclick="callingform[field].value=text_field.value; parent.close();"
1.68 + i18n:attributes="value" />
1.69 + </form>
1.70 + <script type="text/javascript"><!--
1.71 +var text_field = document.frm_help.text_preview;
1.72 +original_field=form[field].value;
1.73 +text_field.value=original_field;
1.74 +//--></script>
1.75 + </body>
1.76 +</html>