Commit c47451aa authored by Gabriel L. Oliveira's avatar Gabriel L. Oliveira

Implement "Change State" button

- Implement change state button with javascript dialog
- Add div element to place listbox pagination buttons
parent c935aca2
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>Script_magic</string> </key>
<value> <int>3</int> </value>
</item>
<item>
<key> <string>_bind_names</string> </key>
<value>
<object>
<klass>
<global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>_asgns</string> </key>
<value>
<dictionary>
<item>
<key> <string>name_container</string> </key>
<value> <string>container</string> </value>
</item>
<item>
<key> <string>name_context</string> </key>
<value> <string>context</string> </value>
</item>
<item>
<key> <string>name_m_self</string> </key>
<value> <string>script</string> </value>
</item>
<item>
<key> <string>name_subpath</string> </key>
<value> <string>traverse_subpath</string> </value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>_body</string> </key>
<value> <string># prevent lose checked itens at listbox after click to print\n
# Do what Base_updateListboxSelection does, overwriting listbox_uid\n
\n
selection_name = context.REQUEST.get(\'list_selection_name\', None)\n
listbox_uid = context.REQUEST.get(\'knowledge_pad_module_ung_knowledge_pad_ung_docs_listbox_content_listbox_uid\', None)\n
uids = context.REQUEST.get(\'uids\', None)\n
context.portal_selections.updateSelectionCheckedUidList(listbox_uid = listbox_uid,\n
uids=uids,\n
selection_name=selection_name,\n
REQUEST=context.REQUEST)\n
\n
gadget_form_id = context.REQUEST.get(\'gadget_form_id\', \'erp5_web_ung_content_layout\')\n
keep_items=dict(\n
form_id=gadget_form_id,\n
selection_name=selection_name)\n
\n
return context.ERP5Site_redirect(\'Folder_viewWorkflowActionDialog\', keep_items)\n
</string> </value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>**kw</string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>WebSection_changeStateOnUNGDocs</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
......@@ -36,12 +36,17 @@
<key> <string>_text</string> </key>
<value> <unicode encoding="cdata"><![CDATA[
<div id="change_state_dialog" title="Change State of Documents" i18n:translate="" i18n:domain="ui"></div>\n
<div class="toolbar">\n
<button name="WebSection_deleteObjectList:method" \n
type="submit" class="delete"\n
i18n:translate="" i18n:domain="ui">Delete</button>\n
<button name="#" type="submit" class="change_state"\n
\n
<button name="WebSection_changeStateOnUNGDocs:method" type="submit" class="change_state"\n
i18n:translate="" i18n:domain="ui">Change State</button>\n
\n
<div class="listbox-navigation"></div>\n
\n
</div>
]]></unicode> </value>
......
2011-07-01 gabriel.oliveira
* Implement "Change State" button
2011-07-01 gabriel.oliveira
* Refactor javascript to apply inside new ung structure
......
377
\ No newline at end of file
378
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment