Commit 923f7bc0 authored by Alain Takoudjou's avatar Alain Takoudjou Committed by Alain Takoudjou

slapos_web: warn before destroying hosting subscription

parent 4d5907a5
<?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 encoding="cdata"><![CDATA[
return """\n
<script>\n
"use strict";\n
$(document).ready(function(){\n
\n
$("#destroy_hs").click(function(){\n
if ($(this).attr("rel") !== "confirm") {\n
$(this).val("Confirm destruction");\n
$(this).attr("rel", "confirm");\n
$("#alert_destroy_hs").fadeIn(200);\n
$("#alert_destroy_hs").css("display", "inline-block");\n
return false;\n
}\n
});\n
});\n
</script>\n
"""\n
]]></string> </value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>Base_warnBeforeDestroyJS</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
......@@ -76,6 +76,7 @@
<value>
<list>
<string>listbox</string>
<string>my_destroy_warn_message</string>
<string>my_destroy_button</string>
<string>ticket_listbox</string>
<string>new_ticket_button</string>
......@@ -118,6 +119,7 @@
<string>my_restricted_access_token_generate_button</string>
<string>your_connection_listbox</string>
<string>your_monitoring_status</string>
<string>your_destroy_hosting</string>
</list>
</value>
</item>
......
......@@ -13,6 +13,7 @@
<string>css_class</string>
<string>default</string>
<string>enabled</string>
<string>extra</string>
<string>name</string>
<string>title</string>
</list>
......@@ -115,6 +116,10 @@
<key> <string>enabled</string> </key>
<value> <int>1</int> </value>
</item>
<item>
<key> <string>extra</string> </key>
<value> <string>id=\'destroy_hs\'</string> </value>
</item>
<item>
<key> <string>field_id</string> </key>
<value> <string>my_input_button_field</string> </value>
......
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