Mercurial > p > roundup > code
annotate share/roundup/templates/devel/html/user.help.html @ 8566:e4191aa7b402 default tip
doc: issue2551415 correct doc for change input->input_payload
in 2.5 the rest interface changed a variable name from input to
input_payload. An earlier commit changed the rest docs. This commit
adds an item for it to the upgrading 2.4.0->2.5.0 section. Also cross
reference added to the rest docs with the updated examples.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Thu, 09 Apr 2026 00:19:06 -0400 |
| parents | 28aa76443f58 |
| children |
| rev | line source |
|---|---|
| 4434 | 1 <tal:block metal:use-macro="templates/help/macros/frame"> |
| 2 <tal:block tal:define="property request/form/property/value; | |
| 3 qs request/env/QUERY_STRING; | |
| 4 qs python:'&'.join([a for a in qs.split('&') if not a.startswith('@template=')]); | |
| 5 form request/form/form/value; | |
| 6 field request/form/property/value"> | |
| 7 <tal:block metal:fill-slot="more-javascript"> | |
|
6290
944e4dfcc9b7
issue2551100 - out of date jquery fix security and user.help.html
John Rouillard <rouilj@ieee.org>
parents:
4452
diff
changeset
|
8 <script language="javascript" type="text/javascript" |
|
8062
28aa76443f58
fix(security): fix CVE-2024-39124, CVE-2024-39124, and CVE-2024-39125
John Rouillard <rouilj@ieee.org>
parents:
7216
diff
changeset
|
9 tal:content="string:form = parent.opener.document.${form}; |
|
6290
944e4dfcc9b7
issue2551100 - out of date jquery fix security and user.help.html
John Rouillard <rouilj@ieee.org>
parents:
4452
diff
changeset
|
10 callingform=form; |
|
944e4dfcc9b7
issue2551100 - out of date jquery fix security and user.help.html
John Rouillard <rouilj@ieee.org>
parents:
4452
diff
changeset
|
11 field = '${field}';"></script> |
| 4452 | 12 <script language="Javascript" type="text/javascript"> |
| 4434 | 13 // this is the name of the field in the original form that we're working on |
| 14 var listform = null | |
| 15 function listPresent() { return document.frm_help.cb_listpresent.checked} | |
| 16 function getListForm() | |
| 17 { | |
| 18 if (listPresent()) { return parent.list.document.forms.dummyform} | |
| 19 else { return null} | |
| 20 } | |
| 21 | |
| 22 function checkListForm() | |
| 23 { | |
| 24 // global listform | |
| 25 if (listform != null) | |
| 26 if (parent.list.document.dummyform) | |
| 27 { | |
| 28 listform = parent.list.document.dummyform | |
| 29 alert(listform) | |
| 30 } | |
| 31 var bol= listform != null | |
| 32 alert('checkListForm: bol='+bol) | |
| 33 return bol | |
| 34 } | |
| 35 </script> | |
|
7216
fb9725793786
Update the version string.
John Rouillard <rouilj@ieee.org>
parents:
7214
diff
changeset
|
36 <script src="@@file/jquery-3.6.3.js" type="text/javascript"></script> |
| 4452 | 37 <script src="@@file/query.js" type="text/javascript"></script> |
| 4434 | 38 </tal:block> |
| 39 <tal:block metal:fill-slot="content"> | |
| 40 <div name="search"> | |
| 41 <form method="get" name="itemSynopsis" target="list" | |
| 42 tal:attributes="action request/classname" | |
| 43 tal:define="property request/form/property/value; | |
| 44 cols python:request.columns or 'id username address realname roles'.split(); | |
| 45 sort_on request/sort | nothing; | |
| 46 sort_desc python:sort_on and request.sort[0][0] == '-'; | |
| 47 sort_on python:sort_on and request.sort[0][1] or 'lastname'; | |
| 48 search_input templates/page/macros/search_input; | |
| 49 search_select templates/page/macros/search_select; | |
| 50 search_select_roles templates/page/macros/search_select_roles; | |
| 51 required python:[]; | |
| 52 th_label templates/page/macros/th_label; "> | |
| 4452 | 53 <input type="hidden" name="@template" value="query"> |
| 4434 | 54 <input type="hidden" name="property" value="" tal:attributes="value property"> |
| 55 <input type="hidden" name="form" value="" tal:attributes="value request/form/form/value"> | |
| 56 <table> | |
| 57 <tr tal:define="name string:username; label string:Username:"> | |
| 58 <th metal:use-macro="th_label">Name</th> | |
| 59 <td metal:use-macro="search_input"><input type="text"></td> | |
| 60 </tr> | |
| 61 <tr tal:define="name string:phone; label string:Phone number"> | |
| 62 <th metal:use-macro="th_label">Phone</th> | |
| 63 <td metal:use-macro="search_input"><input type="text"></td> | |
| 64 </tr> | |
| 65 <tr tal:define="name string:roles; label string:Roles:" > | |
| 66 <th metal:use-macro="th_label">role</th> | |
| 67 <td metal:use-macro="search_select_roles"> | |
| 68 <select> | |
| 69 <option value="">jokester</option> | |
| 70 </select> | |
| 71 </td> | |
| 72 </tr> | |
| 73 <tr> | |
| 74 <td> </td> | |
| 75 <td> | |
| 76 <input type="hidden" name="@action" value="search"/> | |
| 77 <input type="submit" value="Search" i18n:attributes="value"/> | |
| 78 <input type="reset"/> | |
| 79 <input type="hidden" value="username,realname,phone,organisation,roles" name="properties"/> | |
| 80 <input type="text" name="@pagesize" id="sp-pagesize" value="25" size="2"/> | |
| 81 <label for="sp-pagesize" i18n:translate="">Pagesize</label> | |
| 82 </td> | |
| 83 </tr> | |
| 84 </table> | |
| 85 </form> | |
| 86 <script type="text/javascript"><!-- focus2id('username'); //--></script> | |
| 87 </div> | |
| 4452 | 88 <!-- for search results: query --> |
| 89 <div class="list"> | |
| 90 <p i18n:translate="">Please specify your search parameters!</p> | |
| 91 </div> | |
| 4434 | 92 <div class="submit" onload="parent.focus();" id="submit"> |
| 93 <form name="frm_help" | |
| 94 tal:define="batch request/batch; | |
| 95 props python:request.form['properties'].value.split(',')" | |
| 96 class="help-submit" | |
| 97 id="classhelp-controls"> | |
| 98 <div style="width:100%;text-align:left;margin-bottom:0.2em"> | |
| 99 <input type="text" name="text_preview" size="24" class="preview" | |
| 100 onchange="f=getListForm();if(f){ reviseList_framed(f, this)};"/> | |
| 101 </div> | |
| 102 <input type=checkbox name="cb_listpresent" readonly="readonly" style="display:none"/> | |
| 103 <input type="button" id="btn_cancel" | |
| 104 value=" Cancel " onclick="parent.close();return false;" | |
| 105 i18n:attributes="value" /> | |
| 106 <input type="reset" id="btn_reset" | |
| 107 onclick="text_field.value=original_field;f=getListForm();if (f) {reviseList_framed(f, this)};return false"/> | |
| 108 <input type="submit" id="btn_apply" class="apply" | |
| 109 value=" Apply " onclick="callingform[field].value=text_field.value; parent.close();" | |
| 110 i18n:attributes="value" /> | |
| 111 </form> | |
| 112 <script type="text/javascript"><!-- | |
| 113 var text_field = document.frm_help.text_preview; | |
| 114 original_field=form[field].value; | |
| 115 text_field.value=original_field; | |
| 116 //--></script> | |
| 117 </div> | |
| 118 </tal:block> | |
| 119 </tal:block> | |
| 120 </tal:block> | |
|
6290
944e4dfcc9b7
issue2551100 - out of date jquery fix security and user.help.html
John Rouillard <rouilj@ieee.org>
parents:
4452
diff
changeset
|
121 <!-- SHA: 2f166058dd2deb0f51c38ff715217698dac4eef2 --> |
